[UPD] Synchronize budget with new quotation lines

By pressing button "Sync missing budget lines", a new budget section
line is created for all the order lines without associated budget line.
This commit is contained in:
Stéphan Sainléger
2022-05-24 16:13:46 +02:00
parent 7c415a3362
commit 4b5188bd06
6 changed files with 70 additions and 8 deletions

View File

@@ -6,11 +6,17 @@
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<header position="inside">
<button name="sync_missing_budget_lines" string="Sync missing budget lines" type="object" />
</header>
<div name="button_box">
<button type="object" name="action_budget_forecast" class="oe_stat_button" icon="fa-usd">
<field name="plan_amount_with_coeff" widget="statinfo" string="Budget" />
</button>
</div>
<xpath expr="//field[@name='order_line']/tree/field[@name='name']" position="after">
<field name="budget_forecast_id" optional="show" />
</xpath>
</field>
</record>