I am having some difficulty with this, i am trying to get the description from the sales order per product line on the delivery note:
The delivery note calls the following function:
def get_product_desc(self,move_line):
desc = move_line.product_id.name
if move_line.product_id.default_code:
desc = '[' + move_line.product_id.default_code + ']' + ' ' + desc
return desc
I would have thought that just adding + move_line.product_id.XXX and creating a field in the move line names xxx would have done it? But I cannot for the life of me figure out how to add the field to the move_line ?
Your help would be appreciated
Do you want to put the information onto a report? Which report? Do you mean the name or the description of the product? which version do you use?
Using version 7, I want to get the info into the delivery note created from rhe sales order through create deliveries. I need to get the Description from the sales order line in there. i.e we have some products where the code is meaningless and on the order we add text in the sales line.