[IMP]purchase: improve form view tabs + add incoterm

bzr revid: je@bcim.be-20130604131558-ievmx7sd2fcgt52m
This commit is contained in:
Jacques-Etienne Baudoux 2013-06-04 15:15:58 +02:00
parent 4b36b0cd49
commit a6ac384199
3 changed files with 3 additions and 1 deletions

View File

@ -223,6 +223,7 @@ class purchase_order(osv.osv):
}, multi="sums",help="The total amount"),
'fiscal_position': fields.many2one('account.fiscal.position', 'Fiscal Position'),
'payment_term_id': fields.many2one('account.payment.term', 'Payment Term'),
'incoterm_id': fields.many2one('stock.incoterms', 'Incoterm', help="International Commercial Terms are a series of predefined commercial terms used in international transactions."),
'product_id': fields.related('order_line','product_id', type='many2one', relation='product.product', string='Product'),
'create_uid': fields.many2one('res.users', 'Responsible'),
'company_id': fields.many2one('res.company','Company',required=True,select=1, states={'confirmed':[('readonly',True)], 'approved':[('readonly',True)]}),

View File

@ -235,6 +235,7 @@
<page string="RFQ &amp; Bid">
<group>
<field name="payment_term_id" widget="selection"/>
<field name="incoterm_id"/>
<field name="bid_date"/>
<field name="bid_validity"/>
</group>

View File

@ -7,7 +7,7 @@
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<field name="bid_date" position="before">
<field name="payment_term_id" position="before">
<field name="requisition_id"/>
</field>
</field>