houssine 5 years ago
parent
commit
273026da15
  1. 1
      easy_my_coop_dividend/models/dividend.py

1
easy_my_coop_dividend/models/dividend.py

@ -63,7 +63,6 @@ class dividend_year(models.Model):
number_of_days = (datetime.strptime(self.date_to, '%Y-%m-%d') number_of_days = (datetime.strptime(self.date_to, '%Y-%m-%d')
- datetime.strptime(self.date_from, '%Y-%m-%d') - datetime.strptime(self.date_from, '%Y-%m-%d')
).days + 1 ).days + 1
print number_of_days
for partner in partner_ids: for partner in partner_ids:
total_amount_dividend = 0.0 total_amount_dividend = 0.0

Loading…
Cancel
Save