mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] - as date_start is required, constraints on it become useless [FIX] - for finished contract _get_lines_to_invoice should return False [FIX] - default value for active field in contract line [FIX] - fix flake8 [IMP] - check invoice line vals before assignment [FIX] - Fix unit tests. [FIX] - do not copy last_date_invoiced on plan_successor [FIX] - renew only recurring_invoices contract [FIX] - filter by termination_notice for contract line to renew [IMP] - Improve inprogress search filter [IMP] - Link invoice line to contract lines [IMP] - Add index on contract line [IMP] - Add is_suspended flag and _search_state [IMP] - Add is_suspended flag to stop contract line [MV] - move onchange method to contract_product module [IMP] - Replace is_suspended flag by manual_renew_needed Add a computed field for the first date of the termination notice period Adapt state compute and search method [IMP] - Improve unit tests
13 lines
331 B
Python
13 lines
331 B
Python
# Copyright 2018 ACSONE SA/NV.
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class AccountInvoiceLine(models.Model):
|
|
_inherit = 'account.invoice.line'
|
|
|
|
contract_line_id = fields.Many2one(
|
|
'account.analytic.invoice.line', string='Contract Line', index=True
|
|
)
|