Partner
very small bugfix in address selection type of address in tree view Purchase bzr revid: pinky-8eeda1b1399b16e9503d0fa423460781ad41e0e3
This commit is contained in:
parent
3d43b01ec5
commit
6df1b244df
|
@ -41,6 +41,6 @@
|
|||
# "translations" : {
|
||||
# "fr": "i18n/french_fr.csv"
|
||||
# },
|
||||
"active": True,
|
||||
"active": False,
|
||||
"installable": True
|
||||
}
|
||||
|
|
|
@ -901,7 +901,7 @@ class account_tax(osv.osv):
|
|||
cur_price_unit+=amount2
|
||||
return res
|
||||
|
||||
def compute(self, cr, uid, taxes, price_unit, quantity, address_id=None):
|
||||
def compute(self, cr, uid, taxes, price_unit, quantity, address_id=None, product_id=None):
|
||||
"""
|
||||
Compute tax values for given PRICE_UNIT, QUANTITY and a buyer/seller ADDRESS_ID.
|
||||
|
||||
|
|
|
@ -304,7 +304,8 @@ class purchase_order_line(osv.osv):
|
|||
'price_unit': fields.float('Unit Price', required=True, digits=(16, int(config['price_accuracy']))),
|
||||
'price_subtotal': fields.function(_amount_line, method=True, string='Subtotal'),
|
||||
'notes': fields.text('Notes'),
|
||||
'order_id': fields.many2one('purchase.order', 'Order Ref', select=True)
|
||||
# May be we can set this field as required ?
|
||||
'order_id': fields.many2one('purchase.order', 'Order Ref', select=True, ondelete='cascade')
|
||||
}
|
||||
_defaults = {
|
||||
'product_qty': lambda *a: 1.0
|
||||
|
|
Loading…
Reference in New Issue