[FIX] Sale:incoterm field implemented and solve the translation problem
lp bug: https://launchpad.net/bugs/649029 fixed bzr revid: ara@tinyerp.com-20101110094243-92fd9k4twiwi1jdi
This commit is contained in:
parent
70f49b652c
commit
380f403d0e
|
@ -45,12 +45,6 @@ class sale_shop(osv.osv):
|
|||
|
||||
sale_shop()
|
||||
|
||||
def _incoterm_get(self, cr, uid, context=None):
|
||||
if context is None:
|
||||
context = {}
|
||||
cr.execute('select code, code||\', \'||name from stock_incoterms where active')
|
||||
return cr.fetchall()
|
||||
|
||||
class sale_order(osv.osv):
|
||||
_name = "sale.order"
|
||||
_description = "Sale Order"
|
||||
|
@ -233,7 +227,7 @@ class sale_order(osv.osv):
|
|||
'partner_order_id': fields.many2one('res.partner.address', 'Ordering Contact', readonly=True, required=True, states={'draft': [('readonly', False)]}, help="The name and address of the contact who requested the order or quotation."),
|
||||
'partner_shipping_id': fields.many2one('res.partner.address', 'Shipping Address', readonly=True, required=True, states={'draft': [('readonly', False)]}, help="Shipping address for current sale order"),
|
||||
|
||||
'incoterm': fields.selection(_incoterm_get, 'Incoterm', size=3, help="Incoterm which stands for 'International Commercial terms' implies its a series of sales terms which are used in the commercial transaction"),
|
||||
'incoterm': fields.many2one('stock.incoterms', 'Incoterm', help="Incoterm which stands for 'International Commercial terms' implies its a series of sales terms which are used in the commercial transaction"),
|
||||
'picking_policy': fields.selection([('direct', 'Partial Delivery'), ('one', 'Complete Delivery')],
|
||||
'Picking Policy', required=True, readonly=True, states={'draft': [('readonly', False)]}, help="""If you don't have enough stock available to deliver all at once, do you accept partial shipments or not?"""),
|
||||
'order_policy': fields.selection([
|
||||
|
|
|
@ -219,7 +219,7 @@
|
|||
<page string="Other Information">
|
||||
<group colspan="2" col="2" groups="base.group_extended" name="logistic">
|
||||
<separator string="Logistic" colspan="2"/>
|
||||
<field name="incoterm"/>
|
||||
<field name="incoterm" widget="selection"/>
|
||||
<field name="picking_policy" required="True"/>
|
||||
<field name="order_policy" on_change="shipping_policy_change(order_policy)"/>
|
||||
<field name="invoice_quantity" attrs="{'readonly':[('order_policy','=','prepaid'),('order_policy','=','picking')]}"/>
|
||||
|
|
Loading…
Reference in New Issue