Ronald Portier
6 years ago
committed by
Holger Brunn
11 changed files with 231 additions and 238 deletions
-
17partner_noncommercial/README.rst
-
3partner_noncommercial/__init__.py
-
20partner_noncommercial/__manifest__.py
-
20partner_noncommercial/__openerp__.py
-
17partner_noncommercial/data/ir_translation.xml
-
64partner_noncommercial/i18n/nl.po
-
36partner_noncommercial/i18n/partner_noncommercial.pot
-
20partner_noncommercial/i18n_extra/en.po
-
21partner_noncommercial/i18n_extra/nl.po
-
100partner_noncommercial/views/menu.xml
-
23partner_noncommercial/views/res_partner.xml
@ -1,3 +1,2 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2016 Therp BV (http://therp.nl). |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
@ -0,0 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2015-2018 Therp BV (https://therp.nl). |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
{ |
|||
'name': 'Partner Non Commercial', |
|||
'version': '10.0.1.0.0', |
|||
'author': 'Therp BV,Camptocamp,Odoo Community Association (OCA)', |
|||
'website': 'https://github.com/oca/partner-contact', |
|||
'complexity': 'normal', |
|||
'category': 'Customer Relationship Management', |
|||
'license': 'AGPL-3', |
|||
'depends': [ |
|||
'sales_team', # Contains address book configuration |
|||
], |
|||
'data': [ |
|||
'views/menu.xml', |
|||
'views/res_partner.xml', |
|||
], |
|||
'installable': True, |
|||
} |
@ -1,20 +0,0 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# © 2015-2016 Therp BV (http://therp.nl). |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
{ |
|||
'name': 'Partner Non Commercial', |
|||
'version': '8.0.1.0.0', |
|||
"author": "Therp BV,Camptocamp,Odoo Community Association (OCA)", |
|||
"complexity": "normal", |
|||
"category": "Customer Relationship Management", |
|||
'license': 'AGPL-3', |
|||
'depends': [ |
|||
'base', |
|||
], |
|||
'data': [ |
|||
'data/ir_translation.xml', |
|||
'views/menu.xml', |
|||
'views/res_partner.xml', |
|||
], |
|||
'installable': True, |
|||
} |
@ -1,17 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<openerp> |
|||
<data> |
|||
<delete model="ir.translation" search="[('module', '=', 'base'), ('type', '=', 'model'), ('name', '=', 'ir.ui.menu,name'), ('res_id', '=', ref('base.menu_base_partner'))]" /> |
|||
<delete model="ir.translation" search="[('module', '=', 'base'), ('type', '=', 'model'), ('name', '=', 'ir.ui.menu,name'), ('res_id', '=', ref('base.menu_sales'))]" /> |
|||
<delete model="ir.translation" search="[('module', '=', 'base'), ('type', '=', 'model'), ('name', '=', 'ir.actions.act_window,name'), ('res_id', '=', ref('base.action_partner_customer_form'))]" /> |
|||
<delete model="ir.translation" search="[('module', '=', 'base'), ('type', '=', 'model'), ('name', '=', 'ir.actions.act_window,name'), ('res_id', '=', ref('base.action_partner_form'))]" /> |
|||
<delete model="ir.translation" search="[('module', '=', 'base'), ('type', '=', 'model'), ('name', '=', 'ir.ui.menu,name'), ('res_id', '=', ref('base.menu_partner_form'))]" /> |
|||
<delete model="ir.translation" search="[('module', '=', 'base'), ('type', '=', 'view'), ('name', '=', 'res.partner'), ('res_id', '=', 0)]" /> |
|||
<delete model="ir.translation" search="[('module', '=', 'base'), ('type', '=', 'view'), ('name', '=', 'res.partner'), ('res_id', '=', 0)]" /> |
|||
<delete model="ir.translation" search="[('module', '=', 'base'), ('type', '=', 'view'), ('name', '=', 'res.partner'), ('res_id', '=', 0)]" /> |
|||
<delete model="ir.translation" search="[('module', '=', 'base'), ('type', '=', 'view'), ('name', '=', 'res.partner'), ('res_id', '=', 0)]" /> |
|||
<delete model="ir.translation" search="[('module', '=', 'base'), ('type', '=', 'field'), ('name', '=', 'res.partner,user_id'), ('res_id', '=', 0)]" /> |
|||
<delete model="ir.translation" search="[('module', '=', 'base'), ('type', '=', 'field'), ('name', '=', 'res.partner,parent_id'), ('res_id', '=', 0)]" /> |
|||
</data> |
|||
</openerp> |
|||
|
@ -1,13 +1,28 @@ |
|||
<openerp> |
|||
<data> |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
|
|||
<record id="view_res_partner_filter" model="ir.ui.view"> |
|||
<field name="inherit_id" ref="base.view_res_partner_filter" /> |
|||
<field name="model">res.partner</field> |
|||
<field type="xml" name="arch"> |
|||
<filter name="type_person" position="before"> |
|||
<filter |
|||
string="All partners" |
|||
name="type_relation" |
|||
domain="['|',('is_company','=',1),('type','=','contact')]" |
|||
/> |
|||
</filter> |
|||
<!-- Default type_person also contains invoice and delivery |
|||
addresses for companies (and persons). --> |
|||
<filter name="type_person" position="attributes"> |
|||
<attribute |
|||
name="domain" |
|||
>[('is_company','=',0),('type','=','contact')]</attribute> |
|||
</filter> |
|||
<filter name="type_company" position="attributes"> |
|||
<attribute name="string">Organisations</attribute> |
|||
</filter> |
|||
</field> |
|||
</record> |
|||
</data> |
|||
</openerp> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue