Hi all, I am new to Odoo. I am trying to have one common number between two different modules. For example I have helpdesk module and what i want is that when the ticket is created, we should be able to create a quotation with the same ticket number to keep everything in same order. Tickets are created in the Helpdesk module and Quotations are created in the Sales module.
How to link them?
You need to override the create method in ticket model, extract the data you need from the ticket as a dictionary with sale order fields, and call the sale order create method by passing that dictionary, from the ticket create method.