-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shopinvader_product_alias: improve view
- Loading branch information
1 parent
e485c73
commit fbc6ad9
Showing
2 changed files
with
14 additions
and
7 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 |
---|---|---|
|
@@ -3,24 +3,28 @@ | |
@author Kévin Roche <[email protected]> | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<record id="product_template_form" model="ir.ui.view"> | ||
<record id="product_template_form_view" model="ir.ui.view"> | ||
<field name="model">product.template</field> | ||
<field name="inherit_id" ref="shopinvader.view_product_template_form" /> | ||
<field name="inherit_id" ref="product.product_template_form_view" /> | ||
<field name="arch" type="xml"> | ||
<group name="shopinvader_options" position="after"> | ||
<group name="shopinvader_alias" string="Aliases"> | ||
<xpath expr="/form/sheet/notebook" position="inside"> | ||
<page | ||
name="Alias" | ||
string="Alias" | ||
attrs="{'invisible': [('product_variant_count', '<=', 1)]}" | ||
> | ||
<field | ||
name="product_alias_ids" | ||
context="{'default_product_tmpl_id': active_id}" | ||
> | ||
<tree editable="bottom"> | ||
<field name="name" /> | ||
<field name="attribute_value_ids" widget="many2many_tags" /> | ||
<field name="available_attribute_value_ids" invisible="1"/> | ||
<field name="available_attribute_value_ids" invisible="1" /> | ||
</tree> | ||
</field> | ||
</group> | ||
</group> | ||
</page> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |