1、销售订单状态添加【加工中】、【物流中】、【已交付】三种状态;2、优化 获取mrs下发的编程单 接口,添加对返工重新编程的处理
This commit is contained in:
@@ -13,6 +13,9 @@ class SaleOrder(models.Model):
|
||||
('sent', "报价已发送"),
|
||||
('supply method', "供货方式待确认"),
|
||||
('sale', "销售订单"),
|
||||
('processing', "加工中"),
|
||||
('physical_distribution', "物流中"),
|
||||
('delivered', "已交付"),
|
||||
('done', "已锁定"),
|
||||
('cancel', "已取消"),
|
||||
])
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<button name="action_confirm" string="供货方式确认" type="object" attrs="{'invisible': [('state', '!=', 'supply method')]}" confirm="确认供货方式"/>
|
||||
</xpath>
|
||||
<xpath expr="//header/field[@name='state']" position="attributes">
|
||||
<attribute name="statusbar_visible">draft,sent,supply method,sale</attribute>
|
||||
<attribute name="statusbar_visible">supply method,sale,processing,physical_distribution,delivered</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//page/field[@name='order_line']/tree/field[@name='remark']" position="before">
|
||||
<field name="supply_method" attrs="{'invisible': [('state', '=', 'draft')], 'required': [('state', '=', 'supply method')]}" />
|
||||
|
||||
Reference in New Issue
Block a user