Hi I'm struggling to add project message in project.task tree view.
But Somehow I cannot add it there please let me know.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi I'm struggling to add project message in project.task tree view.
But Somehow I cannot add it there please let me know.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
4
Oct 20
|
8217 | ||
|
3
Feb 24
|
9768 | ||
|
1
Nov 23
|
2189 | ||
|
1
Jun 23
|
3081 | ||
|
0
Feb 23
|
2277 |
You can extend listview template to add a new row in tree view
@Mohammed Amal Thanks for letting me know. however, How do you show the new row in selected model or view? and how do you get a field value from a model?
I've done this so far for your advise.
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-extend="ListView">
<t t-jquery="thead" t-operation="before">
<button class="oe_button oe_highlight" type="button">Custom Button</button>
</t>
</t>
</templates>
I could show this to where i want with the code below.
<t t-if="options.action.res_model=='project.task'">
<button type="button" class="btn btn-sm btn-primary o_list_button_add" accesskey="C">
<t t-esc="options.action.res_model"/>
</button>
</t>
But the problem is I cannot get data from project.project model.
Is there any idea?