Browse Source

pre-commit update

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

5
partner_company_type/demo/res_partner_company_type.xml

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

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 <!-- Copyright 2017-2018 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record model="ir.model.access" id="res_partner_company_type_user"> <record model="ir.model.access" id="res_partner_company_type_user">
<field name="name">res.partner.company.type user</field> <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>
<record model="ir.model.access" id="res_partner_company_type_manager"> <record model="ir.model.access" id="res_partner_company_type_manager">
<field name="name">res.partner.company.type manager</field> <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> </record>
</odoo> </odoo>

14
partner_company_type/views/res_partner.xml

@ -1,17 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2017-2018 ACSONE SA/NV <!-- Copyright 2017-2018 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record id="view_partner_form" model="ir.ui.view"> <record id="view_partner_form" model="ir.ui.view">
<field name="name">res.partner.form</field> <field name="name">res.partner.form</field>
<field name="model">res.partner</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="arch" type="xml">
<field name="title" position="after"> <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>
</field>
</field>
</record> </record>
</odoo> </odoo>

40
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 <!-- Copyright 2017-2018 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record model="ir.ui.view" id="res_partner_company_type_form_view"> <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="model">res.partner.company.type</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Company Types"> <form string="Company Types">
<group col="4"> <group col="4">
<field name="name"/>
<field name="shortcut"/>
<field name="name" />
<field name="shortcut" />
</group> </group>
</form> </form>
</field> </field>
</record> </record>
<record model="ir.ui.view" id="res_partner_company_type_search_view"> <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="model">res.partner.company.type</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<search> <search>
<field name="name"/>
<field name="name" />
</search> </search>
</field> </field>
</record> </record>
<record model="ir.ui.view" id="res_partner_company_type_tree_view"> <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="model">res.partner.company.type</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree> <tree>
<field name="name"/>
<field name="shortcut"/>
<field name="name" />
<field name="shortcut" />
</tree> </tree>
</field> </field>
</record> </record>
<record model="ir.actions.act_window" id="res_partner_company_type_act_window"> <record model="ir.actions.act_window" id="res_partner_company_type_act_window">
<field name="name">Company Types</field> <field name="name">Company Types</field>
<field name="res_model">res.partner.company.type</field> <field name="res_model">res.partner.company.type</field>
@ -44,10 +46,10 @@
<field name="domain">[]</field> <field name="domain">[]</field>
<field name="context">{}</field> <field name="context">{}</field>
</record> </record>
<menuitem action="res_partner_company_type_act_window"
id="menu_partner_company_type"
name="Company Types"
parent="contacts.res_partner_menu_config"/>
<menuitem
action="res_partner_company_type_act_window"
id="menu_partner_company_type"
name="Company Types"
parent="contacts.res_partner_menu_config"
/>
</odoo> </odoo>
Loading…
Cancel
Save