供应商详情的采购员去掉必填

This commit is contained in:
guanhuan
2024-09-12 10:14:38 +08:00
parent 8bc68e1edd
commit c050e2f11a

View File

@@ -100,8 +100,7 @@
<field name="arch" type="xml">
<field name="property_supplier_payment_term_id" position="before">
<field name="purchase_user_id" context="{'supplier_rank': supplier_rank }"
widget="many2one_avatar_user"
attrs="{'required' : [('supplier_rank','>', 0)]}"/>
widget="many2one_avatar_user"/>
</field>
<xpath expr="//field[@name='property_account_position_id']" position="attributes">
<attribute name="attrs">{'readonly': [('id','!=', False)]}</attribute>