On Friday, July 22, 2016 at 9:25:03 AM UTC+2, Cédric Krier wrote:
>
> On 2016-07-21 13:04, Marko Randjelovic wrote: 
> > In meantime I was using tryton 3.8 and imported all modules. When I run 
> > your command I get: 
> > 
> > (venv) mr@debian:~/training/trytond4$ bin/trytond-admin -d test4 --all 
> -c 
> > ../trytond4.conf 
>
> There is a tricky behaviour with the command line parser, the option 
> '--all' should be after the '-u' options otherwise it is wiped off. 
>
>
I swapped the options, but few minutes again got error:

(venv) mr@debian:~/training/trytond4$ bin/trytond-admin -d test4 -c 
../trytond4.conf -u purchase_request --all
Traceback (most recent call last):
  File "bin/trytond-admin", line 21, in <module>
    admin.run(options)
  File "/home/mr/training/trytond4/trytond/admin.py", line 48, in run
    Pool(db_name).init(update=options.update, lang=lang)
  File "/home/mr/training/trytond4/trytond/pool.py", line 155, in init
    lang=lang)
  File "/home/mr/training/trytond4/trytond/modules/__init__.py", line 429, 
in load_modules
    _load_modules()
  File "/home/mr/training/trytond4/trytond/modules/__init__.py", line 398, 
in _load_modules
    load_module_graph(graph, pool, update, lang)
  File "/home/mr/training/trytond4/trytond/modules/__init__.py", line 237, 
in load_module_graph
    cls.__register__(module)
  File 
"/home/mr/training/trytond4/trytond/modules/sale_opportunity/opportunity.py", 
line 118, in __register__
    super(SaleOpportunity, cls).__register__(module_name)
  File "/home/mr/training/trytond4/trytond/model/modelsql.py", line 143, in 
__register__
    history_table.index_action('id', action='add')
  File "/home/mr/training/trytond4/trytond/backend/sqlite/table.py", line 
258, in index_action
    ')')
sqlite3.OperationalError: index sale_opportunity__history_id_index already 
exists

Regards,
Marko
 

> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: [email protected] <javascript:> 
> 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/adfff306-d4aa-4c50-92ad-fa0ba7043af9%40googlegroups.com.

Reply via email to