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'm not able to find the definition of this popup windows. Is it in the database? In a .py file?
I want to see the code who constructs the « Use template » section in the bottom at right. My goal is really to change the default value of « Use template » field.
In ir.ui.view, I have found sale.order.form :
<button name="action_quotation_send" string="Send by Email" type="object" states="sent,progress,manual" groups="base.group_user"/>
In the file addons/sale/sale.py, we have the definition of action_quotation_send :
def action_quotation_send(self, cr, uid, ids, context=None):
This function opens a window to compose an email, with the edi sale template message loaded by default
assert len(ids) == 1, 'This option should only be used for a single id at a time.'
ir_model_data = self.pool.get('ir.model.data')
template_id = ir_model_data.get_object_reference(cr, uid, 'sale', 'email_template_edi_sale')
template_id = False
compose_form_id = ir_model_data.get_object_reference(cr, uid, 'mail', 'email_compose_message_wizard_form')
compose_form_id = False
ctx = dict()
'views': [(compose_form_id, 'form')],
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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: 12/26/14, 8:24 AM|
|Seen: 2001 times|
|Last updated: 3/16/15, 8:10 AM|