Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5071 Prikazi

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

Avatar
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
mar. 23
2224
1
nov. 22
3378
1
nov. 22
3213
1
sep. 20
3542
1
jul. 20
4832