Skip to content

Commit

Permalink
[MIG] partner_employee_quantity: Migration to 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chienandalu committed May 31, 2017
1 parent f6b6a2c commit 7acc67d
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 35 deletions.
16 changes: 6 additions & 10 deletions partner_employee_quantity/README.rst
Expand Up @@ -14,7 +14,7 @@ Configuration

To manage available ranges, you need to:

* Go to *Sales > Configuration > Address Book > Ranges by quantity of employees*.
* Go to *Sales > Configuration > Contacts > Ranges by quantity of employees*.

Usage
=====
Expand All @@ -27,7 +27,7 @@ To use this module, you need to:

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/134/8.0
:target: https://runbot.odoo-community.org/runbot/134/10.0

Bug Tracker
===========
Expand All @@ -44,17 +44,13 @@ partner_employee_quantity%0Aversion:%20
Credits
=======

Images
------

* `Antiun Ingeniería S.L. <http://www.antiun.com>`_: Icon.

Contributors
------------

* Antonio Espinosa <antonioea@antiun.com>
* Rafael Blasco <rafabn@antiun.com>
* Jairo Llopis <yajo.sk8@gmail.com>
* Antonio Espinosa <antonio.espinosa@tecnativa.com>
* Rafael Blasco <rafael.blasco@tecnativa.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>

Maintainer
----------
Expand Down
3 changes: 0 additions & 3 deletions partner_employee_quantity/__init__.py
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería S.L. - Antonio Espinosa
# © 2015 Antiun Ingeniería S.L. - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
@@ -1,19 +1,22 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería S.L. - Antonio Espinosa
# © 2015 Antiun Ingeniería S.L. - Jairo Llopis
# Copyright 2015 Antonio Espinosa <antonio.espinosa@tecnativa.com>
# Copyright 2015 Jairo Llopis <jairo.llopis@tecnativa.com>
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
'name': 'Employee quantity in partners',
'summary': 'Know how many employees a partner has',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'Customer Relationship Management',
"author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)",
"author": 'Antiun Ingeniería S.L., '
'Tecnativa, '
'Odoo Community Association (OCA)',
"license": "AGPL-3",
"application": False,
'website': 'http://www.antiun.com',
'website': 'http://www.tecnativa.com',
'depends': [
'base',
'sale',
],
'data': [
'security/ir.model.access.csv',
Expand Down
3 changes: 0 additions & 3 deletions partner_employee_quantity/models/__init__.py
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería S.L. - Antonio Espinosa
# © 2015 Antiun Ingeniería S.L. - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import res_partner
6 changes: 3 additions & 3 deletions partner_employee_quantity/models/res_partner.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería S.L. - Antonio Espinosa
# © 2015 Antiun Ingeniería S.L. - Jairo Llopis
# Copyright 2015 Antonio Espinosa <antonio.espinosa@tecnativa.com>
# Copyright 2015 Jairo Llopis <jairo.llopis@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp import models, fields
from odoo import models, fields


class ResPartner(models.Model):
Expand Down
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>

<record id="employees_range_action" model="ir.actions.act_window">
<field name="name">Ranges by quantity of employees</field>
Expand All @@ -21,7 +20,6 @@

<menuitem action="employees_range_action"
id="menu_employees_range"
parent="base.menu_config_address_book"/>
parent="sales_team.menu_config_address_book"/>

</data>
</openerp>
</odoo>
8 changes: 3 additions & 5 deletions partner_employee_quantity/views/res_partner_view.xml
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>

<record model="ir.ui.view" id="view_partner_form_employees">
<field name="name">Partner form with employees</field>
Expand All @@ -23,13 +22,12 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="arch" type="xml">
<filter string="Salesperson" position="after">
<filter name="salesperson" position="after">
<filter string="Employee Quantity"
domain="[('is_company','=', True)]"
context="{'group_by': 'employee_quantity_range_id'}"/>
</filter>
</field>
</record>

</data>
</openerp>
</odoo>

0 comments on commit 7acc67d

Please sign in to comment.