Hello, is there a way to make invoices' date be the same as sales orders' date?
We are using Odoo 8 and we have a big problem in terms of creating invoices for our customers and setting the invoice to have the sales order's date would save us so much time and trouble.
If no solution, can we at least change invoice date before printing? This is very labor intensive, but would also do the trick as well.
Thanks a lot for any help and please, if you have questions, don't hesitate to ask me.
Hello Again Noah :)
Actually the invoicing date takes the 'current date of pressing the create invoice button' and you can check this here in the wizard
and this will be passed cross multiple functions starting from here. So to solve this you can change the value of this field 'invoice date' to the SO's date. Or you can modify the function that creates the invoice which you can modify the create dict from here
Try to update this line to be as:
'date_invoice': order.date_order or order.create_date or context.get('date_invoice', False),
Hope this will give you some clues ...
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
|Asked: 11/2/16, 5:00 PM|
|Seen: 258 times|
|Last updated: 11/3/16, 7:35 AM|