diff options
| author | Denis Ledoux <dle@odoo.com> | 2017-12-21 14:43:02 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2017-12-21 14:45:40 +0100 |
| commit | c2a5d6031cc448b5af601a3a75dbc0d3d2cab09c (patch) | |
| tree | 7b2652af084360e256e82672672e76ff3945789f | |
| parent | 2511d77936d1a512aa72ec5e60594f5abbb6d402 (diff) | |
[FIX] pad_project: do not write on task description when using pad.
This revision is similar to
6e8faf40bd1f63b8001aad11bca9ff749ca365c8
but for the opposite case:
When the task is using the pad,
somehow the regular `description` pad
was written as well on save, making both field
being saved together,
and when description is saved
its content is written on the pad.
Therefore, whatever you written in the pad,
the pad was overriden with the current content of
the task regular description field
opw-787773
| -rw-r--r-- | addons/pad_project/views/project_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/pad_project/views/project_views.xml b/addons/pad_project/views/project_views.xml index c35bd4225ee..e97514a9859 100644 --- a/addons/pad_project/views/project_views.xml +++ b/addons/pad_project/views/project_views.xml @@ -6,7 +6,7 @@ <field name="inherit_id" ref="project.view_task_form2"/> <field name="arch" type="xml"> <xpath expr="//field[@name='description']" position="attributes"> - <attribute name="attrs">{'invisible': [('use_pad', '=', True)]}</attribute> + <attribute name="attrs">{'invisible': [('use_pad', '=', True)], 'readonly': [('use_pad', '=', True)]}</attribute> </xpath> <field name="description" position="after"> <field name="use_pad" invisible="1"/> |
