Browse Source

[MIG] partner_employee_quantity: Migration to 10.0

pull/426/head
David Vidal 8 years ago
parent
commit
8e4cb8ef2a
  1. 16
      partner_employee_quantity/README.rst
  2. 3
      partner_employee_quantity/__init__.py
  3. 15
      partner_employee_quantity/__manifest__.py
  4. 3
      partner_employee_quantity/models/__init__.py
  5. 6
      partner_employee_quantity/models/res_partner.py
  6. 8
      partner_employee_quantity/views/res_partner_employee_quantity_range_view.xml
  7. 8
      partner_employee_quantity/views/res_partner_view.xml

16
partner_employee_quantity/README.rst

@ -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
=====
@ -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
===========
@ -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
----------

3
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

15
partner_employee_quantity/__openerp__.py → partner_employee_quantity/__manifest__.py

@ -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',

3
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
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):

8
partner_employee_quantity/views/res_partner_employee_quantity_range_view.xml

@ -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>
@ -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
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>
@ -23,7 +22,7 @@
<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'}"/>
@ -31,5 +30,4 @@
</field>
</record>
</data>
</openerp>
</odoo>
Loading…
Cancel
Save