mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[ADD] - Add multi-company to forecasts
This commit is contained in:
@@ -27,6 +27,7 @@ class AccountAnalyticInvoiceLine(models.Model):
|
||||
return {
|
||||
"name": self._insert_markers(period_date_start, period_date_end),
|
||||
"contract_id": self.contract_id.id,
|
||||
"company_id": self.contract_id.company_id.id,
|
||||
"contract_line_id": self.id,
|
||||
"product_id": self.product_id.id,
|
||||
"date_start": period_date_start,
|
||||
|
||||
@@ -61,6 +61,7 @@ class ContractLineForecastPeriod(models.Model):
|
||||
help='Discount that is applied in generated invoices.'
|
||||
' It should be less or equal to 100',
|
||||
)
|
||||
company_id = fields.Many2one(comodel_name="res.company", string="Company")
|
||||
|
||||
@api.multi
|
||||
@api.depends('quantity', 'price_unit', 'discount')
|
||||
|
||||
Reference in New Issue
Block a user