零件图号零件名称
This commit is contained in:
@@ -13,7 +13,8 @@ class sf_production_plan(models.Model):
|
||||
_description = 'sf_production_plan'
|
||||
_inherit = ['mail.thread']
|
||||
# _order = 'state desc, write_date desc'
|
||||
|
||||
part_name = fields.Char('零件名称', related='product_id.part_name', readonly=True)
|
||||
part_number = fields.Char('零件图号', related='product_id.part_number', readonly=True)
|
||||
state = fields.Selection([
|
||||
('draft', '待排程'),
|
||||
('done', '已排程'),
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
decoration-danger="state == 'finished'"/>
|
||||
<field name="name"/>
|
||||
<field name="origin"/>
|
||||
<field name="part_number" optional="show"/>
|
||||
<field name="part_name" optional="hide"/>
|
||||
<field name="order_deadline" widget="date"/>
|
||||
<field name="product_qty"/>
|
||||
<field name="production_line_id"/>
|
||||
|
||||
Reference in New Issue
Block a user