Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion fieldservice_equipment_stock/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@
class ProductTemplate(models.Model):
_inherit = "product.template"

create_fsm_equipment = fields.Boolean(string="Creates a FSM Equipment")
create_fsm_equipment = fields.Boolean(
string="Creates a FSM Equipment",
help="Creates a Field Service Equipment when a stock move is done. "
"It requires the 'Create FSM Equipment' option to be enabled on the "
"picking type, too.",
)
8 changes: 6 additions & 2 deletions fieldservice_equipment_stock/views/product_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view" />
<field name="arch" type="xml">
<group name="traceability" position="inside">
<field name="create_fsm_equipment" invisible="tracking != 'serial'" />
<group name="group_general" position="inside">
<field
name="create_fsm_equipment"
groups="fieldservice.group_fsm_user"
invisible="tracking != 'serial'"
/>
</group>
</field>
</record>
Expand Down