Skip to content

[20.0][MIG] budget_control_purchase - #629

Open
Saran440 wants to merge 29 commits into
20.0from
20.0-mig-budget_control_purchase
Open

Saran440 wants to merge 29 commits into
20.0from
20.0-mig-budget_control_purchase

Conversation

@Saran440

@Saran440 Saran440 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Saran440 and others added 29 commits November 2, 2026 08:52
Support for other module can check budget precommit in PO and Actual.
Standard will not check precommit because PO and Actual has next state draft is commit budget.
So, precommit budget is not need.

However, extensnion module like 'base_tier_validation_check_budget' can check budget in state draft.
we will improved base module budget for support precommit check budget
- Purchase lines commit each row of their analytic distribution, with
  _get_budget_analytic_percent(), and bills return each row; their rows
  are compared by row key, in any account order.
- Purchase budget moves get the plan columns (_sync_budget_columns) and
  are read-only for users, written by the engine.
- The monitoring adds its branch with _get_sql_branches().
- Taxes and fields of Odoo 20 purchases: tax_ids, uom_id, the state of
  the order in the commitment forward query, the document company for
  the purchase taxes included in the budget.
- Bills of a carried forward commitment take its analytic distribution
  through _related_analytic_distribution().
- Purchase requests uncommit through a hook defined here.
- Tests create their budget control sheet without budget_plan, and cover
  analytic rows and the commitment forward of purchases.
@ecosoft-bot ecosoft-bot added mod:budget_control_purchase Module budget_control_purchase needs review labels Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants