A bit more info now, seems the French Account plan has some issues where some
accounts have "party_required == true" (such as 421, 4387, 4687, 486)
but these don't necessarily have parties identified.

This was the error:

Traceback (most recent call last):
  File "migration.py3", line 1162, in <module>
    'account': args.load_account,
  File "migration.py3", line 79, in main
    migrate_account_balance(installed, cur)
  File "migration.py3", line 1098, in migrate_account_balance
    move.save()
  File 
"/usr/lib/python3.6/site-packages/proteus-4.4.1-py3.6.egg/proteus/__init__.py", 
line 101, in newfunc
  File 
"/usr/lib/python3.6/site-packages/proteus-4.4.1-py3.6.egg/proteus/__init__.py", 
line 769, in save
  File 
"/usr/lib/python3.6/site-packages/proteus-4.4.1-py3.6.egg/proteus/config.py", 
line 172, in __call__
  File "/opt/trytond/trytond/modules/account/move.py", line 248, in write
    super(Move, cls).write(*args)
  File "/opt/trytond/trytond/model/modelsql.py", line 968, in write
    field.set(cls, fname, *fargs)
  File "/opt/trytond/trytond/model/fields/one2many.py", line 217, in set
    Target.create(to_create)
  File "/opt/trytond/trytond/modules/account/move.py", line 1454, in create
    lines = super(Line, cls).create(vlist)
  File "/opt/trytond/trytond/model/modelsql.py", line 604, in create
    cls._validate(sub_records)
  File "/opt/trytond/trytond/model/modelstorage.py", line 1015, in _validate
    field_name)
  File "/opt/trytond/trytond/model/modelstorage.py", line 999, in required_test
    error_args=cls._get_error_args(field_name))
File "/opt/trytond/trytond/error.py", line 74, in raise_user_error raise UserError(error) trytond.exceptions.UserError: The field "Party" on "Account Move Line" is required. -

I'll file an issue, but in the meanwhile, I presume I'll need to see if I can 
programatically
set "party_required" to false for these accounts.

Can't directly explain why it takes so long before throwing this error, but oh 
well,
it may be because there are between 15K and 25K move lines per fiscal year. So 
far I split
by year, but might as well go for year/period/journal/move why I'm at it (for a 
full, deep migration).
--

Richard PALO

--
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/76cd188e-e925-c6ba-f855-bed7dc6aacab%40free.fr.

Reply via email to