[FIX] product_sale_price_from_pricelist: Correct _compute_price method signature
- Changed parameter from 'qty' to 'quantity' to match Odoo 18.0 base class - Fixes TypeError: ProductPricelistItem._compute_price() got an unexpected keyword argument 'quantity' - This was causing price calculation failures when saving sale orders [FIX] website_sale_aplicoop: Fix logging format string - Changed logging format from %d to %s for existing_draft_id which is a string from JSON - Fixes 'TypeError: %d format: a real number is required, not str' in logging
This commit is contained in:
parent
d90f043617
commit
10ae5bcbf6
2 changed files with 5 additions and 4 deletions
|
|
@ -1624,7 +1624,7 @@ class AplicoopWebsiteSale(WebsiteSale):
|
|||
elif merge_action == "replace" and existing_draft_id and existing_drafts:
|
||||
# Replace: Delete old draft and create new one
|
||||
existing_drafts.unlink()
|
||||
_logger.info("Deleted existing draft %d", existing_draft_id)
|
||||
_logger.info("Deleted existing draft %s", existing_draft_id)
|
||||
|
||||
# Create new draft with current items
|
||||
sale_order = request.env["sale.order"].create(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue