In sale.py there is the following method:
def _amount_line_tax(self, cr, uid, line, context=None):
val = 0.0
for c in self.pool.get('account.tax').compute_all(cr, uid, line.tax_id, line.price_unit * (1-(line.discount or 0.0)/100.0), line.product_uom_qty, line.product
_id, line.order_id.partner_id)['taxes']:
val += c.get('amount', 0.0)
return val
If I want to retrieve the sale.order name field in this method?
What do I do?
I have tried self.name without success despite print self prints sale.order.