[15.0][IMP] budget_control: budget commit multi company #472
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.
This PR enhance
budget_controlto support case multi-company in 1 budgetExample: We have 5 company and use 1 budget to control all company or use 1 budget to control 2 company
What's changed:
Add rule multi-company in Budget Control Sheet. can visible from
CompaniesAdd field

company_idsand group by company in list view Budget Control Sheetcompany_idsin Budget Control Sheet related company fromanalytic accountonly can't edit in budget controlif no company, all user in role budget control user can visible

In analytic account view, add new field
budget_company_idsfor control budget multi-companyCompanyis mean use this Analytic Account for 1 Company. -->Allowed Budget Companies(budget_company_ids) will change automatic (nothing to do)Companyis mean use this Analytic Account for multi-companyAllowed Budget Companiesfor multi company or all companyAllowed Budget Companiesfor all companyBudget Monitoring: add group by company (With Text because 1 budget can select multi company)

Change stamp company in commitment from
company user logintodocument companyAdd Budget Currency in Generate Budget Control Sheet wizard and send it to budget control sheet (currency in budget control sheet not allow to change)

Check all company must have same currency only when user generate budget control sheet (Not support multi-currency in budget control sheet)