Closed ilyasProgrammer closed 5 months ago
This doesn't seem the correct approach, as it causes an overhead on all models. Why don't you redefine the field as computed in product variant, like other fields like weight
do?
This doesn't seem the correct approach, as it causes an overhead on all models. Why don't you redefine the field as computed in product variant, like other fields like
weight
do?
Looks like it worked as well. Updated
With store=False error is still there
Uhm, that's very weird. This should be an ORM fault, as there's nothing in the business side leading to the problem. OK, restore it and clean commit history, and let me check once again.
/ocabot merge minor
This PR looks fantastic, let's merge it! Prepared branch 14.0-ocabot-merge-pr-590-by-pedrobaeza-bump-minor, awaiting test results.
Congratulations, your PR was merged at ec4609a543219ffa9719fe6c41f23e18f2bc4b2e. Thanks a lot for contributing to OCA. ❤️
FIX https://github.com/OCA/multi-company/issues/585 Need to force recompute related product.product company_ids field. Otherwise it takes wrong values from the cache.