Skip to Content
मेन्यू
This question has been flagged
1 Reply
5099 Views

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

Avatar
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
1
मार्च 23
2276
1
नव॰ 22
3412
1
नव॰ 22
3277
1
सित॰ 20
3578
1
जुल॰ 20
4877