Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1651 มุมมอง

Hi Odooers,


I know that a sale order is created/updated while the user clicks on Add to Cart on the website. I think the function for that is sale_get_order(). But, what I want to know is, when/how is the order line is added to the corresponding sale order?. I have to add some extra values to the sale order line to achieve my need.


Thanks in advance.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

The order line creation process is happening from the method def _cart_update() define website_sale/models/sale_order.py path. Here you can do modification as per your needs. 

อวตาร
ละทิ้ง