Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
5062 Visninger

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

Avatar
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
mar. 23
2212
1
nov. 22
3373
1
nov. 22
3188
1
sep. 20
3521
1
jul. 20
4817