Browse Source

pre-commit update

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

3
partner_company_type/demo/res_partner_company_type.xml

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<?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>

28
partner_company_type/security/res_partner_company_type.xml

@ -1,25 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<?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>
<field name="model_id" ref="model_res_partner_company_type"/>
<field name="group_id" ref="base.group_user"/>
<field name="perm_read" eval="1"/>
<field name="perm_create" eval="0"/>
<field name="perm_write" eval="0"/>
<field name="perm_unlink" eval="0"/>
<field name="model_id" ref="model_res_partner_company_type" />
<field name="group_id" ref="base.group_user" />
<field name="perm_read" eval="1" />
<field name="perm_create" eval="0" />
<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"/>
<field name="group_id" ref="base.group_partner_manager"/>
<field name="perm_read" eval="1"/>
<field name="perm_create" eval="1"/>
<field name="perm_write" eval="1"/>
<field name="perm_unlink" eval="1"/>
<field name="model_id" ref="model_res_partner_company_type" />
<field name="group_id" ref="base.group_partner_manager" />
<field name="perm_read" eval="1" />
<field name="perm_create" eval="1" />
<field name="perm_write" eval="1" />
<field name="perm_unlink" eval="1" />
</record>
</odoo>

12
partner_company_type/views/res_partner.xml

@ -1,16 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<?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>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<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>

36
partner_company_type/views/res_partner_company_type.xml

@ -1,42 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<?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">
<group col="4">
<field name="name"/>
<field name="shortcut"/>
<field name="name" />
<field name="shortcut" />
</group>
</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>
<field name="name"/>
<field name="name" />
</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>
<field name="name"/>
<field name="shortcut"/>
<field name="name" />
<field name="shortcut" />
</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