Skip to Content
Menu
This question has been flagged
1 Atsakyti
5051 Rodiniai

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

Portretas
Atmesti
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


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
kov. 23
2194
1
lapkr. 22
3365
1
lapkr. 22
3181
1
rugs. 20
3515
1
liep. 20
4801