1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/sale_planning/views/product_views.xml
2024-12-10 09:04:09 +07:00

30 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="product_template_form_view_invoice_policy_inherit_sale_planning" model="ir.ui.view">
<field name="name">product.template.inherit.sale.planning.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="sale.product_template_form_view"/>
<field name="priority">10</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='product_tooltip']" position="after">
<label for="planning_enabled" invisible="type != 'service' or not sale_ok"/>
<div name="service_policy_div" invisible="type != 'service' or not sale_ok">
<field name="planning_enabled" class="oe_inline"/>
<span invisible="not planning_enabled" class="oe_inline me-2">
as
</span>
<field name="planning_role_id"
invisible="not planning_enabled"
required="planning_enabled"
options="{'no_quick_create': True}"
context="{'form_view_ref': 'sale_planning.sale_planning_role_view_form'}"
class="oe_inline" nolabel="1" placeholder=" e.g. Consultant"/>
<div class="fst-italic text-muted" invisible="not planning_enabled">Plan shifts for your orders for employees who have this role.</div>
</div>
</xpath>
</field>
</record>
</odoo>