mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[REF] - add method to get quantity to invoice
the contract line quantity can be in some use cases variable, to simplify the way it is changed we add a new method _get_quantity_to_invoice.
This commit is contained in:
@@ -19,8 +19,7 @@ class AbstractAccountAnalyticContract(models.AbstractModel):
|
||||
name = fields.Char(required=True)
|
||||
# Needed for avoiding errors on several inherited behaviors
|
||||
partner_id = fields.Many2one(
|
||||
comodel_name="res.partner", string="Partner (always False)",
|
||||
index=True,
|
||||
comodel_name="res.partner", string="Partner (always False)", index=True
|
||||
)
|
||||
pricelist_id = fields.Many2one(
|
||||
comodel_name='product.pricelist', string='Pricelist'
|
||||
|
||||
Reference in New Issue
Block a user