[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:
@@ -263,6 +263,7 @@ class AccountAnalyticAccount(models.Model):
|
||||
"name": section.product_id.name,
|
||||
"product_uom_qty": 1.0,
|
||||
"price_unit": section.plan_amount_with_coeff,
|
||||
"budget_forecast_id": section.id,
|
||||
}
|
||||
self.env["sale.order.line"].create(values)
|
||||
quotation.analytic_account_id = self.id
|
||||
|
Reference in New Issue
Block a user