mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
parent
056325dc92
commit
1ea96e207e
|
@ -6,7 +6,7 @@ index 6d831ce..e13a83f 100644
|
|||
if self.product.type != 'goods':
|
||||
return
|
||||
|
||||
- date = Date.today()
|
||||
- date = self.effective_date or Date.today()
|
||||
- period_id = Period.find(self.company.id, date=date)
|
||||
+ today = Date.today()
|
||||
+ for date in [self.effective_date, today]:
|
||||
|
|
Loading…
Reference in a new issue