Is there a method in odoo Online to create an invoice from an action?
此问题已终结
1
回复
6999
查看
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
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
|
1
3月 23
|
4176 | ||
|
|
1
11月 22
|
5173 | ||
|
|
1
11月 22
|
5299 | ||
|
|
1
9月 20
|
5238 | ||
|
|
1
7月 20
|
6478 |