优化质量相关翻译,增加必填标识

This commit is contained in:
mgw
2024-03-04 09:18:12 +08:00
parent 58d2367f02
commit 33dc25f400
2 changed files with 23 additions and 1 deletions

View File

@@ -16,7 +16,7 @@
'depends': ['quality_control'],
'data': [
'security/ir.model.access.csv',
# 'views/view.xml'
'views/view.xml'
],
'assets': {

View File

@@ -6,6 +6,8 @@
<field name="model">quality.alert</field>
<field name="arch" type="xml">
<tree sample="1">
<field name="name" decoration-bf="1"/>
<field name="name" decoration-bf="1"/>
<field name="name" decoration-bf="1"/>
<field name="product_tmpl_id" optional="show"/>
<field name="product_id" optional="hide"/>
@@ -44,6 +46,26 @@
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>
<xpath expr="//sheet//group//group//field[@name='picking_type_ids']" position="attributes">
<attribute name="class">custom_required</attribute>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="sf_quality_point_view_form_inherit_quality_control">
<field name="name">sf.quality.point.form.inherit.sf</field>
<field name="model">quality.point</field>
<field name="inherit_id" ref="quality_control.quality_point_view_form_inherit_quality_control"/>
<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>
</xpath>
</field>
</record>