On 18/03/12 20:52 +0100, Cédric Krier wrote: > Also for the production module, I need to put a unit price to output > products of a production. I'm wondering what is the best way: > > - Check if sum inputs cost price == sum outputs unit price and raise a > error message if not. So it let the user to spread the value. > > - Update unit price with an on_change on input lines by setting all > to the lines of production product and 0 to others. And spread > equally if there is no production product.
I decided to implement the first point and the second but only when a product is selected. I think it gives a simple experience to the user for common case and let manage special case manually (or with custom module). -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpWkmXSUbnD9.pgp
Description: PGP signature
