Creating an invoice from a sale order ; a field is not copied in the right destination
Hello all,
I received an information from my acount manager about a problem of invoice creation.
In the sale order, there's a field 'client_order_ref' . In the account_invoice, there's a field 'name' and a field 'reference'.
When an invoice is created from a sale order, the value of the field client_order_ref is copied into the field 'name' of the invoice which seems not correct to us because the field name is the one displayed in the accounting.
We'd like that the value of the field 'client_order_ref' is copied into the field 'reference' but as I'm a beginner in python developpings, I request your help. I think I have to heritate the classs sale.order but ...
Thanks for your help
Finallym, after some researchs, I' just woul'd like to overwrite the function _make_invoice() to redirect the value of the fields but doesnt know the way to do it. Do have I to inherit the whole class and rewrite the function _make_invoice() with my own changes ?
Is it enough ? will my new function take the place of the 'old' one ?
Thanks for your help and your time
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Vinay Rana (OpenERP)
- Solved:
- Last query:
- Last reply: