添加紧急采购字段
This commit is contained in:
@@ -292,6 +292,9 @@ class RePurchaseOrder(models.Model):
|
||||
# 合同概况
|
||||
contract_summary = fields.Text(string='合同概况')
|
||||
|
||||
# 选择是否为紧急采购
|
||||
urgent_purchase = fields.Selection([('no', '否'), ('yes', '是')], string='紧急采购', default='no')
|
||||
|
||||
@api.depends('origin')
|
||||
def _compute_purchase_type(self):
|
||||
for purchase in self:
|
||||
|
||||
@@ -181,6 +181,7 @@
|
||||
<field name="partner_id" position="after">
|
||||
<field name="purchase_type" string="采购类型" readonly="1"/>
|
||||
<field name="picking_type_id" string="作业类型" domain="[('code','=','incoming'), '|', ('warehouse_id', '=', False), ('warehouse_id.company_id', '=', company_id)]" options="{'no_create': True}" groups="stock.group_stock_multi_locations"/>
|
||||
<field name="urgent_purchase"/>
|
||||
<label for="date_planned" string="最近交货日期"/>
|
||||
<div name="date_planned_div" class="o_row">
|
||||
<field name="date_planned" attrs="{'readonly': [('state', 'not in', ('draft', 'sent', 'to approve', 'purchase'))]}"/>
|
||||
|
||||
Reference in New Issue
Block a user