Version: odoo 10 Community
Modules installed: Sales, Timesheet, Project
Status:
User creates product as a Service and select Track Service as "Timesheets on project".
Quotation was created with that product and it was saved.
User click on "Confirm Sale" and odoo automatically creates Analytic Account and Project. Project button appears in that new Sales order.
Problem:
User creates Sales Order and confirms sales with the product that is not related to "Timesheets on project".
User then click Edit on the Sales Order and add product related to "Timesheets on project" and click Save. Odoo doesn't create link to Project, because the method is activated on action_confirm() of the sale.order, and user cannot create timesheet for that product.
Question:
We would like to create method that will inherit sale.order and override write() method calling action_confirm() of the Confirm Sale button every time when the user click on Save button.
What model we need to use to do that?
Thank you!