Skip to content

[18.0] Duplicate Sale Order keeps previous partner in price history wizard #4511

Description

@oclar

Module

sale_order_line_price_history

Describe the bug

Duplicate Sale Order keeps previous partner in price history wizard

To Reproduce

Version: 18.0

Steps to reproduce the behavior:
1.Create a Sale Order for Partner A.
2.Add a product line and Save the SO.
3.Duplicate the Sale Order (Action -> Duplicate).
4.On the new duplicated SO, change the customer to Partner B and save the order.
5.Click on the Price History icon (clock icon) on the cloned order line.

Current behavior
The Price History wizard/pop-up launches filtered by Partner A (the customer from the original Sale Order), even after saving and refreshing the page (F5).

Expected behavior
The Price History wizard should fetch and filter the history for Partner B (the current order_id.partner_id), regardless of whether the order line was cloned/duplicated or created from scratch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions