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

Hello Odoo team

I would need to get always and by default the invoice generated while finishing a sale from the PoS. 
Any way to add that behevior ?


Please ?
Luc (Odoo 17.0-20240312 (Edition Community))




PS : when an invoice was not (by mistake of the user) not generated on PoS (status is command published), any way to quickly create an invoice from the command? I can't see how...

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

hello

 1) some apps (extension) propose this feature (not for free) and nicely customizable


2) this is absolutely unclean, but a previous answer to a similar question helped me

            update addons/point_of_sale/static/src/app/screens/payment_screen/payment_screen.js

            locate the function  async validateOrder(isForceValidate), under the first instruction, you may add:

            //---- Update Begin -  Force Invoice to be generated

            if (!this.currentOrder.is_to_invoice()){this.toggleIsToInvoice();}

            //--- Update End

HTH

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 25
1213
1
thg 5 25
3345
1
thg 6 24
1565
2
thg 5 24
1950
1
thg 4 24
2573