Odoo Help


How do I create an invoice with a given date?

on 6/3/13, 6:49 PM 754 views

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?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/3/13, 6:49 PM
Seen: 754 times
Last updated: 3/16/15, 8:10 AM