Skip to content

Commit

Permalink
Merge PR OCA#3789 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by MarcoCalcagni
  • Loading branch information
OCA-git-bot committed Dec 19, 2023
2 parents 7acaafb + df037bc commit b1d235c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions l10n_it_delivery_note/models/stock_delivery_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,25 @@ def _get_report_base_filename(self):
self.ensure_one()
return f"Delivery Note - {self.name}"

@api.model
def _get_sync_fields(self):
"""
Returns a list of fields that can be used to
synchronize the state of the Delivery Note
"""
return [
"date",
"transport_datetime",
"transport_condition_id",
"goods_appearance_id",
"transport_reason_id",
"transport_method_id",
"gross_weight",
"net_weight",
"packages",
"volume",
]

def update_transport_datetime(self):
self.transport_datetime = datetime.datetime.now()

Expand Down

0 comments on commit b1d235c

Please sign in to comment.