Skip to content

Commit

Permalink
12.0 - sale_timesheet_rounded
Browse files Browse the repository at this point in the history
fixes issue #687
  • Loading branch information
enriquemartin authored and sonhd91 committed Mar 7, 2024
1 parent a4dca4c commit 5bf1c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_timesheet_rounded/models/account_analytic_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def read(self, fields=None, load="_classic_read"):
This affects `account_analytic_line._sale_determine_order_line`.
"""
ctx_ts_rounded = self.env.context.get("timesheet_rounding")
fields_local = fields.copy() if fields else []
fields_local = list(fields) if fields else []
read_unit_amount = "unit_amount" in fields_local or not fields_local
if ctx_ts_rounded and read_unit_amount and fields_local:
if "unit_amount_rounded" not in fields_local:
Expand Down

0 comments on commit 5bf1c69

Please sign in to comment.