mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] - store last_date_invoiced on contract_line
Improve CRITERIA_ALLOWED_DICT [IMP] - code improvement [IMP] - Use last_date_invoiced to set marker in invoice description [IMP] - add migration script to init last_day_invoiced and some other improvement [FIX] - a contract line suspended should start a day after the suspension end
This commit is contained in:
@@ -11,7 +11,7 @@ from odoo import api, models, fields
|
||||
|
||||
class AbstractAccountAnalyticContract(models.AbstractModel):
|
||||
_name = 'account.abstract.analytic.contract'
|
||||
_description = 'Abstract Account Analytic Contract'
|
||||
_description = 'Abstract Recurring Contract'
|
||||
|
||||
# These fields will not be synced to the contract
|
||||
NO_SYNC = ['name', 'partner_id']
|
||||
@@ -40,7 +40,9 @@ class AbstractAccountAnalyticContract(models.AbstractModel):
|
||||
'res.company',
|
||||
string='Company',
|
||||
required=True,
|
||||
default=lambda self: self.env.user.company_id,
|
||||
default=lambda self: self.env['res.company']._company_default_get(
|
||||
self._name
|
||||
),
|
||||
)
|
||||
|
||||
@api.onchange('contract_type')
|
||||
|
||||
Reference in New Issue
Block a user