Open
Conversation
Add a reusable OWL view widget + TransientModel wizard for selecting budget codes, replacing inline field groups in consumer views.
- Move button above table, use btn-primary style - Reorder wizard fields: activity/department/fund/source before budget_account - Add py-2 padding to table rows - Extract _getDisplayName helper to reduce duplication
Add exception rule validation to the shared budget selection wizard, so all consumer models using the widget get the same validation rules.
Add budget.selection.mixin with action_select_budget() method and wire it into purchase.request tree view with เลือก/แก้ไข buttons.
Extract budget validation logic into a reusable mixin so that any model inheriting it can use the same checks in its own exception rules.
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
Add a reusable OWL view widget + TransientModel wizard for selecting budget codes. This allows consumer modules to replace inline field groups with a single
<widget name="budget_selection"/>element.What's included
budget.selection.wizard): Transient model with budget fields andaction_apply()method that writes budget_account_id + analytic_distribution JSON to parent recordTest plan
<widget name="budget_selection"/>