FIX patch.

Fromt commit: dc825991ef
This commit is contained in:
Juanjo Garcia 2022-05-02 11:28:15 +02:00
parent 056325dc92
commit 1ea96e207e

View file

@ -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]: