Skip to content

Conversation

@jue-adhoc
Copy link

@jue-adhoc jue-adhoc commented Nov 27, 2024

This PR was created because we found and issue when changing the pricelist on packs that have been modified. When an user modifies some of the components of the pack, the index calculated on the _get_update_prices_lines remains with a previous value and the price is not updated correctly (the last line on the pack is not updated).
We based our refactor on this PR made a few weeks ago on version 17 which resolves another issues apart from this one and it is already reviewed and merged.

Steps to reproduce the error:

  • Add a pack "detailled" to a sale order
  • Add one extra product (which is not a pack)
  • Edit the pack adding a new component to pack line
  • On the previous sale order, change the pricelist (be sure that on the new pricelist all items should change the price. Set for example a discount to all products)
    Result: the pack should change the price of every component, but the last order line will not be updated due to a difference in the index inside the while loop (it would not take into account the last item).

@OCA-git-bot
Copy link
Contributor

Hi @ernestotejeda,
some modules you are maintaining are being modified, check this out!

@augusto-weiss
Copy link
Contributor

Please @jue-adhoc add steps to reproduce the error!

@jue-adhoc
Copy link
Author

Please @jue-adhoc add steps to reproduce the error!

steps added! thanks @augusto-weiss

Co-authored-by: augusto-weiss <90717087+augusto-weiss@users.noreply.github.com>
@augusto-weiss
Copy link
Contributor

LGTM

@github-actions
Copy link

github-actions bot commented Apr 6, 2025

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Apr 6, 2025
@github-actions github-actions bot closed this May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants