multi-company icon indicating copy to clipboard operation
multi-company copied to clipboard

[16.0] Error in Domain Regardless of company_ids Field State

Open andrel-exo opened this issue 2 years ago • 0 comments

Body:

Description: While conducting tests for issue #459, I discovered a bug in a specific domain. The issue arises regardless of the state of the company_ids field - whether it is filled or left empty.

Steps to Reproduce:

Access the domain where the issue #459 is relevant. Just try to create one product

Actual Behavior: An error occurs in this domain, irrespective of the company_ids field being populated or not.

Proposed Solution: I suggest modifying the existing condition to handle both scenarios effectively. The proposed code change is as follows:

['|', ('company_ids', 'in', company_ids), ('company_ids', '=', False)]

This modification ensures that the condition correctly accounts for scenarios where company_ids are either specified or not.

Additional Comments:

I hope this is not an oversight on my part, and I appreciate any input or verification on this issue.

andrel-exo avatar Dec 11 '23 17:12 andrel-exo