Hi, some help plz
how can i choose payment methods appearance order in POS session, for ex: cash before bank, or inverse
i've already created some payment method, (cash, bank, user account...) i just want to display them in customized order in POS session (on payment) like:
1-bank
2-cash
3-user account
i've tried to select the payment method on POS settings in the exact order of display, but it doesn't work
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
1258
Lượt xem
Hi,
Create a new field sequence then add that to the pos.payment.method then update the pos.session _loader_params_pos_payment_method function to order by the sequence field
class PosPaymentMethod(models.Model):
_inherit = 'pos.payment.method'
sequence = fields.Integer('Sequence')
class PosSession(models.Model):
_inherit = 'pos.session'
def _loader_params_pos_payment_method(self):
res = super()._loader_params_pos_payment_method()
res["search_params"]["order"] = 'sequence asc, id'
return res
Regards
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký