On 02/08/13 04:49 -0700, Jesús Martín Jiménez wrote: > > > El viernes, 2 de agosto de 2013 13:40:41 UTC+2, Jesús Martín Jiménez > escribió: > > > > Hi, > > > > I'm trying to create new parties from xml file. This works Ok unless > > account module is installed. Is it possible to force to get default values > > creating parties from a xml file? > > > > I mean. I'm trying to install a module that create parties. If module > account is not installes, my module (bank_es) can be installed Ok without > problems. But, if module account is installed, the installation of my > module fails because it can't create new parties without defaults > account_payable and account_receivable fields. Theses fields are configured > correctly in the account configuration menu, and when I create a new party > since the new party menu, Tryton fills these fields with its defaults > values, but not if I import parties from a csv file. Is there any trick to > avoid this issue?
For me, it is wrong to create parties from XML. XML is for static data and I don't see how a party could be a static data. Otherwise you got the issue because there is a company in the context otherwise the fields are not required. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: cedric.kr...@b2ck.com Website: http://www.b2ck.com/
pgpqXUbxUNbYj.pgp
Description: PGP signature