Browse Source

Rename to partner_employee_quantity.

pull/225/head
Jairo Llopis 9 years ago
parent
commit
136d245910
  1. 90
      partner_employee_amount/i18n/es.po
  2. 5
      partner_employee_amount/security/ir.model.access.csv
  3. 16
      partner_employee_quantity/README.rst
  4. 0
      partner_employee_quantity/__init__.py
  5. 4
      partner_employee_quantity/__openerp__.py
  6. 91
      partner_employee_quantity/i18n/es.po
  7. 0
      partner_employee_quantity/models/__init__.py
  8. 16
      partner_employee_quantity/models/res_partner.py
  9. 5
      partner_employee_quantity/security/ir.model.access.csv
  10. 0
      partner_employee_quantity/static/description/icon.png
  11. 10
      partner_employee_quantity/views/res_partner_employee_quantity_range_view.xml
  12. 12
      partner_employee_quantity/views/res_partner_view.xml

90
partner_employee_amount/i18n/es.po

@ -1,90 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_employees
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-05-27 08:57+0000\n"
"PO-Revision-Date: 2015-05-27 08:57+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: crm_employees
#: field:crm.employees_range,create_uid:0
msgid "Created by"
msgstr "Creado por"
#. module: crm_employees
#: field:crm.employees_range,create_date:0
msgid "Created on"
msgstr "Creado en"
#. module: crm_employees
#: view:res.partner:crm_employees.view_res_partner_filter_employees
msgid "Emplooyees"
msgstr "Empleados"
#. module: crm_employees
#: field:crm.lead,employees_number:0
#: field:res.partner,employees_number:0
msgid "Employees number"
msgstr "Número de empleados"
#. module: crm_employees
#: view:crm.lead:crm_employees.crm_case_form_view_leads_employees
#: view:crm.lead:crm_employees.crm_case_form_view_oppor_employees
#: field:crm.lead,employees_range:0
#: model:ir.model,name:crm_employees.model_crm_employees_range
#: view:res.partner:crm_employees.view_partner_form_employees
#: field:res.partner,employees_range:0
msgid "Employees range"
msgstr "Rango de empleados"
#. module: crm_employees
#: view:crm.employees_range:crm_employees.crm_employees_range_tree_view
#: model:ir.actions.act_window,name:crm_employees.crm_employees_range_action
#: model:ir.ui.menu,name:crm_employees.menu_crm_employees_range
msgid "Employees ranges"
msgstr "Rangos de empleados"
#. module: crm_employees
#: field:crm.employees_range,id:0
msgid "ID"
msgstr "ID"
#. module: crm_employees
#: field:crm.employees_range,write_uid:0
msgid "Last Updated by"
msgstr "Última actualización por"
#. module: crm_employees
#: field:crm.employees_range,write_date:0
msgid "Last Updated on"
msgstr "Última actualización en"
#. module: crm_employees
#: model:ir.model,name:crm_employees.model_crm_lead
msgid "Lead/Opportunity"
msgstr "Iniciativa/Oportunidad"
#. module: crm_employees
#: field:crm.employees_range,name:0
msgid "Name"
msgstr "Nombre"
#. module: crm_employees
#: model:ir.model,name:crm_employees.model_res_partner
msgid "Partner"
msgstr "Empresa"
#. module: crm_employees
#: view:res.partner:crm_employees.view_res_partner_filter_employees
msgid "Salesperson"
msgstr "Comercial"

5
partner_employee_amount/security/ir.model.access.csv

@ -1,5 +0,0 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_res_partner_employee_amount_range_public","res_partner_employee_amount_range group_public","model_res_partner_employee_amount_range","base.group_public",1,0,0,0
"access_res_partner_employee_amount_range_portal","res_partner_employee_amount_range group_portal","model_res_partner_employee_amount_range","base.group_portal",1,0,0,0
"access_res_partner_employee_amount_range_group_partner_manager","res_partner_employee_amount_range group_partner_manager","model_res_partner_employee_amount_range","base.group_partner_manager",1,1,1,1
"access_res_partner_employee_amount_range_group_user","res_partner_employee_amount_range group_user","model_res_partner_employee_amount_range","base.group_user",1,0,0,0

16
partner_employee_amount/README.rst → partner_employee_quantity/README.rst

@ -2,19 +2,19 @@
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
===========================
Employee amount in partners
===========================
=============================
Employee quantity in partners
=============================
This module allows to set employee amount for partners, and categorize them by
ranges.
This module allows to set employee quantity for partners, and categorize them
by ranges.
Configuration
=============
To manage available ranges, you need to:
* Go to *Sales > Configuration > Address Book > Ranges by amount of employees*.
* Go to *Sales > Configuration > Address Book > Ranges by quantity of employees*.
Usage
=====
@ -23,7 +23,7 @@ To use this module, you need to:
* Go to any partner's form.
* Enable *Is company?*.
* Go to *Sales & Purchases > Employee amount*.
* Go to *Sales & Purchases > Employee quantity*.
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
@ -38,7 +38,7 @@ check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed `feedback
<https://github.com/OCA/
partner-contact/issues/new?body=module:%20
partner_employee_amount%0Aversion:%20
partner_employee_quantity%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits

0
partner_employee_amount/__init__.py → partner_employee_quantity/__init__.py

4
partner_employee_amount/__openerp__.py → partner_employee_quantity/__openerp__.py

@ -4,7 +4,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Employee amount in partners',
'name': 'Employee quantity in partners',
'summary': 'Know how many employees a partner has',
'version': '8.0.1.0.0',
'category': 'Customer Relationship Management',
@ -15,7 +15,7 @@
],
'data': [
'security/ir.model.access.csv',
'views/res_partner_employee_amount_range_view.xml',
'views/res_partner_employee_quantity_range_view.xml',
'views/res_partner_view.xml',
],
"installable": True,

91
partner_employee_quantity/i18n/es.po

@ -0,0 +1,91 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * crm_employees
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-12-21 16:02+0100\n"
"PO-Revision-Date: 2015-12-21 16:03+0100\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 1.8.5\n"
#. module: partner_employee_quantity
#: field:res.partner.employee_quantity_range,create_uid:0
msgid "Created by"
msgstr "Creado por"
#. module: partner_employee_quantity
#: field:res.partner.employee_quantity_range,create_date:0
msgid "Created on"
msgstr "Creado en"
#. module: partner_employee_quantity
#: view:res.partner:partner_employee_quantity.view_partner_form_employees
#: field:res.partner,employee_quantity:0
msgid "Employee quantity"
msgstr "Cantidad de empleados"
#. module: partner_employee_quantity
#: field:res.partner,employee_quantity_range_id:0
msgid "Employee quantity range"
msgstr "Rango de la cantidad de empleados"
#. module: partner_employee_quantity
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees
msgid "Employees"
msgstr "Empleados"
#. module: partner_employee_quantity
#: field:res.partner.employee_quantity_range,id:0
msgid "ID"
msgstr "ID"
#. module: partner_employee_quantity
#: field:res.partner.employee_quantity_range,write_uid:0
msgid "Last Updated by"
msgstr "Última actualización por"
#. module: partner_employee_quantity
#: field:res.partner.employee_quantity_range,write_date:0
msgid "Last Updated on"
msgstr "Última actualización en"
#. module: partner_employee_quantity
#: field:res.partner.employee_quantity_range,name:0
msgid "Name"
msgstr "Nombre"
#. module: partner_employee_quantity
#: model:ir.model,name:partner_employee_quantity.model_res_partner
msgid "Partner"
msgstr "Empresa"
#. module: partner_employee_quantity
#: model:ir.model,name:partner_employee_quantity.model_res_partner_employee_quantity_range
msgid "Partner employee quantity range"
msgstr "Rango de la cantidad de empleados de la empresa"
#. module: partner_employee_quantity
#: help:res.partner,employee_quantity_range_id:0
msgid "Range of this partner depending on the employee quantity."
msgstr "Rango de esta empresa dependiendo de su cantidad de empleados."
#. module: partner_employee_quantity
#: model:ir.actions.act_window,name:partner_employee_quantity.employees_range_action
#: model:ir.ui.menu,name:partner_employee_quantity.menu_employees_range
#: view:res.partner.employee_quantity_range:partner_employee_quantity.employees_range_tree_view
msgid "Ranges by quantity of employees"
msgstr "Rangos por cantidad de empleados"
#. module: partner_employee_quantity
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees
msgid "Salesperson"
msgstr "Comercial"

0
partner_employee_amount/models/__init__.py → partner_employee_quantity/models/__init__.py

16
partner_employee_amount/models/res_partner.py → partner_employee_quantity/models/res_partner.py

@ -9,17 +9,17 @@ from openerp import models, fields
class ResPartner(models.Model):
_inherit = 'res.partner'
employee_amount = fields.Integer(
employee_quantity = fields.Integer(
oldname="employees_number")
employee_amount_range_id = fields.Many2one(
"res.partner.employee_amount_range",
"Employee amount range",
help="Range of this partner depending on the employee amount.",
employee_quantity_range_id = fields.Many2one(
"res.partner.employee_quantity_range",
"Employee quantity range",
help="Range of this partner depending on the employee quantity.",
oldname="employees_range")
class ResPartnerEmployeeAmountRange(models.Model):
_name = "res.partner.employee_amount_range"
_description = "Partner employee amount range"
class ResPartnerEmployeeQuantityRange(models.Model):
_name = "res.partner.employee_quantity_range"
_description = "Partner employee quantity range"
name = fields.Char(required=True, translate=True)

5
partner_employee_quantity/security/ir.model.access.csv

@ -0,0 +1,5 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_res_partner_employee_quantity_range_public","res_partner_employee_quantity_range group_public","model_res_partner_employee_quantity_range","base.group_public",1,0,0,0
"access_res_partner_employee_quantity_range_portal","res_partner_employee_quantity_range group_portal","model_res_partner_employee_quantity_range","base.group_portal",1,0,0,0
"access_res_partner_employee_quantity_range_group_partner_manager","res_partner_employee_quantity_range group_partner_manager","model_res_partner_employee_quantity_range","base.group_partner_manager",1,1,1,1
"access_res_partner_employee_quantity_range_group_user","res_partner_employee_quantity_range group_user","model_res_partner_employee_quantity_range","base.group_user",1,0,0,0

0
partner_employee_amount/static/description/icon.png → partner_employee_quantity/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 18 KiB

After

Width: 128  |  Height: 128  |  Size: 18 KiB

10
partner_employee_amount/views/res_partner_employee_amount_range_view.xml → partner_employee_quantity/views/res_partner_employee_quantity_range_view.xml

@ -3,17 +3,17 @@
<data>
<record id="employees_range_action" model="ir.actions.act_window">
<field name="name">Ranges by amount of employees</field>
<field name="res_model">res.partner.employee_amount_range</field>
<field name="name">Ranges by quantity of employees</field>
<field name="res_model">res.partner.employee_quantity_range</field>
<field name="view_type">form</field>
<field name="view_mode">tree</field>
</record>
<record id="employees_range_tree_view" model="ir.ui.view">
<field name="name">Amount of employees ranges tree</field>
<field name="model">res.partner.employee_amount_range</field>
<field name="name">Quantity of employees ranges tree</field>
<field name="model">res.partner.employee_quantity_range</field>
<field name="arch" type="xml">
<tree string="Ranges by amount of employees" editable="top">
<tree string="Ranges by quantity of employees" editable="top">
<field name="name"/>
</tree>
</field>

12
partner_employee_amount/views/res_partner_view.xml → partner_employee_quantity/views/res_partner_view.xml

@ -8,11 +8,11 @@
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='sales_purchases']/group">
<group name="employee_amount"
string="Employee amount"
<group name="employee_quantity"
string="Employee quantity"
attrs="{'invisible': [('is_company', '=', False)]}">
<field name="employee_amount"/>
<field name="employee_amount_range_id"/>
<field name="employee_quantity"/>
<field name="employee_quantity_range_id"/>
</group>
</xpath>
</field>
@ -24,9 +24,9 @@
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="arch" type="xml">
<filter string="Salesperson" position="after">
<filter string="Employees"
<filter string="Employee Quantity"
domain="[('is_company','=', True)]"
context="{'group_by': 'employee_amount_range_id'}"/>
context="{'group_by': 'employee_quantity_range_id'}"/>
</filter>
</field>
</record>
Loading…
Cancel
Save