Skip to content

Commit

Permalink
Merge pull request #505 from frePPLe/18.0
Browse files Browse the repository at this point in the history
Syncing from upstream frePPLe/odoo (18.0)
  • Loading branch information
bt-admin authored Feb 19, 2025
2 parents bf96bd8 + ae74051 commit ce61c69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frepple/models/quote.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def action_quote(self):
"description": "",
"due": due_date_user_tz.strftime("%Y-%m-%dT%H:%M:%S.%fZ"),
"item": {"name": product_name},
"location": {"name": str(quote.warehouse_id.name)},
"location": {"name": str(quote.warehouse_id.code)},
"customer": {"name": "All customers"},
"minshipment": quote.minimum_shipment,
"maxlateness": quote.maximum_lateness * 86400,
Expand Down
4 changes: 2 additions & 2 deletions frepple/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def action_frepple_quote(self):
# -----[ BUILD THE REQUEST BODY ]-----
request_body = {"demands": []}
for line in sale_order.order_line:
if line.product_id.type == "product":
if line.product_id.type == "consu":
product_name = self.getfrePPLeItemName(
line.product_id, use_short_names
)
Expand All @@ -106,7 +106,7 @@ def action_frepple_quote(self):
"description": "",
"due": due_date,
"item": {"name": product_name},
"location": {"name": sale_order.warehouse_id.name},
"location": {"name": sale_order.warehouse_id.code},
"customer": {
"name": "%s %s"
% (
Expand Down

0 comments on commit ce61c69

Please sign in to comment.