Tryton - Issues

 

Issue9010

Title Integration with vue storefront
Priority feature Status in-progress
Superseder Add code to template as variant prefix, Add contact and invoice party, Use product code as SKU
View: 9080, 8992, 9004
Nosy List Timitos, ced, pokoli, reviewbot
Type feature request Components
Assigned To ced Keywords review
Reviews 252971002
View: 252971002

Created on 2020-01-21.19:15:32 by ced, last changed by reviewbot.

Messages
review252971002 updated at https://codereview.tryton.org/252971002/#ps325761002
review252971002 updated at https://codereview.tryton.org/252971002/#ps321821002
review252971002 updated at https://codereview.tryton.org/252971002/#ps325671002
msg58475 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2020-06-04.13:38:02
On 2020-06-04 13:27, Sergi Almacellas Abellana wrote:
> I'm wondering if we can separate this review into small parts:
> 
> * sale_shiment_cost (this can be a separate issue)
> * web_shop (this will help to implement https://discuss.tryton.org/t/woocommerce-connector-for-tryton/2795/) 
> * web_shop_vue_storefront
> * web_user

Not really because we need a reference implementation.
msg58474 (view) Author: [hidden] (pokoli) (Tryton committer) (Tryton translator) Date: 2020-06-04.13:27:04
I'm wondering if we can separate this review into small parts:

* sale_shiment_cost (this can be a separate issue)
* web_shop (this will help to implement https://discuss.tryton.org/t/woocommerce-connector-for-tryton/2795/) 
* web_shop_vue_storefront
* web_user
review252971002 updated at https://codereview.tryton.org/252971002/#ps305771002
review252971002 updated at https://codereview.tryton.org/252971002/#ps293621003
review252971002 updated at https://codereview.tryton.org/252971002/#ps307391002
review252971002 updated at https://codereview.tryton.org/252971002/#ps303331002
review252971002 updated at https://codereview.tryton.org/252971002/#ps307101002
review252971002 updated at https://codereview.tryton.org/252971002/#ps266991002
review252971002 updated at https://codereview.tryton.org/252971002/#ps291181002
review252971002 updated at https://codereview.tryton.org/252971002/#ps286831007
review252971002 updated at https://codereview.tryton.org/252971002/#ps266911002
review252971002 updated at https://codereview.tryton.org/252971002/#ps276991002
review252971002 updated at https://codereview.tryton.org/252971002/#ps301061002
review252971002 updated at https://codereview.tryton.org/252971002/#ps278651002
review252971002 updated at https://codereview.tryton.org/252971002/#ps278651002
review252971002 updated at https://codereview.tryton.org/252971002/#ps278651002
review252971002 updated at https://codereview.tryton.org/252971002/#ps278651002
review252971002 updated at https://codereview.tryton.org/252971002/#ps278651002
review252971002 updated at https://codereview.tryton.org/252971002/#ps284881002
review252971002 updated at https://codereview.tryton.org/252971002/#ps280981002
msg55630 (view) Author: [hidden] (pokoli) (Tryton committer) (Tryton translator) Date: 2020-02-27.20:37:03
@ced, tested and it works with last patchset. Thanks!
review252971002 updated at https://codereview.tryton.org/252971002/#ps295091002
msg55628 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2020-02-27.19:44:21
@pokoli, it should be fixed with last version.
msg55626 (view) Author: [hidden] (pokoli) (Tryton committer) (Tryton translator) Date: 2020-02-27.15:33:31
I've been testing the review and I think we need some documentation that describes a minimal requirements to setup the integration. 

I just managed to be able to create an user from vuestorefront to tryton backend (and it's correctly created as web_user) but when I try to login I get the following error:

53808 140309286708992 [2020-02-27 14:32:40,288] INFO werkzeug 127.0.0.1 - - [27/Feb/2020 14:32:40] "POST /vuestorefront/web_shop_vue_storefront/vue_shop/user/login HTTP/1.1" 200 -
53808 140309286708992 [2020-02-27 14:32:40,299] INFO werkzeug 127.0.0.1 - - [27/Feb/2020 14:32:40] "OPTIONS /vuestorefront/web_shop_vue_storefront/vue_shop/user/me?token=9a31d85bee28bb1c1cea7a73b39f4d62e293192035526d04193690b00fa5a13b HTTP/1.1" 204 -
53808 140309286708992 [2020-02-27 14:32:40,315] ERROR trytond.protocols.wrappers <JSONRequest 'http://localhost:8000/vuestorefront/web_shop_vue_storefront/vue_shop/user/me?token=9a31d85bee28bb1c1cea7a73b39f4d62e293192035526d04193690b00fa5a13b' [GET]>
Traceback (most recent call last):
  File "/home/pokoli/projectes/vuestorefront/trytond/trytond/protocols/wrappers.py", line 163, in wrapper
    result = func(request, pool, *args, **kwargs)
  File "/home/pokoli/projectes/vuestorefront/trytond/trytond/modules/web_shop_vue_storefront/routes.py", line 25, in route
    Session.reset(request.args['token'])
  File "/home/pokoli/projectes/vuestorefront/trytond/trytond/modules/web_user/user.py", line 489, in reset
    cls.write(sessions, {})
  File "/home/pokoli/projectes/vuestorefront/trytond/trytond/model/modelsql.py", line 159, in wrapper
    return func(cls, *args, **kwargs)
  File "/home/pokoli/projectes/vuestorefront/trytond/trytond/model/modelsql.py", line 984, in write
    cursor.execute(*table.update(columns, update_values,
  File "/home/pokoli/projectes/vuestorefront/trytond/trytond/backend/postgresql/database.py", line 67, in execute
    cursor.execute(self, sql, args)
psycopg2.errors.ReadOnlySqlTransaction: cannot execute UPDATE in a read-only transaction

53808 140309286708992 [2020-02-27 14:32:40,318] INFO werkzeug 127.0.0.1 - - [27/Feb/2020 14:32:40] "GET /vuestorefront/web_shop_vue_storefront/vue_shop/user/me?token=9a31d85bee28bb1c1cea7a73b39f4d62e293192035526d04193690b00fa5a13b HTTP/1.1" 500 -
review252971002 updated at https://codereview.tryton.org/252971002/#ps260991002
review252971002 updated at https://codereview.tryton.org/252971002/#ps280941002
review252971002 updated at https://codereview.tryton.org/252971002/#ps255051002
review252971002 updated at https://codereview.tryton.org/252971002/#ps286741002
review252971002 updated at https://codereview.tryton.org/252971002/#ps254951002
review252971002 updated at https://codereview.tryton.org/252971002/#ps280781002
review252971002 updated at https://codereview.tryton.org/252971002/#ps289211003
New review252971002 at https://codereview.tryton.org/252971002/#ps250571002
msg54981 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2020-01-21.19:15:32
Following: https://discuss.tryton.org/t/minimal-e-shop-for-tryton/217/30
History
Date User Action Args
2020-07-14 09:09:50reviewbotsetmessages: + msg59316
2020-07-14 01:46:35reviewbotsetmessages: + msg59315
2020-07-01 01:09:44reviewbotsetmessages: + msg58920
2020-06-04 13:38:02cedsetmessages: + msg58475
2020-06-04 13:27:05pokolisetmessages: + msg58474
2020-05-30 11:32:47reviewbotsetmessages: + msg58370
2020-04-26 00:21:54reviewbotsetmessages: + msg57637
2020-04-16 16:59:32reviewbotsetmessages: + msg57206
2020-04-16 15:30:25reviewbotsetmessages: + msg57203
2020-03-17 19:05:14reviewbotsetmessages: + msg56323

Showing 10 items. Show all history (warning: this could be VERY long)