It is currently Wed May 23, 2012 3:57 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: purchase_pricelist_recalculation
PostPosted: Wed Dec 21, 2011 7:39 pm 
Offline

Joined: Wed Jan 27, 2010 6:21 pm
Posts: 797
Location: Auckland, NZ
Just released this little port of the equvelant sale module. Should be on apps.openerp.com. Just allow you to recalculate a PO after changing pricelist.

_________________
Graeme


Top
 Profile  
 
 Post subject: Re: purchase_pricelist_recalculation
PostPosted: Fri Dec 23, 2011 4:58 pm 
Offline

Joined: Wed May 27, 2009 1:16 am
Posts: 28
Hi Graeme,

I have been thinking in similar direction. However my idea was to recalculate the SO-lines/PO-lines on change of field price list of SO/PO. Is there any particular reason you did it via a wizzard?

Best regards,
C-J


Top
 Profile  
 
 Post subject: Re: purchase_pricelist_recalculation
PostPosted: Fri Dec 30, 2011 11:08 am 
Offline

Joined: Wed Jan 27, 2010 6:21 pm
Posts: 797
Location: Auckland, NZ
Mainly because the original module was written as a wizard. This was written by OpenERP in Jan 2010. There are a couple of reasons I know of for this.

1. If you do it as onchange on pricelist you will overwrite manual fields, or possibly auto fields which you do not want changed. While I strongly disagree OpenERP continually reiterate that having no relationship between the displayed sales order pricelist and the sale order line is a feature.

2. It is just a pain in the a$$. Lets say you worked out how to make the onchange code work to change the SO lines, now you add a line. What do you expect to happen? Nothing good. Those changed records aren't saved and you get quite unpredictable behaviour, sometimes OK, sometimes reverts. By using the wizard the values are written instantly to the DB.

_________________
Graeme


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP