Skip to content

Commit

Permalink
[MIG] agreement_maintenance: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luisDIXMIT authored and etobella committed Dec 24, 2024
1 parent dab2e09 commit 6d8b199
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion agreement_maintenance/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"website": "https://github.com/OCA/agreement",
"category": "Maintenance",
"license": "AGPL-3",
"version": "14.0.1.2.0",
"version": "16.0.1.0.0",
"depends": [
"maintenance",
"agreement_serviceprofile",
Expand Down
16 changes: 10 additions & 6 deletions agreement_maintenance/views/maintenance_equipment_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@
<field name="name">maintenance.equipment.form.agreement</field>
<field name="model">maintenance.equipment</field>
<field name="inherit_id" ref="maintenance.hr_equipment_view_form" />
<field
name="groups_id"
eval="[(4, ref('agreement_legal.group_agreement_readonly'))]"
/>
<field name="arch" type="xml">
<xpath expr="//group/group[1]" position="inside">
<field name="agreement_id" />
<field
name="agreement_id"
groups="agreement_legal.group_agreement_readonly"
/>
</xpath>
<xpath expr="//notebook" position="inside">
<page string="Services" id="services">
<page
string="Services"
id="services"
groups="agreement_legal.group_agreement_readonly"
>
<field
name="serviceprofile_ids"
domain="[('equipment_id', '=', False)]"
Expand Down Expand Up @@ -45,6 +48,7 @@
string="Agreement"
name="agreement_id"
domain="[]"
groups="agreement_legal.group_agreement_readonly"
context="{'group_by': 'agreement_id'}"
/>
</xpath>
Expand Down

0 comments on commit 6d8b199

Please sign in to comment.