|
6 | 6 | <field name="name">Product template Secondary Unit</field>
|
7 | 7 | <field name="model">product.template</field>
|
8 | 8 | <field name="inherit_id" ref="stock.view_template_property_form" />
|
9 |
| - <field name="groups_id" eval="[(4, ref('stock.group_stock_user'))]" /> |
10 | 9 | <field name="arch" type="xml">
|
11 | 10 | <xpath expr="//group[@name='inventory']" position="inside">
|
12 |
| - <group string="Secondary unit"> |
| 11 | + <group string="Secondary unit" groups="stock.group_stock_user"> |
13 | 12 | <field
|
14 | 13 | name="stock_secondary_uom_id"
|
15 | 14 | options="{'no_create': True}"
|
|
24 | 23 | name="inherit_id"
|
25 | 24 | ref="stock.product_template_form_view_procurement_button"
|
26 | 25 | />
|
27 |
| - <field name="groups_id" eval="[(4, ref('stock.group_stock_user'))]" /> |
28 | 26 | <field name="arch" type="xml">
|
29 | 27 | <xpath expr="//button[@name='action_open_quants']" position="after">
|
30 | 28 | <button
|
|
33 | 31 | attrs="{'invisible':[('type', '!=', 'product')]}"
|
34 | 32 | class="oe_stat_button"
|
35 | 33 | icon="fa-building-o"
|
| 34 | + groups="stock.group_stock_user" |
36 | 35 | >
|
37 | 36 | <div class="o_form_field o_stat_info">
|
38 | 37 | <span class="o_stat_value">
|
|
53 | 52 | <record id="product_form_view_procurement_button" model="ir.ui.view">
|
54 | 53 | <field name="model">product.product</field>
|
55 | 54 | <field name="inherit_id" ref="stock.product_form_view_procurement_button" />
|
56 |
| - <field name="groups_id" eval="[(4, ref('stock.group_stock_user'))]" /> |
57 | 55 | <field name="arch" type="xml">
|
58 | 56 | <xpath expr="//button[@name='action_open_quants']" position="after">
|
59 | 57 | <button
|
|
62 | 60 | attrs="{'invisible':[('type', '!=', 'product')]}"
|
63 | 61 | class="oe_stat_button"
|
64 | 62 | icon="fa-building-o"
|
| 63 | + groups="stock.group_stock_user" |
65 | 64 | >
|
66 | 65 | <div class="o_form_field o_stat_info">
|
67 | 66 | <span class="o_stat_value">
|
|
82 | 81 | <record id="product_template_tree_view" model="ir.ui.view">
|
83 | 82 | <field name="model">product.template</field>
|
84 | 83 | <field name="inherit_id" ref="product.product_template_tree_view" />
|
85 |
| - <field name="groups_id" eval="[(4, ref('stock.group_stock_user'))]" /> |
86 | 84 | <field name="arch" type="xml">
|
87 | 85 | <xpath expr="//field[@name='uom_id']" position="after">
|
88 |
| - <field name="secondary_unit_qty_available" /> |
| 86 | + <field |
| 87 | + name="secondary_unit_qty_available" |
| 88 | + groups="stock.group_stock_user" |
| 89 | + /> |
89 | 90 | <field
|
90 | 91 | name="stock_secondary_uom_id"
|
91 | 92 | options="{'no_open': True, 'no_create': True}"
|
| 93 | + groups="stock.group_stock_user" |
92 | 94 | />
|
93 | 95 | </xpath>
|
94 | 96 | </field>
|
95 | 97 | </record>
|
96 | 98 | <record id="product_product_tree_view" model="ir.ui.view">
|
97 | 99 | <field name="model">product.product</field>
|
98 | 100 | <field name="inherit_id" ref="product.product_product_tree_view" />
|
99 |
| - <field name="groups_id" eval="[(4, ref('stock.group_stock_user'))]" /> |
100 | 101 | <field name="arch" type="xml">
|
101 | 102 | <xpath expr="//field[@name='uom_id']" position="after">
|
102 |
| - <field name="secondary_unit_qty_available" /> |
| 103 | + <field |
| 104 | + name="secondary_unit_qty_available" |
| 105 | + groups="stock.group_stock_user" |
| 106 | + /> |
103 | 107 | <field
|
104 | 108 | name="stock_secondary_uom_id"
|
105 | 109 | options="{'no_open': True, 'no_create': True}"
|
| 110 | + groups="stock.group_stock_user" |
106 | 111 | />
|
107 | 112 | </xpath>
|
108 | 113 | </field>
|
|
0 commit comments