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

Hello there :)

since recently we have a weird phenomenon when it comes to entering vendor prises on the product page. When I make a new entry and want to choose the variant, Odoo used to show me only the variants belonging to this product template. But now it shows me all variants of all our products.

The weird thing is, that I checked an older instance on our Odoo.sh, where it still works. I compared the settings but found no differences. 

Can it be that I've overlooked something or do we have a bug?


Avatar
Discard

Please if the product variant has the below domain which filter only the variant of the opened product.

domain="[('product_tmpl_id', '=?', context.get('default_product_tmpl_id', False))]

You can enable developer mode and then set the mouse pointer on product variant name in the table header and you will see the domain set to the above one.

Author

Tanks @Waleed Mohsen. You are right. I've compared it to Odoo in runbot and mine is different. It says: "['company_id', 'in', [company_id, False])]". How do I change it?

What is the Odoo version you are using?

Author

Odoo 14 Enterprise (sorry for forgetting to mention it).

Please go to settings and see the version number.

Best Answer

This issue has been fixed three months ago to Odoo 14. Try to update your Odoo to the latest revision.


https://www.odoo.com/documentation/saas-15.2/administration/maintain/update.html

Avatar
Discard
Author

I have checked that. We have the instance on Odoo.sh set to "latest Version" and I have hit update on the Sales and the Purchase apps but the behaviour has not changed.