Skip to content

Commit

Permalink
[FIX] activity_id not required when move is not affect budget
Browse files Browse the repository at this point in the history
  • Loading branch information
Saran440 committed Aug 11, 2023
1 parent 3407f53 commit 873537b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions budget_activity/views/account_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
>
<field
name="activity_id"
attrs="{'required': [('analytic_account_id', '!=', False)]}"
attrs="{'required': [('analytic_account_id', '!=', False), ('parent.not_affect_budget', '=', False)]}"
/>
</xpath>
<xpath
expr="//field[@name='line_ids']/tree/field[@name='product_id']"
position="after"
expr="//field[@name='line_ids']/tree/field[@name='account_id']"
position="before"
>
<field
name="activity_id"
attrs="{'required': [('analytic_account_id', '!=', False)]}"
attrs="{'required': [('analytic_account_id', '!=', False), ('parent.not_affect_budget', '=', False)]}"
/>
</xpath>
</field>
Expand Down

0 comments on commit 873537b

Please sign in to comment.