more data needed with DomainValidationError when updating accounting plan under 5.8
Trying to migrate from 5.6 to 5.8.
After updating twice with trytond-admin in order to successfully get rid of the following type of messages:
201553 139637113353472 [2020-11-15 18:20:58,417] ERROR trytond.convert Could not delete id: 306 of model account.account.type.template
There should be some relation that points to this resource
You should manually fix this and restart --update=module
Traceback (most recent call last):
File "/opt/trytond/trytond/convert.py", line 807, in post_import
Model.delete([Model(db_id)])
File "/opt/trytond/trytond/model/modelsql.py", line 159, in wrapper
return func(cls, *args, **kwargs)
File "/opt/trytond/trytond/model/modelsql.py", line 1150, in delete
raise ForeignKeyError(
trytond.model.modelsql.ForeignKeyError: Les enregistrements ne peuvent pas être supprimés car ils sont utilisés par le champ « Type » de « Modèle de compte ». -
and then resynchronising model data, I'm coming across an error where it would be useful to get more info as to what specifically is causing it when updating the accounting plan (under the French PCG)... (attached is the popup).
Traceback (most recent call last):
File "/opt/trytond/trytond/protocols/dispatcher.py", line 181, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/opt/trytond/trytond/wizard/wizard.py", line 314, in execute
return wizard._execute(state_name)
File "/opt/trytond/trytond/wizard/wizard.py", line 345, in _execute
result = self._execute(transition())
File "/opt/trytond/trytond/modules/account_code_digits/account.py", line 139, in transition_update
return super(UpdateChart, self).transition_update()
File "/opt/trytond/trytond/modules/account/account.py", line 33, in wrapper
return func(*args, **kwargs)
File "/opt/trytond/trytond/modules/account/account.py", line 2775, in transition_update
TaxTemplate.create_tax(
File "/opt/trytond/trytond/modules/account/tax.py", line 658, in create_tax
create(childs)
File "/opt/trytond/trytond/modules/account/tax.py", line 649, in create
taxes = Tax.create(values)
File "/opt/trytond/trytond/model/modelsql.py", line 159, in wrapper
return func(cls, *args, **kwargs)
File "/opt/trytond/trytond/model/modelsql.py", line 674, in create
cls._validate(sub_records)
File "/opt/trytond/trytond/model/modelstorage.py", line 76, in wrapper
return func(*args, **kwargs)
File "/opt/trytond/trytond/model/modelstorage.py", line 1192, in _validate
validate_domain(field)
File "/opt/trytond/trytond/model/modelstorage.py", line 1119, in validate_domain
validate_relation_domain(field, sub_records, Relation, domain)
File "/opt/trytond/trytond/model/modelstorage.py", line 1173, in validate_relation_domain
raise DomainValidationError(
trytond.model.modelstorage.DomainValidationError: La valeur du champ « Compte note de crédit » sur « Compte de taxe » n'est pas valide selon son domaine. -
is it possible to indicate as well the id and model (record) in the DomainValidationError exception message?