تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5074 أدوات العرض

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
مارس 23
2228
1
نوفمبر 22
3389
1
نوفمبر 22
3219
1
سبتمبر 20
3549
1
يوليو 20
4836