Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5363 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 23
2506
1
nov 22
3687
1
nov 22
3571
1
set 20
3804
1
lug 20
5112