fix: account.company_id → company_ids for Odoo 18 multi-company#786
Closed
nericervin wants to merge 1 commit intoOCA:18.0from
Closed
fix: account.company_id → company_ids for Odoo 18 multi-company#786nericervin wants to merge 1 commit intoOCA:18.0from
nericervin wants to merge 1 commit intoOCA:18.0from
Conversation
En Odoo 18, account.account no tiene company_id sino company_ids (Many2many). Fix para multi_company display de nombres de cuenta.
Contributor
|
Hi @sbidoul, |
Member
|
Hi, thanks for your PR. There are several open PRs trying to address this, that I still need to find time to review. The most advanced is probably #782, but there are others. I recommend you like these and provide comments there. |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AttributeError: 'account.account' object has no attribute 'company_id'when using multi-company modeaccount.accountno longer hascompany_id(single company). It usescompany_ids(Many2many) as accounts are shared across companiescompany_idswhen available, falling back tocompany_idfor backwards compatibilitySteps to reproduce
multi_company = Trueauto_expand_accounts = TrueAttributeErroron_get_account_nameFile changed
mis_builder/models/kpimatrix.py-_get_account_name()method