Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5367 Visualizzazioni

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
Abbandona
Autore

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.

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 25
2797
0
mag 23
2435
3
mar 25
24383
1
nov 22
2375
1
mag 22
5860