Skip to Content
Menu
This question has been flagged
1 Reply
4548 Views

I tried to do 'create and edit' one2many product-category-field from product-page. The product category have 'parent category' filled. When the data saved, t should display 'parent category' + 'name' (as _rec_name = 'complete_name'), but it only display the 'name'.
I already tried override 'get_name' function, but nothing happened, it still show 'name' field.

Is it bug? what can i do to display 'complete_name' instead on 'name' when new data added?

Avatar
Discard
Author

i need to show product-category '_rec_name' before save the product, as the list of dropdown show its '_rec_name' before.

when i created new product-category using 'create and edit', then change the value to other list, then change it again to the value that I just created, only then its '_rec_name' shown.

I would say it's bug. what can I do to replace its default function to show '_rec_name', lets say I want to create new one2many model, and I never want its name to show as dropdown list, even for new data.

Best Answer

Hi,

I have tested it in my Odoo 13 and it's working, once I created the product category from product page using "create and Edit" and save the product category screen it shows the name of category only but once I saved the product it shows the complete name. 

After creating the product category, Save the product and it will show the complete name. If not then you have to check if you have any custom module use the product category. if not then try to get a new version of Odoo.

Avatar
Discard
Related Posts Replies Views Activity
1
Jul 23
1320
0
May 23
1487
3
Apr 23
18751
1
Nov 22
859
1
May 22
4634