@@ -9,6 +9,7 @@ class InheritPurchaseOrder(models.Model):
|
||||
_name = 'purchase.order'
|
||||
_inherit = ['purchase.order', 'soong.workflow.mixin']
|
||||
|
||||
active = fields.Boolean('Active', default=True, tracking=True)
|
||||
json_display = fields.Char(
|
||||
string="物品详情",
|
||||
compute='_compute_json_display',
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='name']" position="after">
|
||||
<field name="code"/>
|
||||
<field name="active"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='activity_ids']" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
|
||||
Reference in New Issue
Block a user