How to Override create invoice method with new custom field in Odoo 8
I have create a custom sale.order with tax_new field in .Calculation in the sale order works perfectly with new custom field.But I cannot understand this value is not updated in the invoice.How to override invoice method with new calculation. This is my code
class sale_order(
_inherit = "sale.order"
_description = "Validate quote"
def _amount_all(self, cr, uid, ids, field_name, arg, context=None):
print "############## INSide ###########"
cur_obj = self.pool.
res = {}
for order in self.browse(cr, uid, ids, context=context):
}
print "tax",res[
val = val1 = 0.0
cur = order.pricelist
for line in order.order_line:
val += self._amount_
res = super(sale_order, self)._
return res
_columns = {
}
%%%%%%%
Here How to pass my new tax_field(
class account_
_inherit=
_columns={
}
def _amount_all(self, cr, uid, ids, name, args, context=None):
print '-------override _amount_all ---'
res = super(account_
return res
account_invoice()
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: