Skip to content

Commit 8b28f23

Browse files
committed
Merge PR #1447 into 18.0
Signed-off-by ivantodorovich
2 parents 88cb327 + 2b62c22 commit 8b28f23

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

fieldservice_equipment_stock/models/product_template.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@
77
class ProductTemplate(models.Model):
88
_inherit = "product.template"
99

10-
create_fsm_equipment = fields.Boolean(string="Creates a FSM Equipment")
10+
create_fsm_equipment = fields.Boolean(
11+
string="Creates a FSM Equipment",
12+
help="Creates a Field Service Equipment when a stock move is done. "
13+
"It requires the 'Create FSM Equipment' option to be enabled on the "
14+
"picking type, too.",
15+
)

fieldservice_equipment_stock/views/product_template.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
<field name="model">product.template</field>
44
<field name="inherit_id" ref="product.product_template_only_form_view" />
55
<field name="arch" type="xml">
6-
<group name="traceability" position="inside">
7-
<field name="create_fsm_equipment" invisible="tracking != 'serial'" />
6+
<group name="group_general" position="inside">
7+
<field
8+
name="create_fsm_equipment"
9+
groups="fieldservice.group_fsm_user"
10+
invisible="tracking != 'serial'"
11+
/>
812
</group>
913
</field>
1014
</record>

0 commit comments

Comments
 (0)