[IMP] base_comment_template: black, isort, prettier

This commit is contained in:
Pierre Verkest
2021-01-07 22:37:54 +01:00
parent cfcac1d83e
commit 85e13a0bf7
12 changed files with 74 additions and 71 deletions

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record model="ir.ui.view" id="view_base_comment_template_search">
@@ -6,9 +6,9 @@
<field name="model">base.comment.template</field>
<field name="arch" type="xml">
<search string="Comment Templates">
<field name="name"/>
<field name="position"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="name" />
<field name="position" />
<field name="company_id" groups="base.group_multi_company" />
</search>
</field>
</record>
@@ -20,26 +20,42 @@
<form string="Comment Templates">
<sheet>
<div class="oe_button_box" name="button_box">
<button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive">
<field name="active" widget="boolean_button" options="{&quot;terminology&quot;: &quot;archive&quot;}"/>
<button
name="toggle_active"
type="object"
class="oe_stat_button"
icon="fa-archive"
>
<field
name="active"
widget="boolean_button"
options="{&quot;terminology&quot;: &quot;archive&quot;}"
/>
</button>
</div>
<div class="oe_title">
<h1>
<field name="name" placeholder="Name"/>
<field name="name" placeholder="Name" />
</h1>
</div>
<group>
<group>
<field name="position" widget="radio" invisible="context.get('default_position')"/>
<field
name="position"
widget="radio"
invisible="context.get('default_position')"
/>
</group>
<group>
<field name="company_id" groups="base.group_multi_company"/>
<field
name="company_id"
groups="base.group_multi_company"
/>
</group>
</group>
<notebook>
<page name="text" string="Comment">
<field name="text"/>
<field name="text" />
</page>
</notebook>
</sheet>
@@ -50,12 +66,12 @@
<record model="ir.ui.view" id="view_base_comment_template_tree">
<field name="name">account.comment.template.list</field>
<field name="model">base.comment.template</field>
<field name="priority" eval="6"/>
<field name="priority" eval="6" />
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="position"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="name" />
<field name="position" />
<field name="company_id" groups="base.group_multi_company" />
</tree>
</field>
</record>
@@ -64,9 +80,8 @@
<field name="name">Comment Templates</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">base.comment.template</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_base_comment_template_tree"/>
<field name="view_id" ref="view_base_comment_template_tree" />
</record>
</odoo>

View File

@@ -2,11 +2,14 @@
<record id="view_partner_form" model="ir.ui.view">
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority" eval="2"/>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="priority" eval="2" />
<field name="arch" type="xml">
<group name="sale" position="inside">
<field name="property_comment_template_id" attrs="{'invisible': ['|',('customer', '=', False), ('is_company', '=', False), ('parent_id', '!=', False)]}"/>
<field
name="property_comment_template_id"
attrs="{'invisible': [('parent_id', '!=', False)]}"
/>
</group>
</field>
</record>