Skip to content

Commit

Permalink
Merge pull request #418 from frePPLe/16.0
Browse files Browse the repository at this point in the history
Syncing from upstream frePPLe/odoo (16.0)
  • Loading branch information
bt-admin authored Feb 20, 2024
2 parents ae4476f + f595138 commit 7b5d16c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frepple/controllers/inbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def run(self):
if wo_data:
for wo in mo.workorder_ids:
for rec in wo_data:
if rec["id"] == wo.operation_id.id:
if rec["id"] == wo.id:
# By default odoo populates the scheduled start date field only when you confirm and plan
# the manufacturing order.
# Here we are already updating it earlier
Expand Down
4 changes: 2 additions & 2 deletions frepple/controllers/outbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@ def export_manufacturingorders(self):
)

yield '<suboperation><operation name=%s priority="%s" type="operation_fixed_time" duration="%s"><location name=%s/><flows>' % (
quoteattr(suboperation),
quoteattr("%s - %s" % (suboperation, wo["id"])),
idx,
self.convert_float_time(
max(time_left, 1), # Miniminum 1 minute remaining :-)
Expand Down Expand Up @@ -2579,7 +2579,7 @@ def export_manufacturingorders(self):
wo_date,
qty,
state,
quoteattr(suboperation),
quoteattr("%s - %s" % (suboperation, wo["id"])),
quoteattr(i["name"]),
)
if (
Expand Down

0 comments on commit 7b5d16c

Please sign in to comment.