[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:
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user