Skip to content

Commit

Permalink
[IMP] rental_base: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
edescalona committed Nov 27, 2024
1 parent 8035044 commit 03df3ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rental_base/models/sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,11 @@ def update_start_end_date(self, date_start, date_end):

def write(self, values):
"""
Both fields start_date and end_date were made editable in state draft, sent and sale,
in order to allow the creation of new sale order lines with start and end dates.
However, it is forbidden to write the dates of already existing sale order lines.
To update these existing line, the method 'update_start_end_date' should be called.
Both fields start_date and end_date were made editable in state draft, sent and
sale, in order to allow the creation of new sale order lines with start and end
dates. However, it is forbidden to write the dates of already existing sale
order lines. To update these existing line, the method 'update_start_end_date'
should be called.
:param values: dictionary
:return: Boolean
"""
Expand Down

0 comments on commit 03df3ad

Please sign in to comment.