On 14/08/12 13:23 -0700, TPH wrote: > Hello, > > I have problems with creating Sales in with Proteus and Tryton 2.4. > > Error message is: *TypeError: unsupported operand type(s) for *: > \'Decimal\' and \'float\'\n'* Full on http://pastebin.com/1cZkLZUi > > But the type is Decimal and its working without any problems in Tryton 2.0 > > Code is here: http://pastebin.com/iSEfXzW5 When I comment out > *#sale_line.unit_price > = Decimal(10.0000)* the I can create the sale. > > I updated Tryton a few month ago and get the same problem on other > installation, and I changed only a little thing on the code and it worked. > But I cannot renember that part and went back to 2.0 because of a other > reason. But today I searched for 6 hour and could not get it... It would be > very nice to get some help.
Are you sure to use proteus 2.4? Because it looks like if proteus was using the old "double" encoding for Decimal in XML-RPC which was removed in 2.4. -- 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/
pgpJlh24lwLUK.pgp
Description: PGP signature
