Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I would like to link an existing invocie to a sale order. (Because I create a sale order, start a project and then create an invoice based on the project. And I cannot create the invoice based on the sale order as the projects sometimes strongly differ from the initial sale order.)
When I go to my database and put the correct ids in the sale_order_invoice_rel table and set the "state" field of the correct sale order in the sale_order table to "done" the outcome is exactly what I want. However I don't like to do this changes manually in the DB after every project...
I tried to set readonly=False for "state" and "invoice_ids" in the sale_order class in the sale.py file. But it looks like this had no effect (when I look at the model in Settings -> DB -> Model it still says readonly=true). I also tried to set readonly to FALSE of those fields directly in the DB in the ir_model_fields table but this also didn't work (in Model it now says readonly = false but when I add those fields to a from I cannot change the state or add invoices to the invoice list).
So how can I achieve this? Thanks for any help!
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/29/14, 8:40 PM|
|Seen: 1411 times|
|Last updated: 5/25/15, 11:50 AM|