Ir al contenido
Menú
Se marcó esta pregunta

Hi Odoo Community,


I'm new to creating modules and addons for Odoo, and while I’ve followed the official documentation and tutorials for development, I’m now diving into the point_of_sale module. I’m looking to modify payment processing and order saving, but I’m having trouble understanding how the frontend and backend logic work together in POS.


From my exploration of the point_of_sale module, I noticed it has distinct frontend and backend logic, which differs from the estate app you are taught in the tutorial. I understand this is done so the app can operate in the browser and offline. I have a few specific questions:


  1. Are there any resources that explain the architecture of this specific module? 
  2. How does the payment processing flow work in POS, and which modules control this?
  3. Can anyone break down the execution flow of code during the checkout process, particularly when saving orders and processing payments?


Any guidance or pointers would be greatly appreciated as I’m trying to get a better understanding of the POS architecture.

Avatar
Descartar
Mejor respuesta

I wished I have the answers to these question previously which would have saved me hundreds of hours studying Odoo's and OCA's codes especially those related to POS module.

This is the answers from my approach which was the hard way:
Resources: Odoo's code and OCA Point of Sales
Which modules: I guess at least the point_of_sale, pos_sale, post_online_payment
Execution flow: My guess with some common sense is pos to handle the product,quantity,price then pos sales to create the order with lines then pos_online_payment to settle the payment. 

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
feb 22
2559
3
oct 21
7197
2
mar 20
7190
2
may 18
7212
8
may 24
19362