diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/pad_project/views/project_views.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/pad_project/views/project_views.xml')
| -rw-r--r-- | addons/pad_project/views/project_views.xml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/addons/pad_project/views/project_views.xml b/addons/pad_project/views/project_views.xml new file mode 100644 index 00000000..3539d850 --- /dev/null +++ b/addons/pad_project/views/project_views.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <record id="view_task_form2_inherit_pad_project" model="ir.ui.view"> + <field name="name">project.task.form.inherit</field> + <field name="model">project.task</field> + <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)], 'readonly': [('use_pad', '=', True)]}</attribute> + </xpath> + <field name="description" position="after"> + <field name="use_pad" invisible="1"/> + <field name="description_pad" widget="pad" attrs="{'invisible': [('use_pad', '=', False)], 'readonly': [('use_pad', '=', False)]}"/> + </field> + </field> + </record> + + <record id="project_project_view_form" model="ir.ui.view"> + <field name="name">project.project.view.form</field> + <field name="model">project.project</field> + <field name="inherit_id" ref="project.edit_project"/> + <field name="arch" type="xml"> + <xpath expr="//field[@name='description']" position="attributes"> + <attribute name="attrs">{'invisible': [('use_pads', '=', True)], 'readonly': [('use_pads', '=', True)]}</attribute> + </xpath> + <field name="description" position="after"> + <field name="use_pads" invisible="1"/> + <field name="description_pad" widget="pad" nolabel="1" + attrs="{'invisible': [('use_pads', '=', False)], 'readonly': [('use_pads', '=', False)]}"/> + </field> + <xpath expr="//div[@id='rating_settings']" position="after"> + <div class="col-lg-6 o_setting_box" id="pad_settings"> + <div class="o_setting_left_pane"> + <field name="use_pads"/> + </div> + <div class="o_setting_right_pane"> + <label for="use_pads" string="Collaborative Pads"/> + <div class="text-muted"> + Edit tasks' description collaboratively in real time.<br/> + See each author's text in a distinct color. + </div> + <div class="content-group" attrs="{'invisible': ['|', ('use_pads', '=', False), ('privacy_visibility', '!=', 'portal')]}"> + <div class="mt16 row"> + <label for="pad_availability" string="Available to:" class="col-3 col-lg-3 o_light_label"/> + <field name="pad_availability" widget="radio"/> + </div> + </div> + </div> + </div> + </xpath> + </field> + </record> + +</odoo> |
