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
val += c.get('amount', 0.0)
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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/13/16, 6:56 AM|
|Seen: 337 times|
|Last updated: 2/13/16, 4:07 PM|