mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] - Default value for date_start applied on product change
This commit is contained in:
committed by
Thomas Binsfeld
parent
147c40acaa
commit
f3a261d514
@@ -48,7 +48,7 @@ class SaleOrderLine(models.Model):
|
||||
help="Repeat every (Days/Week/Month/Year)",
|
||||
copy=False,
|
||||
)
|
||||
date_start = fields.Date(string='Date Start', default=fields.Date.today())
|
||||
date_start = fields.Date(string='Date Start')
|
||||
date_end = fields.Date(string='Date End', index=True)
|
||||
|
||||
@api.onchange('product_id')
|
||||
@@ -59,6 +59,7 @@ class SaleOrderLine(models.Model):
|
||||
self.product_id.recurring_invoicing_type
|
||||
)
|
||||
self.recurring_interval = self.product_id.recurring_interval
|
||||
self.date_start = fields.Date.today()
|
||||
|
||||
@api.multi
|
||||
def _prepare_contract_line_values(self, contract):
|
||||
|
||||
Reference in New Issue
Block a user