View unanswered posts | View active topics
|
Page 1 of 1
|
[ 3 posts ] |
|
| Author |
Message |
|
gdaddy
|
Post subject: purchase_pricelist_recalculation Posted: Wed Dec 21, 2011 7:39 pm |
|
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 |
|
 |
|
loops
|
Post subject: Re: purchase_pricelist_recalculation Posted: Fri Dec 23, 2011 4:58 pm |
|
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 |
|
 |
|
gdaddy
|
Post subject: Re: purchase_pricelist_recalculation Posted: Fri Dec 30, 2011 11:08 am |
|
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 |
|
 |
|
Page 1 of 1
|
[ 3 posts ] |
|
|
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
|