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

Is there a method in odoo Online to create an invoice from an action?

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

Hello,

I don't really know the purpose but if you want to create an empty customer invoice.

In python you can do a method like:

def create_empty_invoice(self):
     self.env['account.move'].create({'move_type': 'out_invoice'})

Then you can add a button in form view for example calling the method


Hope it will help you


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 23
2194
1
thg 11 22
3365
1
thg 11 22
3181
1
thg 9 20
3515
1
thg 7 20
4800