Skip to content

[16.0][ADD] budget_appropriation_deduct_from: track source budget code for deduct lines#714

Open
n3n wants to merge 1 commit into
16.0from
16.0-add-budget_appropriation_deduct_from
Open

[16.0][ADD] budget_appropriation_deduct_from: track source budget code for deduct lines#714
n3n wants to merge 1 commit into
16.0from
16.0-add-budget_appropriation_deduct_from

Conversation

@n3n
Copy link
Copy Markdown
Member

@n3n n3n commented May 8, 2026

Summary

  • New module budget_appropriation_deduct_from adding a deduct_from_account_id Many2one on budget.appropriation.line so each deduct (หักโอน) line records the revenue budget code it is deducting from.
  • Field is enforced via a Python @api.constrains (required when deduct=True) and exposed in the appropriation form's deduct lines tree, the standalone line form, and the รายการหักโอน overview tree.

Test plan

  • Install module; on a revenue budget.appropriation, add a deduct line and confirm หักจากรหัสงบประมาณ is required.
  • Verify the domain only offers non-deduct, budgetable revenue accounts.
  • Open the รายการหักโอน list view and confirm the new column is shown.

…ารหักโอน

Adds a new module that introduces a `deduct_from_account_id` field on
budget.appropriation.line so deduct (หักโอน) lines can record which
revenue budget code (รหัสงบประมาณ) they are deducting from. The field is
required for deduct lines via a Python constraint and is exposed in the
appropriation form's deduct lines tree, the line form view, and the
รายการหักโอน overview tree.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant