Problema al instalar módulo SALE_SHOP

60 views
Skip to first unread message

Luis Martinez

unread,
Dec 18, 2013, 6:21:34 PM12/18/13
to tryt...@googlegroups.com
Tengo instalado Tryton 2.8 y al instalar el módulo sale_shop 3.0 me arroja el siguiente error:

En la consola del servidor al instalar el módulo sale_shop desde el wizard:

gnuhealth@HIS-PRO:~/trytond/bin$ ./trytond
[Wed Dec 18 17:11:00 2013] INFO:server:using /home/gnuhealth/trytond/etc/trytond.conf as configuration file
[Wed Dec 18 17:11:00 2013] INFO:server:initialising distributed objects services
[Wed Dec 18 17:11:00 2013] INFO:server:starting JSON-RPC protocol on *:8000
[Wed Dec 18 17:11:03 2013] INFO:database:connect to "gnuhealth"
[Wed Dec 18 17:11:04 2013] INFO:modules:ir:registering classes
[Wed Dec 18 17:11:04 2013] INFO:modules:res:registering classes
[Wed Dec 18 17:11:04 2013] INFO:modules:test:registering classes
... (sigue cargando los módulos)

[Wed Dec 18 17:11:08 2013] INFO:modules:sale
[Wed Dec 18 17:11:08 2013] INFO:modules:stock_supply
[Wed Dec 18 17:11:08 2013] INFO:modules:account_asset
[Wed Dec 18 17:11:08 2013] INFO:modules:sale_price_list
[Wed Dec 18 17:11:08 2013] INFO:modules:account_stock_anglo_saxon
[Wed Dec 18 17:11:08 2013] INFO:modules:sale_shop
[Wed Dec 18 17:11:08 2013] INFO:modules:sale_shop:register sale.shop
[Wed Dec 18 17:11:08 2013] INFO:modules:sale_shop:register sale.shop-res.user
[Wed Dec 18 17:11:09 2013] INFO:modules:sale_shop:register sale.sale
[Wed Dec 18 17:11:09 2013] ERROR:sql:Wrong SQL: SELECT "res_user"."shop" AS "shop","res_user"."create_uid" AS "create_uid","res_user"."create_date" AS "create_date","res_user"."language" AS "language","res_user"."menu" AS "menu","res_user"."company" AS "company","res_user"."salt" AS "salt","res_user"."write_uid" AS "write_uid","res_user"."email" AS "email","res_user"."main_company" AS "main_company","res_user"."write_date" AS "write_date","res_user"."signature" AS "signature","res_user"."employee" AS "employee","res_user"."timezone" AS "timezone","res_user"."login" AS "login","res_user"."password" AS "password","res_user"."active" AS "active","res_user"."id" AS "id" FROM "res_user" WHERE ((id IN (0)))
[Wed Dec 18 17:11:09 2013] ERROR:sql:Wrong SQL: UPDATE "sale_sale" SET "shop" = NULL


En la consola del cliente al intentar instalar el módulo dede el wizard:

th@HIS-PRO:~/tryton-2.8.2/bin$ ./tryton
ERROR:tryton.common.common:Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 158, in dispatch
    result = rpc.result(meth(*args, **kwargs))
  File "/trytond/wizard/wizard.py", line 261, in execute
    return wizard._execute(state_name)
  File "/trytond/wizard/wizard.py", line 292, in _execute
    result = self._execute(transition())
  File "/trytond/ir/module/module.py", line 493, in transition_upgrade
    pool.init(update=True, lang=lang)
  File "/trytond/pool.py", line 134, in init
    lang=lang)
  File "/trytond/modules/__init__.py", line 391, in load_modules
    load_module_graph(graph, pool, lang)
  File "/trytond/modules/__init__.py", line 229, in load_module_graph
    cls.__register__(module)
  File "/trytond/modules/sale/sale.py", line 249, in __register__
    super(Sale, cls).__register__(module_name)
  File "/trytond/model/modelsql.py", line 133, in __register__
    field_size, string=field.string)
  File "/trytond/backend/postgresql/table.py", line 268, in add_raw_column
    (column_format(default),))
  File "/trytond/backend/postgresql/database.py", line 306, in execute
    res = self.cursor.execute(sql, params)
InternalError: current transaction is aborted, commands ignored until end of transaction block

Como referencia les comento que este mismo módulo lo instalé en otro servidor de prueba y no me marcó errores.
Alguien puede decirme como corregirlo?




Raimon Esteve

unread,
Dec 19, 2013, 3:14:01 AM12/19/13
to tryt...@googlegroups.com
> [Wed Dec 18 17:11:09 2013] ERROR:sql:Wrong SQL: UPDATE "sale_sale" SET
> "shop" = NULL

En la bd de datos tiens ya pedidos creados. No partes de una base de
datos nueva. Deberás hacer un SQL a mano para solucionar que los
pedidos de venta van relacionados con tiendas.

También importante configurar los usuarios con las tiendas que
permites la venta. Para hacer una venta, asegurate que en sus
preferencias dispongan las tiendas que van a vender y la tienda que
está vendiendo este momento.

Raimon

Luis Martinez

unread,
Dec 20, 2013, 2:45:43 PM12/20/13
to tryt...@googlegroups.com
Muchas gracias Raimon, funcionó muy bien!
Reply all
Reply to author
Forward
0 new messages