Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2974 Lượt xem

I am making a module for the sale of credits for an online reservation site with memberships. I already have functionalities so that if the client buys from the website, the credits are assigned to the user (partner) who makes the purchase. Then I would like to be able to sell those same credits from the POS, but to be able to carry out the sale I need again to select a user (customer) to whom the purchased credits are going to be added.
I have tried to send a ValidationError and UserError from the `action_pos_order_paid` method but this is only shown in the console and does not stop the purchase process. 


What is the method to inherit and interrupt the purchase, or how could I send a message to the frontend of the POS so that it does not allow validation if it does not have any selected user?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Jorge,

If you have to make customer mandatory in POS for payment or order then you can use below module. 

https://apps.odoo.com/apps/modules/15.0/pos_required_customer/

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 9 25
390
0
thg 10 24
1807
1
thg 9 24
2489
0
thg 11 23
2263
0
thg 5 23
2998