minor fix
This commit is contained in:
parent
d91d26bc6e
commit
102cc224cd
|
@ -1,7 +1,7 @@
|
|||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from decimal import Decimal
|
||||
from datetime import timedelta
|
||||
from datetime import timedelta, date
|
||||
from trytond import backend
|
||||
from trytond.model import Workflow, ModelSQL, ModelView, fields
|
||||
from trytond.pool import Pool
|
||||
|
@ -486,7 +486,7 @@ class Liquidation(Workflow, ModelSQL, ModelView):
|
|||
def get_time_contracting(self, start_date, end_date):
|
||||
sum_days = 0
|
||||
if end_date.day == 31:
|
||||
end_date = (end_date.year, end_date.month, 30)
|
||||
end_date = date(end_date.year, end_date.month, 30)
|
||||
|
||||
delta = (end_date - start_date).days + 1
|
||||
if start_date.month == end_date.month:
|
||||
|
|
Loading…
Reference in New Issue