Suite à la màj => 3.6 je rencontre des erreurs lors de la mise à jour de
la base... avec trytond --all -d <db>
261895 1 [2015-04-26 12:09:59,955] INFO trytond.convert Deleting
9...@account.tax.template
261895 1 [2015-04-26 12:10:00,018] INFO trytond.convert Deleting
8...@account.tax.template
261895 1 [2015-04-26 12:10:00,110] INFO trytond.convert Deleting
7...@account.tax.template
261895 1 [2015-04-26 12:10:00,167] INFO trytond.convert Deleting
6...@account.tax.template
261895 1 [2015-04-26 12:10:00,224] INFO trytond.convert Deleting
5...@account.tax.template
261895 1 [2015-04-26 12:10:00,282] INFO trytond.convert Deleting
4...@account.tax.template
261895 1 [2015-04-26 12:10:00,353] INFO trytond.convert Deleting
3...@account.tax.template
261895 1 [2015-04-26 12:10:00,410] INFO trytond.convert Deleting
2...@account.tax.template
261895 1 [2015-04-26 12:10:00,467] INFO trytond.convert Deleting
1...@account.tax.template
261895 1 [2015-04-26 12:10:00,523] INFO trytond.convert Deleting
2...@account.tax.group
261895 1 [2015-04-26 12:10:00,619] INFO trytond.convert Deleting
1...@account.tax.group
261895 1 [2015-04-26 12:10:00,689] ERROR trytond.convert Could not delete id: 1
of model account.tax.group
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/local/lib/python2.7/site-packages/trytond/convert.py", line 805,
in post_import
Model.delete([Model(db_id)])
File "/opt/local/lib/python2.7/site-packages/trytond/model/modelsql.py", line
967, in delete
error_args=error_args)
File "/opt/local/lib/python2.7/site-packages/trytond/error.py", line 74, in
raise_user_error
raise UserError(error)
UserError: ('UserError', (u'Impossible de supprimer les enregistrements car ils
sont utilis\xe9s dans le champ \xab\xa0Groupe de taxe\xa0\xbb de \xab\xa0Ligne
de r\xe8gle de taxe\xa0\xbb.', ''))
261895 1 [2015-04-26 12:10:00,725] INFO trytond.convert Deleting
7...@account.tax.code.template
261895 1 [2015-04-26 12:10:01,190] INFO trytond.server Update/Init succeed!
Comment réparer manuellement la base et quel est le module à updater?
account-fr?
par ailleurs, il y aussi le WARNING (plutôt un INFO) suivant:
261895 1 [2015-04-26 12:08:49,447] INFO trytond.modules account:register
account.move
261895 1 [2015-04-26 12:08:49,736] WARNING trytond.backend.postgresql.table
Unable to set column company of table account_move not null !
Try to re-run: trytond.py --update=module
If it doesn't work, update records and execute manually:
ALTER TABLE "account_move" ALTER COLUMN "company" SET NOT NULL
cette colonne est déjà "NOT NULL"...
Finalement, comme on voit bien par ce petit extrait, la màj du
country.xml EST TRES LONGUE:
261895 1 [2015-04-26 12:03:47,829] INFO trytond.modules country
261895 1 [2015-04-26 12:03:47,861] INFO trytond.modules country:register
country.country
261895 1 [2015-04-26 12:03:47,918] INFO trytond.modules country:register
country.subdivision
261895 1 [2015-04-26 12:03:47,965] INFO trytond.modules country:register
country.zip
261895 1 [2015-04-26 12:03:51,518] INFO trytond.modules country:loading
country.xml
261895 1 [2015-04-26 12:08:13,621] INFO trytond.modules country:loading
locale/fr_FR.po
261895 1 [2015-04-26 12:08:41,333] INFO trytond.modules party
quelque chose à faire afin d'améliorer la performance là?