Skip to Content
Menu
This question has been flagged
1 Atsakyti
5365 Rodiniai

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?

Portretas
Atmesti
Autorius

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
liep. 25
2778
0
geg. 23
2435
3
kov. 25
24379
1
lapkr. 22
2375
1
geg. 22
5859