调整必填、增加用户组控制

This commit is contained in:
mgw
2024-03-04 10:58:39 +08:00
parent 806f921ad2
commit 6cbc21cc4e
2 changed files with 25 additions and 5 deletions

View File

@@ -46,11 +46,16 @@
groups="sf_base.group_quality_director"
class="oe_highlight"/>
</xpath>
<xpath expr="//sheet//group//group//field[@name='title']" position="replace">
<field name="title" class="custom_required"/>
<!-- <xpath expr="//sheet//group//group//field[@name='title']" position="replace"> -->
<!-- <field name="title" class="custom_required" required="1"/> -->
<!-- </xpath> -->
<xpath expr="//sheet//group//group//field[@name='title']" position="attributes">
<attribute name="class">custom_required</attribute>
<attribute name="required">1</attribute>
</xpath>
<xpath expr="//sheet//group//group//field[@name='picking_type_ids']" position="attributes">
<attribute name="class">custom_required</attribute>
<attribute name="required">1</attribute>
</xpath>
</field>
</record>
@@ -62,6 +67,7 @@
<field name="arch" type="xml">
<xpath expr="//field[@name='measure_on']" position="attributes">
<attribute name="class">custom_required</attribute>
</xpath>
<xpath expr="//field[@name='measure_frequency_type']" position="attributes">
<attribute name="class">custom_required</attribute>