Skip to content

Commit

Permalink
[IMP] partner_group: change filter name
Browse files Browse the repository at this point in the history
  • Loading branch information
oihane committed Nov 28, 2017
1 parent 6c737dc commit d99fac0
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 84 deletions.
20 changes: 2 additions & 18 deletions partner_group/__init__.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@

# -*- encoding: utf-8 -*-
##############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
##############################################################################
# -*- coding: utf-8 -*-
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
47 changes: 19 additions & 28 deletions partner_group/__openerp__.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@

# -*- encoding: utf-8 -*-
##############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
##############################################################################
# -*- coding: utf-8 -*-
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Partner group",
"version": "1.0",
"author": "OdooMRP team,"
"AvanzOSC,"
"version": "8.0.1.0.0",
"license": "AGPL-3",
"author": "OdooMRP team, "
"AvanzOSC, "
"Serv. Tecnol. Avanzados - Pedro M. Baeza",
'website': "http://www.odoomrp.com",
'contributors': ["Daniel Campos <danielcampos@avanzosc.es>",
"Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>",
"Ana Juaristi <anajuaristi@avanzosc.es>"],
"depends": ['base'],
"website": "http://www.odoomrp.com",
"contributors": [
"Daniel Campos <danielcampos@avanzosc.es>",
"Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>",
"Ana Juaristi <anajuaristi@avanzosc.es>",
],
"depends": [
"base",
],
"category": "Generic Modules",
"data": ['views/res_partner_view.xml'],
"installable": True
"data": [
"views/res_partner_view.xml",
],
"installable": True,
}
20 changes: 2 additions & 18 deletions partner_group/models/__init__.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@

# -*- encoding: utf-8 -*-
##############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
##############################################################################
# -*- coding: utf-8 -*-
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import partner
20 changes: 2 additions & 18 deletions partner_group/models/partner.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@

# -*- encoding: utf-8 -*-
##############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
##############################################################################
# -*- coding: utf-8 -*-
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from openerp import models, fields

Expand Down
6 changes: 4 additions & 2 deletions partner_group/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
<field name="arch" type="xml">
<field name="parent_id" position="after">
<field name="partner_group"/>
<filter string="Group" name="partner_group" domain="[('is_group','=',1)]"/>
<filter string="Group" name="partner_is_group"
domain="[('is_group','=',True)]"/>
</field>
<xpath expr="//filter[@string='Country']" position="after">
<filter string="Group" context="{'group_by': 'partner_group'}"/>
<filter string="Group" name="group_by_partner_group"
context="{'group_by': 'partner_group'}"/>
</xpath>
</field>
</record>
Expand Down

0 comments on commit d99fac0

Please sign in to comment.