Skip to content

Commit 53e4860

Browse files
author
ilo
committed
[17.0][MIG] agreement_serviceprofile: Migration to 17.0
1 parent 02ec305 commit 53e4860

File tree

7 files changed

+26
-12
lines changed

7 files changed

+26
-12
lines changed

agreement_serviceprofile/README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ Contributors
8282

8383
- Brian McMaster <[email protected]>
8484

85+
- `Camptocamp <https://www.camptocamp.com>`__:
86+
87+
- Italo LOPES <[email protected]>
88+
8589
Maintainers
8690
-----------
8791

agreement_serviceprofile/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"Odoo Community Association (OCA)",
1212
"website": "https://github.com/OCA/agreement",
1313
"license": "AGPL-3",
14-
"depends": ["agreement_legal"],
14+
"depends": ["agreement"],
1515
"data": [
1616
"data/serviceprofile_stage.xml",
1717
"security/ir.model.access.csv",

agreement_serviceprofile/readme/CONTRIBUTORS.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
- Murtuza Saleh \<<[email protected]>\>
1010
- [Mc Master Lawn and Pest Services](https://www.mcmpest.com):
1111
- Brian McMaster \<<[email protected]>\>
12+
- [Camptocamp](https://www.camptocamp.com):
13+
- Italo LOPES \<<[email protected]>\>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
2-
access_agreement_servprof_allusers,service profile all users,model_agreement_serviceprofile,agreement_legal.group_agreement_user,1,1,1,0
3-
access_agreement_servprof_manager,service profile manager,model_agreement_serviceprofile,agreement_legal.group_agreement_manager,1,1,1,1
2+
access_agreement_servprof_allusers,service profile all users,model_agreement_serviceprofile,base.group_user,1,1,1,0
3+
access_agreement_servprof_manager,service profile manager,model_agreement_serviceprofile,base.group_system,1,1,1,1

agreement_serviceprofile/static/description/index.html

+4
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
428428
<li>Brian McMaster &lt;<a class="reference external" href="mailto:brian&#64;mcmpest.com">brian&#64;mcmpest.com</a>&gt;</li>
429429
</ul>
430430
</li>
431+
<li><a class="reference external" href="https://www.camptocamp.com">Camptocamp</a>:<ul>
432+
<li>Italo LOPES &lt;<a class="reference external" href="mailto:italo.lopes&#64;camptocamp.com">italo.lopes&#64;camptocamp.com</a>&gt;</li>
433+
</ul>
434+
</li>
431435
</ul>
432436
</div>
433437
<div class="section" id="maintainers">

agreement_serviceprofile/views/agreement.xml

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<record id="agreement_fsm_order_form_view" model="ir.ui.view">
44
<field name="name">agreement.form.fsm.order.view</field>
55
<field name="model">agreement</field>
6-
<field name="inherit_id" ref="agreement_legal.partner_agreement_form_view" />
6+
<field name="inherit_id" ref="agreement.agreement_form" />
77
<field name="arch" type="xml">
88
<notebook position="inside">
99
<page name="serviceprofiles" string="Service Profiles">
@@ -28,12 +28,14 @@
2828
<field
2929
name="product_variant_id"
3030
context="{'default_is_serviceprofile': True, 'default_type': 'service'}"
31-
attrs="{'invisible': [('use_product_variant', '=', False)], 'required': [('use_product_variant','!=', False)]}"
31+
invisible="use_product_variant == False"
32+
required="use_product_variant != False"
3233
/>
3334
<field
3435
name="product_id"
3536
context="{'default_is_serviceprofile': True, 'default_type': 'service'}"
36-
attrs="{'invisible': [('use_product_variant', '!=', False)], 'required': [('use_product_variant','=', False)]}"
37+
invisible="use_product_variant != False"
38+
required="use_product_variant == False"
3739
/>
3840
</group>
3941
</group>

agreement_serviceprofile/views/agreement_serviceprofile.xml

+8-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<field name="partner_id" />
1212
<field name="product_id" />
1313
<field name="product_variant_id" />
14-
<field name="active" invisible="1" />
14+
<field name="active" column_invisible="1" />
1515
</tree>
1616
</field>
1717
</record>
@@ -37,7 +37,7 @@
3737
name="web_ribbon"
3838
title="Archived"
3939
bg_color="bg-danger"
40-
attrs="{'invisible': [('active', '=', True)]}"
40+
invisible="active == True"
4141
/>
4242
<field name="active" invisible="1" />
4343
<div class="oe_title">
@@ -54,12 +54,14 @@
5454
<field
5555
name="product_id"
5656
context="{'default_is_serviceprofile': True, 'default_type': 'service'}"
57-
attrs="{'invisible': [('use_product_variant', '!=', False)], 'required': [('use_product_variant','=', False)]}"
57+
invisible="use_product_variant != False"
58+
required="use_product_variant == False"
5859
/>
5960
<field
6061
name="product_variant_id"
6162
context="{'default_is_serviceprofile': True, 'default_type': 'service'}"
62-
attrs="{'invisible': [('use_product_variant', '=', False)], 'required': [('use_product_variant','!=', False)]}"
63+
invisible="use_product_variant == False"
64+
required="use_product_variant != False"
6365
/>
6466
<field name="use_product_variant" />
6567
</group>
@@ -143,15 +145,15 @@
143145
<menuitem
144146
name="Service Profiles"
145147
id="agreement_serviceprofiles"
146-
parent="agreement_legal.agreement_masterdata"
148+
parent="agreement.agreement_setting_menu"
147149
sequence="50"
148150
action="agreement_serviceprofile_action"
149151
/>
150152

151153
<menuitem
152154
name="Service Profiles"
153155
id="dashboard_serviceprofiles"
154-
parent="agreement_legal.agreement_dashboard"
156+
parent="agreement.agreement_reporting_menu"
155157
sequence="20"
156158
action="agreement_serviceprofile_dashboard"
157159
/>

0 commit comments

Comments
 (0)