Browse Source

[MIG] partner_employee_quantity v11 to v12

pull/693/head
Nikul-Chaudhary 6 years ago
parent
commit
ceb895bc3b
  1. 2
      partner_employee_quantity/README.rst
  2. 2
      partner_employee_quantity/__manifest__.py
  3. 5
      partner_employee_quantity/models/res_partner.py
  4. 2
      partner_employee_quantity/readme/CONTRIBUTORS.rst
  5. 3
      partner_employee_quantity/views/res_partner_view.xml

2
partner_employee_quantity/README.rst

@ -86,6 +86,8 @@ Contributors
* David Vidal
* Pedro M. Baeza
* Nikul Chaudhary <nikulchaudhary2112@gmail.com>
Maintainers
~~~~~~~~~~~

2
partner_employee_quantity/__manifest__.py

@ -7,7 +7,7 @@
{
'name': 'Employee quantity in partners',
'summary': 'Know how many employees a partner has',
'version': '11.0.1.0.0',
'version': '12.0.1.0.0',
'category': 'Customer Relationship Management',
"author": 'Tecnativa, '
'Odoo Community Association (OCA)',

5
partner_employee_quantity/models/res_partner.py

@ -21,4 +21,7 @@ class ResPartnerEmployeeQuantityRange(models.Model):
_name = "res.partner.employee_quantity_range"
_description = "Partner employee quantity range"
name = fields.Char(required=True, translate=True)
name = fields.Char(
required=True,
translate=True
)

2
partner_employee_quantity/readme/CONTRIBUTORS.rst

@ -5,3 +5,5 @@
* Jairo Llopis
* David Vidal
* Pedro M. Baeza
* Nikul Chaudhary <nikulchaudhary2112@gmail.com>

3
partner_employee_quantity/views/res_partner_view.xml

@ -25,7 +25,8 @@
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="arch" type="xml">
<filter name="salesperson" position="after">
<filter string="Employee Quantity"
<filter name="employee_quantity"
string="Employee Quantity"
domain="[('is_company','=', True)]"
context="{'group_by': 'employee_quantity_range_id'}"/>
</filter>

Loading…
Cancel
Save