openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #04202
Re: Central Project for POS
I will try to refactor my code when I 'll get the time. But I don't know
when !
2013/12/10 Agustín Cruz <atin81@xxxxxxxxx>
> Thank you for send the logic, really appreciate! We are going to start
> working on this and let you know anything we could get done.
>
>
> On 10/12/13 01:55, Aurélien DUMAINE wrote:
>
> This is the basic logic. In reallity orders are also put in client Js DB
> (in case of server disconexion).
>
> Server side :
> -----------------
> ===> update_order(order_id, clien_sync_key, productLines, paymentLines) :
> if order_id :
> return DELTED_ORDER to the client
> if (client_sync_key !=0 and order_database_sync_key != client_sync_key) :
> return error 'BAD_SYNCHRO_KEY' to the client
> else :
> update_order_in_DB
> generate_new_sync_key
> return new_sync_key to the client
>
> ====> get_order_details(order_id):
> if order_id doesn't exist :
> return DELTED_ORDER to the client
> else :
> return productLines and paymentLines in a json string to the cilent
>
> ====> del_order(id, sync_key):
> if (client_sync_key !=0 and order_database_sync_key != client_sync_key) :
> return error 'BAD_SYNCHRO_KEY' to the client
> else :
> delete_order
>
> Client side :
> -----------------
> ===> On create order : sync_key initialised to 0.
>
> ===> On order swithcing(old_order=>new_order) :
> the old_order(json order, including the sync_key) is sent to server
> update_pos methode.
> If it returns 'BAD_SYNCHRO_KEY', a pop up inform the user that the order
> had been modificated on an other POS before he switched order. Last
> modifications are lost. He has to reload the order if he want to redo his
> modifications.
> If it returns DELETED_ORDER we display an informative popup, the order is
> removed on client side and we display the next one in the stack.
> In other case, we update the synch_key returned by the serverin the client.
>
> Call to server methode get_order_details(new_order_id) : If returns
> 'DELETED_ORDER', we display an informative popup, the order is removed on
> client side and we display the next one in the stack. Else all productLines
> and paymentLines of new_order are update from server side
>
> ===> On delete order : If sync_key != 0 call to del_order server method.
> If BAD_SYNC_KEY is return we display a pop-up, else we destroy the client
> side order.
>
>
> I don't know if it 'll be helpfull.....
>
>
>
> 2013/12/9 Aurélien DUMAINE <aurelien.dumaine@xxxxxxx>
>
>> I would like... but this module is a huge mess !
>>
>> I had to develop a special client (WX-python based) because my customer's
>> tactile computer was to old to execute the WebBased of OpenERP. I have made
>> client side modifications only for the wx-python client so... I should
>> report those modifications on the official web-based client before
>> publishing the code.
>>
>> I'm sorry.
>>
>>
>> 2013/12/6 Agustín Cruz <atin81@xxxxxxxxx>
>>
>>> Hello Aurélien, we are looking for similar synchronization feature. Do
>>> you have available on any repository so we can join efforts and improve the
>>> features?
>>>
>>>
>>> 2013/10/21 Aurélien DUMAINE <aurelien.dumaine@xxxxxxx>
>>>
>>>> Hi all,
>>>>
>>>> It would be great.
>>>>
>>>> I have created a sync module (synchronisation of the waiting pos
>>>> orders from one POS to the others) for a client that i would be happy to
>>>> publish on this new repository in a few weeks/months.
>>>>
>>>> Regards.
>>>>
>>>> Aurélien DUMAINE - Génie Informatique.
>>>> Université de technologie de Compiègne
>>>> wwwetu.utc.fr/~adumaine <http://wwwetu.utc.fr/%7Eadumaine>
>>>>
>>>> 2013/10/22 Eric Caudal <eric.caudal@xxxxxxxxxxxxxx>
>>>>
>>>>> pos?
>>>>> POS =Point of "Sales" already.
>>>>> I could see a lot of other activity (reception, preparation waves
>>>>> etc.) where a POS could be used but interface should be very different so
>>>>> probably not only one interface.
>>>>>
>>>>>
>>>>> Eric Caudal*CEO*
>>>>> --*Elico Corporation, Shanghai branch
>>>>> OpenERP Premium Certified Training Partner *
>>>>> Cell: + 86 186 2136 1670
>>>>> Office: + 86 21 6211 8017/27/37
>>>>> Skype: elico.corperic.caudal@elico-corp.comhttp://www.elico-corp.com
>>>>>
>>>>> [image: Elico Corp]
>>>>> On 10/22/2013 06:27 AM, Pedro Manuel Baeza Romero wrote:
>>>>>
>>>>> Indeed, one community repository for POS improvements is mandatory.
>>>>> I will create one tomorrow. Which name do you think is the best?
>>>>> openerp-pos? sale-pos?
>>>>>
>>>>> Regards.
>>>>>
>>>>>
>>>>> 2013/10/22 Eric Caudal <eric.caudal@xxxxxxxxxxxxxx>
>>>>>
>>>>>> definitely.
>>>>>> We would be able to contribute in the coming months.
>>>>>>
>>>>>> Eric Caudal*CEO*
>>>>>> --*Elico Corporation, Shanghai branch
>>>>>> OpenERP Premium Certified Training Partner *
>>>>>> Cell: + 86 186 2136 1670
>>>>>> Office: + 86 21 6211 8017/27/37
>>>>>> Skype: elico.corperic.caudal@elico-corp.comhttp://www.elico-corp.com
>>>>>>
>>>>>> [image: Elico Corp]
>>>>>> On 10/22/2013 06:10 AM, Marc Cassuto wrote:
>>>>>>
>>>>>> Hello all,
>>>>>>
>>>>>> POS is an important module which lack lot of features...
>>>>>> Customers requests are numerous and there are already lot of interesting modules widespread; but some are just waiting to be merged in trunk...
>>>>>>
>>>>>> I wonder if there is an existing central LP project for all POS developments ?
>>>>>> If not, should we create one ?
>>>>>>
>>>>>> Any comment is welcome...
>>>>>> Marc
>>>>>>
>>>>>> ==
>>>>>> Marc Cassuto
>>>>>>
>>>>>> SAVOIR-FAIRE LINUX
>>>>>> Consultant solutions ERP
>>>>>> T: 514-276-5468 #180
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list: https://launchpad.net/~openerp-community
>>>>>> Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
>>>>>> Unsubscribe : https://launchpad.net/~openerp-community
>>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list: https://launchpad.net/~openerp-community
>>>>>> Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
>>>>>> Unsubscribe : https://launchpad.net/~openerp-community
>>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~openerp-community
>>>>> Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~openerp-community
>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~openerp-community
>>>>> Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~openerp-community
>>>>> More help : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~openerp-community
>>>> Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~openerp-community
>>>> More help : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>
>
>
References