跳至內容
選單
此問題已被標幟
1 回覆
5056 瀏覽次數

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

頭像
捨棄
最佳答案

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
2202
1
11月 22
3369
1
11月 22
3185
1
9月 20
3517
1
7月 20
4814