Browse Source

pre-commit update

14.0
OCA-git-bot 5 years ago
committed by Kitti U
parent
commit
39f1cb6b58
  1. 1
      partner_company_type/demo/res_partner_company_type.xml
  2. 2
      partner_company_type/security/res_partner_company_type.xml
  3. 8
      partner_company_type/views/res_partner.xml
  4. 24
      partner_company_type/views/res_partner_company_type.xml

1
partner_company_type/demo/res_partner_company_type.xml

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017-2018 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record model="res.partner.company.type" id="res_partner_company_type_sa">
<field name="name">Anonymous Company</field>

2
partner_company_type/security/res_partner_company_type.xml

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017-2018 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="ir.model.access" id="res_partner_company_type_user">
<field name="name">res.partner.company.type user</field>
@ -12,7 +11,6 @@
<field name="perm_write" eval="0" />
<field name="perm_unlink" eval="0" />
</record>
<record model="ir.model.access" id="res_partner_company_type_manager">
<field name="name">res.partner.company.type manager</field>
<field name="model_id" ref="model_res_partner_company_type" />

8
partner_company_type/views/res_partner.xml

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017-2018 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">res.partner.form</field>
@ -9,8 +8,11 @@
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<field name="title" position="after">
<field name="partner_company_type_id" options='{"no_open": True}'
attrs="{'invisible': [('is_company', '=', False)]}"/>
<field
name="partner_company_type_id"
options='{"no_open": True}'
attrs="{'invisible': [('is_company', '=', False)]}"
/>
</field>
</field>
</record>

24
partner_company_type/views/res_partner_company_type.xml

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017-2018 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="ir.ui.view" id="res_partner_company_type_form_view">
<field name="name">res.partner.company.type.form (in partner_company_type)</field>
<field
name="name"
>res.partner.company.type.form (in partner_company_type)</field>
<field name="model">res.partner.company.type</field>
<field name="arch" type="xml">
<form string="Company Types">
@ -15,9 +16,10 @@
</form>
</field>
</record>
<record model="ir.ui.view" id="res_partner_company_type_search_view">
<field name="name">res.partner.company.type.search (in partner_company_type)</field>
<field
name="name"
>res.partner.company.type.search (in partner_company_type)</field>
<field name="model">res.partner.company.type</field>
<field name="arch" type="xml">
<search>
@ -25,9 +27,10 @@
</search>
</field>
</record>
<record model="ir.ui.view" id="res_partner_company_type_tree_view">
<field name="name">res.partner.company.type.tree (in partner_company_type)</field>
<field
name="name"
>res.partner.company.type.tree (in partner_company_type)</field>
<field name="model">res.partner.company.type</field>
<field name="arch" type="xml">
<tree>
@ -36,7 +39,6 @@
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="res_partner_company_type_act_window">
<field name="name">Company Types</field>
<field name="res_model">res.partner.company.type</field>
@ -44,10 +46,10 @@
<field name="domain">[]</field>
<field name="context">{}</field>
</record>
<menuitem action="res_partner_company_type_act_window"
<menuitem
action="res_partner_company_type_act_window"
id="menu_partner_company_type"
name="Company Types"
parent="contacts.res_partner_menu_config"/>
parent="contacts.res_partner_menu_config"
/>
</odoo>
Loading…
Cancel
Save