last day (14 days later) » 

11:49 AM
0
A: Disable one2many popup odoo 8

Prakash SharmaUse editable='bottom' in this case, like: <field name='line_ids'> <tree create='false' editable='bottom'> <field name='so_line_id' readonly='1'/> <tree> </field>

 
Checked Not working readonly on tree view work only onedit not on read
 
"tree view work only onedit not on read" ?? please explain it,( initially you have asked " is it possible to disable pop of tree view in the form" and i have answered for it)
 
Thanks for your answer i tried your method but didn't work. i add create="false" editable="bottom" and still on click popup come up. I am using odoo 9
 
please post your code
 
Check above i add my code.
 
11:49 AM
you are using editable="top" , use editable='bottom', and create='false' non necessary for it
 
editable="bottom" still not working..! i think you didn't get it when i click the tree view on save mode it doesnt work on edit mode it's fine
Prakash Hi
 
hi
Iin odoo ,on save mode you can open the kind of popup you want,
 
Yes but i don't want it to be open
example like order line in invoice
when the product item is click it should not open a popup
i hope you get it
?
 
yes, i
 
12:08 PM
hi omeed at present i can only suggest you the cource codepath form where this is happening ,for this :->open addons/web/static/src/js/view_tree.js ,view_list.js , and add you logic here like hook_row_click
*source codepath
 
Ohhhh i don't have the knowledge of javascript
thanks anyway i will save this and try let me see what i can do
prakash do you mind if i ask you one more question
how to format this email
    mail_pool = self.env['mail.mail']
    values = {}
    values.update({'Subject': "Record Has Been Updated"})
    values.update({'email_to': self.user_id.login})
    values.update({'body':'This is my Message'})
    msg_id = mail_pool.create(values)
    if msg_id:
        mail_pool.send([msg_id])
it appear in a very bad shape
u there?
?
 
 
3 hours later…
3:36 PM
hi
use if msg_id: msg_id.send()
instead of mail_pool.send([msg_id]), bcz msg_id is itself a object of mail.mail
 

last day (14 days later) »