Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
5070 Tampilan

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

Avatar
Buang
Jawaban Terbai

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


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Mar 23
2220
1
Nov 22
3378
1
Nov 22
3211
1
Sep 20
3540
1
Jul 20
4825