设置设备模块页面强制必填字段及标识需求【表格】
This commit is contained in:
@@ -134,7 +134,7 @@ $(function () {
|
|||||||
var currentUrl = location.href
|
var currentUrl = location.href
|
||||||
const customRequiredDom = {
|
const customRequiredDom = {
|
||||||
label: ['label[for=production_line_id]','label[for=date_approve]','label[for=partner_id]', 'label[for=validity_date]', '.o_horizontal[role=radiogroup][aria-label="公司类别"]', 'label[for=vat]', 'label[for=phone]', 'label[for=mobile]', 'label[for=email]', 'label[for=category_id]','label[for=date_order]','label[for=picking_type_id]'],
|
label: ['label[for=production_line_id]','label[for=date_approve]','label[for=partner_id]', 'label[for=validity_date]', '.o_horizontal[role=radiogroup][aria-label="公司类别"]', 'label[for=vat]', 'label[for=phone]', 'label[for=mobile]', 'label[for=email]', 'label[for=category_id]','label[for=date_order]','label[for=picking_type_id]'],
|
||||||
table: ['product_template_id', 'product_uom_qty', 'price_unit','product_id','product_qty']
|
table: ['product_template_id', 'product_uom_qty', 'price_unit','product_id','product_qty', 'name', 'fault_type', 'maintenance_standards', 'Period']
|
||||||
}
|
}
|
||||||
const listenerUrl = setInterval(() => {
|
const listenerUrl = setInterval(() => {
|
||||||
const isChange = currentUrl != location.href
|
const isChange = currentUrl != location.href
|
||||||
|
|||||||
@@ -31,12 +31,12 @@
|
|||||||
<notebook>
|
<notebook>
|
||||||
<page string="维保项目">
|
<page string="维保项目">
|
||||||
|
|
||||||
<field name="maintenance_standards_ids">
|
<field name="maintenance_standards_ids" >
|
||||||
<tree editable="bottom">
|
<tree editable="bottom" >
|
||||||
<field name="name" class="table_custom_required"/>
|
<field name="name" />
|
||||||
<field name="fault_type" class="table_custom_required"/>
|
<field name="fault_type" />
|
||||||
<field name="maintenance_standards" class="table_custom_required"/>
|
<field name="maintenance_standards" />
|
||||||
<field name="Period" class="table_custom_required"/>
|
<field name="Period" />
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</page>
|
</page>
|
||||||
|
|||||||
Reference in New Issue
Block a user