Timestamp behavior (concurrency exception)

20 views
Skip to first unread message

Diego Abad

unread,
Dec 29, 2015, 5:35:04 AM12/29/15
to tryton
I've seen that when I open a draft purchase order on SAO, if I modify "Aditional information" field, and then click on quotation button, 
the client show me a concurrency exeption.



If I execute the same operation on Gtk Client, this works fine.

I view the server log and find the cause of exeption: when SAO call "quote" action on purchase order, send timestamp with a value, and when GTK client execute the same operation send timestamp with None.

Web client (SAO)
3860 140017359230720 [2015-12-29 10:03:08,119] INFO trytond.protocols.dispatcher model.purchase.purchase.quote(*([2], {u'date_format': u'%d/%m/%Y', u'_timestamp': {u'purchase.purchase,2': u'1451383373.98112', u'purchase.line,2': u'1451382020.6951'}, u'language': u'es_ES', u'locale': {u'date': u'%d/%m/%Y', u'thousands_sep': u'.', u'grouping': [3, 3, 0], u'decimal_point': u','}, u'language_direction': u'ltr', u'company.rec_name': u'MIN', u'groups': [1, 12, 11, 7, 6, 5, 2, 13, 10, 9, 8, 4, 3], u'employee': None, u'company': 1}), **{}) from 1...@127.0.0.1:34730/md2


Gtk Client (Tryton)
3860 140017377588992 [2015-12-29 10:05:14,301] INFO trytond.protocols.dispatcher model.purchase.purchase.quote(*([2], {u'date_format': u'%d/%m/%Y', u'_timestamp': {u'purchase.purchase,2': None}, u'language': u'es_ES', u'locale': {u'date': u'%d/%m/%Y', u'thousands_sep': u'.', u'decimal_point': u',', u'grouping': [3, 3, 0]}, u'language_direction': u'ltr', u'company.rec_name': u'MIN', u'groups': [1, 12, 11, 7, 6, 5, 2, 13, 10, 9, 8, 4, 3], u'employee': None, u'company': 1}), **{}) from 1...@127.0.0.1:34600/md2


I think that SAO should handle context the same way it that GTK client does...

Cédric Krier

unread,
Dec 29, 2015, 5:55:06 AM12/29/15
to tryton
On 2015-12-29 02:18, Diego Abad wrote:
> I think that SAO should handle context the same way it that GTK client
> does...

Please fill a bug on https://bugs.tryton.org/ instead of posting on the
mailing list.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages