Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5063 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 23
2216
1
lis 22
3376
1
lis 22
3188
1
wrz 20
3527
1
lip 20
4820