You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[IMP] excise_management: Replace automation logic with server action
Replaced automation-based report line generation with a compute trigger
using a dedicated boolean field.
Key updates:
- Added computed boolean field `x_details_computation` on `x_excise_report`
to trigger `ir_action_compute_excise_report_line`
- Implemented server action to:
• fetch relevant stock moves
• group data by excise category and move type
• create report lines and bind stock moves
• update `x_line_ids` and mark computation status
Copy file name to clipboardExpand all lines: beverage_distributor/data/knowledge_article.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -131,9 +131,9 @@ Create a warehouse for each branch: Go to Inventory > Configuration > Ware
131
131
<p><strong>Excise reporting</strong></p>
132
132
<p>On top of the legal reporting, you need as well to know at all time the quantity of excise submitted products in your fiscal deposit warehouses.</p>
133
133
<ul>
134
-
<li><p>Open the <strong>Inventory app</strong> and reach the Excise Reports from the Reporting menu.</p></li>
135
-
<li><p>Rows come with the same move types detailed as the Excise Reports.</p></li>
136
-
<li><p>The Total row allows you to capture your currently in fiscal deposit warehouse product quantity!</p></li>
134
+
<li>Open the <strong>Inventory app</strong> and reach the Excise Reports from the Reporting menu.</li>
135
+
<li>Rows come with the same move types detailed as the Excise Reports.</li>
136
+
<li>The Total row allows you to capture your currently in fiscal deposit warehouse product quantity!</li>
137
137
</ul>
138
138
<p>You now have the keys to easily report those to the relevant authorities!</p>
line_ids = report_id.x_line_ids.filtered(lambda l: l.x_excise_category_id == record['x_excise_category'] and l.x_excise_move_type == record['x_fiscal_deposit_move'] and record.id in l.x_move_ids.ids)
115
-
for line_id in line_ids:
116
-
line_id['x_excise_quantity'] -= record['x_excise_quantity'] or 0.0
117
-
line_id['x_excise_amount'] -= record['x_excise_amount'] or 0.0
Copy file name to clipboardExpand all lines: micro_brewery/data/knowledge_article.xml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -310,9 +310,9 @@
310
310
<h3>Excise reporting</h3>
311
311
<p>On top of the legal reporting, you need as well to know at all time the quantity of excise submitted products in your fiscal deposit warehouses.</p>
312
312
<ul>
313
-
<li><p>Open the <strong>Inventory app</strong> and reach the Excise Reports from the Reporting menu.</p></li>
314
-
<li><p>Rows come with the same move types detailed as the Excise Reports.</p></li>
315
-
<li><p>The Total row allows you to capture your currently in fiscal deposit warehouse product quantity!</p></li>
313
+
<li>Open the <strong>Inventory app</strong> and reach the Excise Reports from the Reporting menu.</li>
314
+
<li>Rows come with the same move types detailed as the Excise Reports.</li>
315
+
<li>The Total row allows you to capture your currently in fiscal deposit warehouse product quantity!</li>
316
316
</ul>
317
317
<p>You now have the keys to easily report those to the relevant authorities!</p>
0 commit comments