Is there a method in odoo Online to create an invoice from an action?
To pytanie dostało ostrzeżenie
1
Odpowiedz
6987
Widoki
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
1
mar 23
|
4166 | ||
|
|
1
lis 22
|
5162 | ||
|
Create invoice via xmlrpc
Rozwiązane
|
|
1
lis 22
|
5290 | |
|
|
1
wrz 20
|
5236 | ||
|
|
1
lip 20
|
6474 |