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 |
<!-- 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> |
@ -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> |
@ -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> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue