Skip to content

Commit

Permalink
[IMP] product_category_global_account_setting: Do not deploy setting …
Browse files Browse the repository at this point in the history
…on disabled company
  • Loading branch information
legalsylvain committed Dec 20, 2024
1 parent 7d6883e commit fddb133
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def propagate_global_account_properties_recursive(self, field_names):

for field_name in field_names:
for category in self:
companies = ResCompany.with_context(active_test=False).search(
companies = ResCompany.with_context().search(
[("fiscal_type", "in", ["normal", "fiscal_mother", "fiscal_child"])]
)
for company in companies:
Expand Down
4 changes: 4 additions & 0 deletions product_category_global_account_setting/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* To avoid bad UX, the global configuration is not set on disabled company.
So if you disable a company, set configuration and enable again the company
the accounting configuration will be bad on that company.
It's a quite theoritical problem, though.

0 comments on commit fddb133

Please sign in to comment.