← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 697734] Re: [v6] Unit Price on Sales Order Line Doesn't Reprice when Pricelist is changed

 

Hi Steffi,

Yes we tested it, but had to figure out the flow (which should
probably be described in a README.txt in the module or in the
description.

It works using this scenario.

Prerequisites
Order must be in Quotation(Draft) State.
Order must be saved first prior to executing the Change Pricelist
Action. (otherwise you get a record cannot be found error).
Module is installed.
v6.

Steps
Open a saved quotation (or just save it prior to using the Change
Pricelist Action)
Click the "Change Pricelist Action". <---- this is where I believe
you're process is different (you're just changing the pricelist in the
Pricelist field and wanting the system to update the pricing).
Select the new pricelist from the options available in the Change
Pricelist wizard.
Click the Change Button. (which reprices everything)
Save the Quotation.

Results
Sales Order Lines will reprice based on the new pricelist selected.
The pricelist field will reflect the new pricelist selected.
The totals will update.

NOTE: I haven't tested to see if taxes update automatically yet or if
you have to re Compute tax calculations or not.

If you follow this flow - it "works" based on our setup on v6.

When it doesn't work.
1. when you try to change a pricelist on an unsaved Quotation or Sales Order.
2. after the order is confirmed.
3. you can't change the pricing by just selecting another pricelist in
the Pricelist field --> you have to use the Change Pricelist Action.
Although what you suggest would be a good 'on_change function" if
sales order lines existed for the order - another way to do it I
suppose. Provided you displayed a confirmation box "Are you sure you
want to price the order? Yes or No" to avoid - errors.

I didn't specify how they should solve the issue - the Onchange is a
better approach, but the Change Pricelist Wizard works too. I wonder
what the "usability" team would prefer??

Try the flow above and see if it works in the meantime.

Hopefully, that helps.

David Mitchell
NovaPoint Group LLC

On Thu, Jan 27, 2011 at 6:19 AM, Steffi Frank <697734@xxxxxxxxxxxxxxxxxx> wrote:
> Hi David
>
> Did you test modul sale_procelist_re-calculation already? I did today
> and found out: it does not work….
>
> My steps:
> New SO with pricelist linked to the customer -> new order line -> compute
> Select another pricelist -> compute -> price and total value still the same
>
> Works when I open the order line and change e.g. the qty (as before)
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/697734
>
> Title:
>  [v6] Unit Price on Sales Order Line Doesn't Reprice when Pricelist is
>  changed
>
> Status in OpenERP Modules (addons):
>  Fix Released
>
> Bug description:
>  OpenERP 6 Server
>  OpenERP 6 RC1 GTK Client
>  Platform: Windows
>
>
>  Steps to reproduce issue:
>  Setup 2 pricelists. Reseller 15 (15% off of public pricelist), Reseller 30 (30% off of public pricelist).
>  Assign a customer to the Reseller 15 pricelist.
>  Create a new sales order.
>  Select the customer (Reseller 15 pricelist is populated with the on_change)
>  Select a product from the sales order line. (e.g. Test Product I) Retail Sales Price $100
>  Product is Priced properly with a Unit Price of $85.
>  Save the order in Quotation State.
>  Change the Pricelist to Reseller 30.
>  Click the Compute Button.
>  The Unit Price does not recompute to $70, and remains at $85
>
>  Expected result:
>  Upon Clicking the Compute Button the unit price of each sales order line should reprice according to the Pricelist selected on the Sales Order tab. It should be $70.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/openobject-addons/+bug/697734/+subscribe
>

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/697734

Title:
  [v6] Unit Price on Sales Order Line Doesn't Reprice when Pricelist is
  changed

Status in OpenERP Modules (addons):
  Fix Released

Bug description:
  OpenERP 6 Server
  OpenERP 6 RC1 GTK Client
  Platform: Windows

  
  Steps to reproduce issue:
  Setup 2 pricelists. Reseller 15 (15% off of public pricelist), Reseller 30 (30% off of public pricelist).
  Assign a customer to the Reseller 15 pricelist.
  Create a new sales order.
  Select the customer (Reseller 15 pricelist is populated with the on_change)
  Select a product from the sales order line. (e.g. Test Product I) Retail Sales Price $100
  Product is Priced properly with a Unit Price of $85.
  Save the order in Quotation State.
  Change the Pricelist to Reseller 30.
  Click the Compute Button.
  The Unit Price does not recompute to $70, and remains at $85

  Expected result: 
  Upon Clicking the Compute Button the unit price of each sales order line should reprice according to the Pricelist selected on the Sales Order tab. It should be $70.





References