-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] fermente_product. Improve actions and views
- Loading branch information
1 parent
57ec887
commit b8e7a41
Showing
4 changed files
with
77 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,6 @@ | |
"depends": ["product"], | ||
"data": [ | ||
"views/view_product_template.xml", | ||
"views/view_product_product.xml", | ||
], | ||
} |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2024 - Today: GRAP (http://www.grap.coop) | ||
@author: Sylvain LE GAL | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
|
||
<record id="view_product_product_form" model="ir.ui.view"> | ||
<field name="model">product.product</field> | ||
<field name="priority" eval="100" /> | ||
<field name="inherit_id" ref="product.product_product_tree_view"/> | ||
<field name="arch" type="xml"> | ||
|
||
<!-- HIDE fields by default --> | ||
<field name="priority" position="attributes"> | ||
<attribute name="optional">hide</attribute> | ||
</field> | ||
<field name="product_template_variant_value_ids" position="attributes"> | ||
<attribute name="optional">hide</attribute> | ||
</field> | ||
|
||
<!-- SHOW fields by default --> | ||
<field name="categ_id" position="attributes"> | ||
<attribute name="optional">show</attribute> | ||
</field> | ||
|
||
<!-- MOVE fields --> | ||
<field name="name" position="after"> | ||
<field name="categ_id" position="move"/> | ||
</field> | ||
<field name="lst_price" position="before"> | ||
<field name="standard_price" position="move"/> | ||
</field> | ||
|
||
</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