********************** EDIT ****************************
Please check the link for the way I solved
http://stackoverflow.com/questions/26715665/how-to-add-a-value-to-invoice-from-addons-stock-account-stock-py-in-odoo/32568579#32568579
**********************************************************
1. I have declared my custom date in invoice for each invoice line. Code is as below.
class invoice_line(osv.osv):
_name = 'account.invoice.line'
_inherit = 'account.invoice.line'
_columns = {
'x_delivery_date' : fields.datetime(string="Delivery Date")
}
2. in Warehouse for each move_lines of the id there is a variable - date_expected (Expected Date). Suppose for a particular move I want to generate invoice by clicking Create Invoice so, when user clicks on create invoice then some of the move data transfers from stock.picking to account.invoice. I want the date_expected field data to be transferred as well into the x_delivery_date field.
I am stuck up in point 2.
A bit unclear. Could you pls feed us with how do you generate the invoice, I prefer posting the code you've written along with the supposed result, and the currently unexpected result so one can help