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

I have a custom module that imports orders and creates Sales Orders and Invoices automatically.

I'm currently using the manual_invoice workflow to generate the invoice from the Sale Order.

invoice_ids = sock.execute(cr.dbname, sysid, pwd, 'sale.order', 'manual_invoice', order_id) invoice_id = invoice_ids['res_id'] sock.exec_workflow(cr.dbname, sysid, pwd, 'account.invoice', 'invoice_open', invoice_id)

All works well except from the fact that the invoice date is created at run time and therefore is related to the import date rather than the transaction date, is there an alternative method to generate an invoice from a sale order that allows to specify a date?

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 25
1189
2
يوليو 25
1392
1
يوليو 25
2447
3
أبريل 25
2368
3
أبريل 25
3375