On 2016-09-28 09:28, Dr Praveen Bhatia wrote:
> import datetime
> from dateutil.relativedelta import relativedelta
> from decimal import Decimal
> from proteus import config, Model, Wizard, Report
> from trytond.modules.company.tests.tools import create_company, get_company
> from trytond.modules.account.tests.tools import create_fiscalyear, 
> create_chart, get_accounts
> today = datetime.date.today()
> 
> #Create database::
> 
> config = config.set_trytond()
> config.pool.test = True
> 
> #Install account::
> 
> Module = Model.get('ir.module')
> module, = Module.find([ ('name', '=', 'account'), ])
> module.click('install')
> Wizard('ir.module.install_upgrade').execute('upgrade')
> #Create company::
> 
> _ = create_company()
> #company = get_company()

> trytond.exceptions.UserError: ('UserError', (u'The field "Account Payable" 
> on "Party" is required.', ''))

If you run on an existing database where 'account' module is already
installed. This is normal to fail because the method create_company
needs to create a party but if the user is already in a company than the
account fields are required.
You must run from an empty database.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20160930075249.GF99626%40tetsuo.

Reply via email to