跳至内容
菜单
此问题已终结
1 回复
5053 查看

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
2195
1
11月 22
3366
1
11月 22
3181
1
9月 20
3516
1
7月 20
4809