Skip to Content
Menu
This question has been flagged
4 Replies
4984 Views

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?

Avatar
Discard

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.

Dear Mr Akhil,

Thank you for your prompt response. To be honest with you I am very new to Odoo. Where can I find more tutorials to work with Odoo?


Regards

Haroon

On Sun, Feb 12, 2017 at 7:49 PM, Akhil P Sivan <akhilpsivan01@gmail.com> wrote:

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.

--
Akhil P Sivan


Sent by Odoo S.A. using Odoo.


Author Best Answer

Hi Hilar,


Tthe link you have put for documentation does not work.


Avatar
Discard
Best Answer

Hi,

Try these Documentation

Cheers !

Avatar
Discard