OCA / multi-company

GNU Affero General Public License v3.0
100 stars 281 forks source link

[14.0][FIX]base_multi_company fix singleton File "/opt/odoo/parts/OCA/mul… #548

Closed matteoopenf closed 8 months ago

matteoopenf commented 8 months ago

Problem with singleton

res = super().write(values) File "/opt/odoo/odoo/odoo/addons/base/models/res_company.py", line 233, in write res = super(Company, self).write(values) File "/opt/odoo/odoo/odoo/models.py", line 3736, in write self._check_company() File "/opt/odoo/parts/OCA/multi-company/base_multi_company/models/base.py", line 21, in _check_company company_source_id = self.id File "/opt/odoo/odoo/odoo/fields.py", line 3825, in get raise ValueError("Expected singleton: %s" % record) Exception

OCA-git-bot commented 8 months ago

Hi @pedrobaeza, some modules you are maintaining are being modified, check this out!

OCA-git-bot commented 8 months ago

What a great day to merge this nice PR. Let's do it! Prepared branch 14.0-ocabot-merge-pr-548-by-pedrobaeza-bump-patch, awaiting test results.

matteoopenf commented 8 months ago

@pedrobaeza I see here https://github.com/OCA/multi-company/pull/539 you don't touch

Fast-tracking it

/ocabot merge patch

thank you so much

OCA-git-bot commented 8 months ago

Congratulations, your PR was merged at 29f8d599e4ca278aa2dd41c6f4d2b7f5de12b353. Thanks a lot for contributing to OCA. ❤️