[FIX] pad_project: do not write on task description when using pad.
This revision is similar to
6e8faf40bd
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
This commit is contained in:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user