OCA-git-bot
5 years ago
committed by
Kitti U
4 changed files with 44 additions and 43 deletions
-
5partner_company_type/demo/res_partner_company_type.xml
-
28partner_company_type/security/res_partner_company_type.xml
-
14partner_company_type/views/res_partner.xml
-
40partner_company_type/views/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 |
|||
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> |
|||
<field name="name">Anonymous Company</field> |
|||
<field name="shortcut">AC</field> |
|||
</record> |
|||
</odoo> |
@ -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> |
@ -1,17 +1,19 @@ |
|||
<?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> |
|||
</field> |
|||
</record> |
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue