initial commit
This commit is contained in:
21
odoo/addons/project_html_rtl/views/project_task_view.xml
Normal file
21
odoo/addons/project_html_rtl/views/project_task_view.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="project_task_form_inherit_html" model="ir.ui.view">
|
||||
<field name="name">project.task.form.inherit.html</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="inherit_id" ref="project.view_task_form2"/>
|
||||
<field name="arch" type="xml">
|
||||
<!-- Enable HTML widget on description and notes when present; add a marker attribute so JS can target them. -->
|
||||
<xpath expr="//field[@name='description']|//field[@name='notes']" position="attributes">
|
||||
<attribute name="widget">html</attribute>
|
||||
<attribute name="data-project-html">1</attribute>
|
||||
</xpath>
|
||||
<!-- Add per-task RTL toggle to the form (inside the first sheet) -->
|
||||
<xpath expr="//form//sheet" position="inside">
|
||||
<group>
|
||||
<field name="rtl_enable"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user