-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] cooperator_eater: Migration to 16.0
- Loading branch information
1 parent
043f495
commit bc0330a
Showing
5 changed files
with
16 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<!-- Share products --> | ||
<record id="cooperator_worker.share_a" model="product.product"> | ||
<record id="cooperator.product_template_share_type_1_demo" model="product.template"> | ||
<field name="max_nb_eater_allowed">3</field> | ||
</record> | ||
<record id="cooperator_worker.share_b" model="product.product"> | ||
<record id="cooperator.product_template_share_type_2_demo" model="product.template"> | ||
<field name="max_nb_eater_allowed">2</field> | ||
</record> | ||
<record id="cooperator_worker.share_c" model="product.product"> | ||
<field name="max_nb_eater_allowed">-1</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<record id="product_template_share_form_view_beesdoo_emc" model="ir.ui.view"> | ||
<field name="name">product.template.share.form</field> | ||
<record id="product_template_form_view" model="ir.ui.view"> | ||
<field name="name">product_template_form_view</field> | ||
<field name="model">product.template</field> | ||
<field name="inherit_id" ref="cooperator.product_template_form_view" /> | ||
<field name="inherit_id" ref="cooperator_worker.product_template_form_view" /> | ||
<field name="arch" type="xml"> | ||
<field name="customer" position="after"> | ||
<field name="allow_shopping" position="after"> | ||
<field name="eater" attrs="{'invisible':[('is_share','=',False)]}" /> | ||
<field | ||
name="max_nb_eater_allowed" | ||
attrs="{'invisible':[('is_share','=',False)]}" | ||
/> | ||
</field> | ||
<field name="minimum_quantity" position="after"> | ||
<field name="eater" attrs="{'invisible':[('is_share','=',False)]}" /> | ||
</field> | ||
</field> | ||
</record> | ||
</odoo> |