Hello Friends,
I am new to Odoo and I really need your guidance.
In Purchase Order Lines I need the name of the product without the Internal Reference Number as currently it shows the (Internal Reference Number+Product Name).
I know that in the Model "product.template" there is a field name which is the Actual Name of the Product (minus -) the Internal Reference so this is the field I want to Display On Purchase Order Lines.
So what I did was the following:
1. I created a new field in model "purchase.order.line"
x_product_tmpl_id = fields.Many2one('product.template')
2.Then I created another field Related Field in model "purchase.order.line" as follows:
x_name = fields.Char(string='Name', related='x_product_tmpl_id.name')
Now the issue is that instead of showing the Product Name its showing Blank.
Can anyone please point out my mistake and suggest the correct way to do it.
Thanks
Sincerely,
Asad
"Related Field | V11CE |" is not a question. I have edited your post to have a Question in the Title. Please consider posting a Question in the Title to increase your chances of visitors opening/answering your post. I moved V11CE to the TAG area of the post, as that is best practice.
Thanks Ray, Next time I will be more careful.