Odoo Help

Welcome!

This community 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.

0

What does on_write attribute does in tree view

By
Maniganda
on 2/26/14, 12:36 AM 1,257 views

attribute on_write in tree view <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" create="true" on_write="on_create_write" version="7.0" editable="top">

why the on_write attribute used in tree view?

2

Akhil P Sivan

--Akhil P Sivan--
3423
| 5 3 6
Kochi, India
--Akhil P Sivan--

Interested in exploring Odoo both technically & functionality wise.

email-id : akhilpsivan01@gmail.com

Akhil P Sivan
On 4/1/15, 4:13 AM

Hi,

In on_write, we give the name of a method (here: "on_create_write" ) on the tree view’s respective model, which will be called with the id of a record after having created or edited that record. And the method should return a list of ids of other records to load or update. It is useful in an editable list view, like here editable="top"

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/26/14, 12:36 AM
Seen: 1257 times
Last updated: 4/1/15, 5:49 AM