Skip to Content
Menu
This question has been flagged

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
0
Feb 22
2566
3
Oct 21
7203
2
Mar 20
7200
2
May 18
7221
8
May 24
19379