diff --git a/partner_capital/README.rst b/partner_capital/README.rst new file mode 100644 index 000000000..d5dc5c71a --- /dev/null +++ b/partner_capital/README.rst @@ -0,0 +1,82 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +================ +Partners Capital +================ + +This module extends the functionality of partners to support setting the +country of origin of capital, registered capital amount and turnover. + +By capital country we mean country of origin of the capital of the company. + +By registered capital amount we mean the amount of money registered in the +corresponding commercial registry, A.K.A. social capital or just capital of a +company. + +By turnover we can define a range for a concrete amount. + +Usage +===== + +To use this module, you need to: + +* Go to any partner's form. +* You will find the new fields in *Sales & Purchases > Capital*. + +To manage turnover ranges, you need to: + +* Go to *Sales > Configuration > Address Book > Turnover ranges*. + +.. 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 + +Known issues / Roadmap +====================== + +* Add automatic rules to calculate turnover range and company size. +* Allow customization of company sizes. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +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 +`_. + +Credits +======= + +Images +------ + +* `Antiun Ingeniería S.L. `_: Icon. + +Contributors +------------ + +* Antonio Espinosa +* Rafael Blasco +* Jairo Llopis + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/partner_capital/__init__.py b/partner_capital/__init__.py new file mode 100644 index 000000000..8e6d7e45a --- /dev/null +++ b/partner_capital/__init__.py @@ -0,0 +1,6 @@ +# -*- 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 diff --git a/partner_capital/__openerp__.py b/partner_capital/__openerp__.py new file mode 100644 index 000000000..76ab06a28 --- /dev/null +++ b/partner_capital/__openerp__.py @@ -0,0 +1,21 @@ +# -*- 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). + +{ + 'name': 'Partners Capital', + 'version': '8.0.1.0.0', + 'category': 'Customer Relationship Management', + 'author': 'Antiun Ingeniería S.L.', + 'website': 'http://www.antiun.com', + 'depends': [ + 'base', + ], + 'data': [ + 'views/res_partner_turnover_range_view.xml', + 'views/res_partner_view.xml', + 'security/ir.model.access.csv', + ], + "installable": True, +} diff --git a/partner_capital/i18n/de.po b/partner_capital/i18n/de.po new file mode 100644 index 000000000..b0dbf349f --- /dev/null +++ b/partner_capital/i18n/de.po @@ -0,0 +1,149 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_capital +# +# Translators: +# Rudolf Schnapka , 2016-2017 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-21 16:57+0000\n" +"PO-Revision-Date: 2017-02-24 22:39+0000\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Big" +msgstr "Gross" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_partner_form_capital +msgid "Capital" +msgstr "Kapital" + +#. module: partner_capital +#: field:res.partner,capital_amount:0 +msgid "Capital amount" +msgstr "Kapitalbetrag" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +#: field:res.partner,capital_country_id:0 +msgid "Capital country" +msgstr "Land der Hauptstadt" + +#. module: partner_capital +#: field:res.partner,capital_currency_id:0 +msgid "Capital currency" +msgstr "Währung in Hauptstadt" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +#: field:res.partner,company_size:0 +msgid "Company size" +msgstr "Unternehmensgrösse" + +#. module: partner_capital +#: help:res.partner,capital_country_id:0 +msgid "Country of origin of this company's capital." +msgstr "Herkunftsland des Kapitals dieses Unternehmen." + +#. module: partner_capital +#: field:res.partner.turnover_range,create_uid:0 +msgid "Created by" +msgstr "Angelegt durch" + +#. module: partner_capital +#: field:res.partner.turnover_range,create_date:0 +msgid "Created on" +msgstr "Angelegt am" + +#. module: partner_capital +#: field:res.partner.turnover_range,display_name:0 +msgid "Display Name" +msgstr "Anzeigebezeichnung" + +#. module: partner_capital +#: field:res.partner.turnover_range,id:0 +msgid "ID" +msgstr "ID" + +#. module: partner_capital +#: field:res.partner.turnover_range,__last_update:0 +msgid "Last Modified on" +msgstr "Zuletzt verändert am" + +#. module: partner_capital +#: field:res.partner.turnover_range,write_uid:0 +msgid "Last Updated by" +msgstr "Zuletzt aktualisiert durch" + +#. module: partner_capital +#: field:res.partner.turnover_range,write_date:0 +msgid "Last Updated on" +msgstr "Zuletzt aktualisiert am" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Medium" +msgstr "Mittel" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Micro" +msgstr "Kleinst" + +#. module: partner_capital +#: field:res.partner.turnover_range,name:0 +msgid "Name" +msgstr "Bezeichnung" + +#. module: partner_capital +#: model:ir.model,name:partner_capital.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: partner_capital +#: help:res.partner,capital_amount:0 +msgid "Publicly registered capital amount." +msgstr "Veröffentlichter Kapitalbetrag" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +msgid "Salesperson" +msgstr "Verkäufer" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Small" +msgstr "Klein" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +msgid "Turnover" +msgstr "Umsatz" + +#. module: partner_capital +#: field:res.partner,turnover_amount:0 +msgid "Turnover amount" +msgstr "Umsatzbetrag" + +#. module: partner_capital +#: model:ir.model,name:partner_capital.model_res_partner_turnover_range +#: field:res.partner,turnover_range_id:0 +msgid "Turnover range" +msgstr "Umsatzspanne" + +#. module: partner_capital +#: model:ir.actions.act_window,name:partner_capital.res_partner_turnover_range_action +#: model:ir.ui.menu,name:partner_capital.menu_res_partner_turnover_range +#: view:res.partner.turnover_range:partner_capital.res_partner_turnover_range_tree_view +msgid "Turnover ranges" +msgstr "Umsatzspannen" diff --git a/partner_capital/i18n/es.po b/partner_capital/i18n/es.po new file mode 100644 index 000000000..16b04184f --- /dev/null +++ b/partner_capital/i18n/es.po @@ -0,0 +1,149 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_capital +# +# Translators: +# Oihane Crucelaegui , 2016 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-07-25 11:58+0000\n" +"PO-Revision-Date: 2016-07-14 09:05+0000\n" +"Last-Translator: Oihane Crucelaegui \n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Big" +msgstr "Grande" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_partner_form_capital +msgid "Capital" +msgstr "Capital" + +#. module: partner_capital +#: field:res.partner,capital_amount:0 +msgid "Capital amount" +msgstr "Capital amount" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +#: field:res.partner,capital_country_id:0 +msgid "Capital country" +msgstr "Nacionalidad del capital" + +#. module: partner_capital +#: field:res.partner,capital_currency_id:0 +msgid "Capital currency" +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +#: field:res.partner,company_size:0 +msgid "Company size" +msgstr "Tamaño de la companía" + +#. module: partner_capital +#: help:res.partner,capital_country_id:0 +msgid "Country of origin of this company's capital." +msgstr "País de origen del capital de esta empresa." + +#. module: partner_capital +#: field:res.partner.turnover_range,create_uid:0 +msgid "Created by" +msgstr "Creado por" + +#. module: partner_capital +#: field:res.partner.turnover_range,create_date:0 +msgid "Created on" +msgstr "Creado en" + +#. module: partner_capital +#: field:res.partner.turnover_range,display_name:0 +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: partner_capital +#: field:res.partner.turnover_range,id:0 +msgid "ID" +msgstr "ID" + +#. module: partner_capital +#: field:res.partner.turnover_range,__last_update:0 +msgid "Last Modified on" +msgstr "Última modificación el" + +#. module: partner_capital +#: field:res.partner.turnover_range,write_uid:0 +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: partner_capital +#: field:res.partner.turnover_range,write_date:0 +msgid "Last Updated on" +msgstr "Última actualización en" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Medium" +msgstr "Medio" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Micro" +msgstr "Micro" + +#. module: partner_capital +#: field:res.partner.turnover_range,name:0 +msgid "Name" +msgstr "Nombre" + +#. module: partner_capital +#: model:ir.model,name:partner_capital.model_res_partner +msgid "Partner" +msgstr "Empresa" + +#. module: partner_capital +#: help:res.partner,capital_amount:0 +msgid "Publicly registered capital amount." +msgstr "Importe del capital públicamente registrado." + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +msgid "Salesperson" +msgstr "Comercial" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Small" +msgstr "Pequeño" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +msgid "Turnover" +msgstr "Facturación" + +#. module: partner_capital +#: field:res.partner,turnover_amount:0 +msgid "Turnover amount" +msgstr "Cantidad de facturación" + +#. module: partner_capital +#: model:ir.model,name:partner_capital.model_res_partner_turnover_range +#: field:res.partner,turnover_range_id:0 +msgid "Turnover range" +msgstr "Rango de facturación" + +#. module: partner_capital +#: model:ir.actions.act_window,name:partner_capital.res_partner_turnover_range_action +#: model:ir.ui.menu,name:partner_capital.menu_res_partner_turnover_range +#: view:res.partner.turnover_range:partner_capital.res_partner_turnover_range_tree_view +msgid "Turnover ranges" +msgstr "Rangos de facturación" diff --git a/partner_capital/i18n/eu.po b/partner_capital/i18n/eu.po new file mode 100644 index 000000000..4a1fb4eae --- /dev/null +++ b/partner_capital/i18n/eu.po @@ -0,0 +1,149 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_capital +# +# Translators: +# Esther Martín Menéndez , 2017 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-21 16:57+0000\n" +"PO-Revision-Date: 2017-02-23 15:56+0000\n" +"Last-Translator: Esther Martín Menéndez \n" +"Language-Team: Basque (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/eu/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: eu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Big" +msgstr "Handia" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_partner_form_capital +msgid "Capital" +msgstr "" + +#. module: partner_capital +#: field:res.partner,capital_amount:0 +msgid "Capital amount" +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +#: field:res.partner,capital_country_id:0 +msgid "Capital country" +msgstr "" + +#. module: partner_capital +#: field:res.partner,capital_currency_id:0 +msgid "Capital currency" +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +#: field:res.partner,company_size:0 +msgid "Company size" +msgstr "" + +#. module: partner_capital +#: help:res.partner,capital_country_id:0 +msgid "Country of origin of this company's capital." +msgstr "" + +#. module: partner_capital +#: field:res.partner.turnover_range,create_uid:0 +msgid "Created by" +msgstr "" + +#. module: partner_capital +#: field:res.partner.turnover_range,create_date:0 +msgid "Created on" +msgstr "" + +#. module: partner_capital +#: field:res.partner.turnover_range,display_name:0 +msgid "Display Name" +msgstr "Izena erakutsi" + +#. module: partner_capital +#: field:res.partner.turnover_range,id:0 +msgid "ID" +msgstr "" + +#. module: partner_capital +#: field:res.partner.turnover_range,__last_update:0 +msgid "Last Modified on" +msgstr "" + +#. module: partner_capital +#: field:res.partner.turnover_range,write_uid:0 +msgid "Last Updated by" +msgstr "" + +#. module: partner_capital +#: field:res.partner.turnover_range,write_date:0 +msgid "Last Updated on" +msgstr "" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Medium" +msgstr "" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Micro" +msgstr "" + +#. module: partner_capital +#: field:res.partner.turnover_range,name:0 +msgid "Name" +msgstr "Izena" + +#. module: partner_capital +#: model:ir.model,name:partner_capital.model_res_partner +msgid "Partner" +msgstr "Kidea" + +#. module: partner_capital +#: help:res.partner,capital_amount:0 +msgid "Publicly registered capital amount." +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +msgid "Salesperson" +msgstr "" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Small" +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +msgid "Turnover" +msgstr "" + +#. module: partner_capital +#: field:res.partner,turnover_amount:0 +msgid "Turnover amount" +msgstr "" + +#. module: partner_capital +#: model:ir.model,name:partner_capital.model_res_partner_turnover_range +#: field:res.partner,turnover_range_id:0 +msgid "Turnover range" +msgstr "" + +#. module: partner_capital +#: model:ir.actions.act_window,name:partner_capital.res_partner_turnover_range_action +#: model:ir.ui.menu,name:partner_capital.menu_res_partner_turnover_range +#: view:res.partner.turnover_range:partner_capital.res_partner_turnover_range_tree_view +msgid "Turnover ranges" +msgstr "" diff --git a/partner_capital/i18n/fi.po b/partner_capital/i18n/fi.po new file mode 100644 index 000000000..468191793 --- /dev/null +++ b/partner_capital/i18n/fi.po @@ -0,0 +1,138 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_capital +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-19 01:46+0000\n" +"PO-Revision-Date: 2015-12-22 17:31+0000\n" +"Last-Translator: <>\n" +"Language-Team: Finnish (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Big" +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_partner_form_capital +msgid "Capital" +msgstr "" + +#. module: partner_capital +#: field:res.partner,capital_amount:0 +msgid "Capital amount" +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +#: field:res.partner,capital_country_id:0 +msgid "Capital country" +msgstr "" + +#. module: partner_capital +#: field:res.partner,capital_currency_id:0 +msgid "Capital currency" +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +#: field:res.partner,company_size:0 +msgid "Company size" +msgstr "" + +#. module: partner_capital +#: help:res.partner,capital_country_id:0 +msgid "Country of origin of this company's capital." +msgstr "" + +#. module: partner_capital +#: field:res.partner.turnover_range,create_uid:0 +msgid "Created by" +msgstr "Luonut" + +#. module: partner_capital +#: field:res.partner.turnover_range,create_date:0 +msgid "Created on" +msgstr "Luotu" + +#. module: partner_capital +#: field:res.partner.turnover_range,id:0 +msgid "ID" +msgstr "ID" + +#. module: partner_capital +#: field:res.partner.turnover_range,write_uid:0 +msgid "Last Updated by" +msgstr "Viimeksi päivitetty" + +#. module: partner_capital +#: field:res.partner.turnover_range,write_date:0 +msgid "Last Updated on" +msgstr "Viimeksi päivittänyt" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Medium" +msgstr "" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Micro" +msgstr "" + +#. module: partner_capital +#: field:res.partner.turnover_range,name:0 +msgid "Name" +msgstr "Nimi" + +#. module: partner_capital +#: model:ir.model,name:partner_capital.model_res_partner +msgid "Partner" +msgstr "Kumppani" + +#. module: partner_capital +#: help:res.partner,capital_amount:0 +msgid "Publicly registered capital amount." +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +msgid "Salesperson" +msgstr "Myyjä" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Small" +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +msgid "Turnover" +msgstr "" + +#. module: partner_capital +#: field:res.partner,turnover_amount:0 +msgid "Turnover amount" +msgstr "" + +#. module: partner_capital +#: model:ir.model,name:partner_capital.model_res_partner_turnover_range +#: field:res.partner,turnover_range_id:0 +msgid "Turnover range" +msgstr "" + +#. module: partner_capital +#: model:ir.actions.act_window,name:partner_capital.res_partner_turnover_range_action +#: model:ir.ui.menu,name:partner_capital.menu_res_partner_turnover_range +#: view:res.partner.turnover_range:partner_capital.res_partner_turnover_range_tree_view +msgid "Turnover ranges" +msgstr "" diff --git a/partner_capital/i18n/it.po b/partner_capital/i18n/it.po new file mode 100644 index 000000000..7d42bbdbc --- /dev/null +++ b/partner_capital/i18n/it.po @@ -0,0 +1,139 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_capital +# +# Translators: +# Paolo Valier, 2016 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-03-13 00:57+0000\n" +"PO-Revision-Date: 2016-03-13 17:22+0000\n" +"Last-Translator: Paolo Valier\n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Big" +msgstr "Grande" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_partner_form_capital +msgid "Capital" +msgstr "" + +#. module: partner_capital +#: field:res.partner,capital_amount:0 +msgid "Capital amount" +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +#: field:res.partner,capital_country_id:0 +msgid "Capital country" +msgstr "" + +#. module: partner_capital +#: field:res.partner,capital_currency_id:0 +msgid "Capital currency" +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +#: field:res.partner,company_size:0 +msgid "Company size" +msgstr "" + +#. module: partner_capital +#: help:res.partner,capital_country_id:0 +msgid "Country of origin of this company's capital." +msgstr "" + +#. module: partner_capital +#: field:res.partner.turnover_range,create_uid:0 +msgid "Created by" +msgstr "Creato da" + +#. module: partner_capital +#: field:res.partner.turnover_range,create_date:0 +msgid "Created on" +msgstr "reato il" + +#. module: partner_capital +#: field:res.partner.turnover_range,id:0 +msgid "ID" +msgstr "ID" + +#. module: partner_capital +#: field:res.partner.turnover_range,write_uid:0 +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: partner_capital +#: field:res.partner.turnover_range,write_date:0 +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Medium" +msgstr "" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Micro" +msgstr "" + +#. module: partner_capital +#: field:res.partner.turnover_range,name:0 +msgid "Name" +msgstr "Nome" + +#. module: partner_capital +#: model:ir.model,name:partner_capital.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: partner_capital +#: help:res.partner,capital_amount:0 +msgid "Publicly registered capital amount." +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +msgid "Salesperson" +msgstr "" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Small" +msgstr "" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +msgid "Turnover" +msgstr "" + +#. module: partner_capital +#: field:res.partner,turnover_amount:0 +msgid "Turnover amount" +msgstr "" + +#. module: partner_capital +#: model:ir.model,name:partner_capital.model_res_partner_turnover_range +#: field:res.partner,turnover_range_id:0 +msgid "Turnover range" +msgstr "" + +#. module: partner_capital +#: model:ir.actions.act_window,name:partner_capital.res_partner_turnover_range_action +#: model:ir.ui.menu,name:partner_capital.menu_res_partner_turnover_range +#: view:res.partner.turnover_range:partner_capital.res_partner_turnover_range_tree_view +msgid "Turnover ranges" +msgstr "" diff --git a/partner_capital/i18n/sl.po b/partner_capital/i18n/sl.po new file mode 100644 index 000000000..6916d3149 --- /dev/null +++ b/partner_capital/i18n/sl.po @@ -0,0 +1,149 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_capital +# +# Translators: +# Matjaž Mozetič , 2015-2016 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-05-07 07:18+0000\n" +"PO-Revision-Date: 2016-05-07 07:15+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Big" +msgstr "Velika" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_partner_form_capital +msgid "Capital" +msgstr "Kapital" + +#. module: partner_capital +#: field:res.partner,capital_amount:0 +msgid "Capital amount" +msgstr "Znesek kapitala" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +#: field:res.partner,capital_country_id:0 +msgid "Capital country" +msgstr "Država kapitala" + +#. module: partner_capital +#: field:res.partner,capital_currency_id:0 +msgid "Capital currency" +msgstr "Valuta kapitala" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +#: field:res.partner,company_size:0 +msgid "Company size" +msgstr "Velikost družbe" + +#. module: partner_capital +#: help:res.partner,capital_country_id:0 +msgid "Country of origin of this company's capital." +msgstr "Država izvora kapitala družbe" + +#. module: partner_capital +#: field:res.partner.turnover_range,create_uid:0 +msgid "Created by" +msgstr "Ustvaril" + +#. module: partner_capital +#: field:res.partner.turnover_range,create_date:0 +msgid "Created on" +msgstr "Ustvarjeno" + +#. module: partner_capital +#: field:res.partner.turnover_range,display_name:0 +msgid "Display Name" +msgstr "Prikazni naziv" + +#. module: partner_capital +#: field:res.partner.turnover_range,id:0 +msgid "ID" +msgstr "ID" + +#. module: partner_capital +#: field:res.partner.turnover_range,__last_update:0 +msgid "Last Modified on" +msgstr "Zadnjič spremenjeno" + +#. module: partner_capital +#: field:res.partner.turnover_range,write_uid:0 +msgid "Last Updated by" +msgstr "Zadnji posodobil" + +#. module: partner_capital +#: field:res.partner.turnover_range,write_date:0 +msgid "Last Updated on" +msgstr "Zadnjič posodobljeno" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Medium" +msgstr "Srednja" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Micro" +msgstr "Mikro" + +#. module: partner_capital +#: field:res.partner.turnover_range,name:0 +msgid "Name" +msgstr "Naziv" + +#. module: partner_capital +#: model:ir.model,name:partner_capital.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: partner_capital +#: help:res.partner,capital_amount:0 +msgid "Publicly registered capital amount." +msgstr "Javno registrirani znesek kapitala." + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +msgid "Salesperson" +msgstr "Prodajalec" + +#. module: partner_capital +#: selection:res.partner,company_size:0 +msgid "Small" +msgstr "Majhna" + +#. module: partner_capital +#: view:res.partner:partner_capital.view_res_partner_filter_capital +msgid "Turnover" +msgstr "Promet" + +#. module: partner_capital +#: field:res.partner,turnover_amount:0 +msgid "Turnover amount" +msgstr "Znesek prometa" + +#. module: partner_capital +#: model:ir.model,name:partner_capital.model_res_partner_turnover_range +#: field:res.partner,turnover_range_id:0 +msgid "Turnover range" +msgstr "Razpon prometa" + +#. module: partner_capital +#: model:ir.actions.act_window,name:partner_capital.res_partner_turnover_range_action +#: model:ir.ui.menu,name:partner_capital.menu_res_partner_turnover_range +#: view:res.partner.turnover_range:partner_capital.res_partner_turnover_range_tree_view +msgid "Turnover ranges" +msgstr "Razponi prometa" diff --git a/partner_capital/models/__init__.py b/partner_capital/models/__init__.py new file mode 100644 index 000000000..c2cd4625c --- /dev/null +++ b/partner_capital/models/__init__.py @@ -0,0 +1,9 @@ +# -*- 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_turnover_range, + res_partner, +) diff --git a/partner_capital/models/res_partner.py b/partner_capital/models/res_partner.py new file mode 100644 index 000000000..746a7e035 --- /dev/null +++ b/partner_capital/models/res_partner.py @@ -0,0 +1,33 @@ +# -*- 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 openerp import models, fields + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + capital_country_id = fields.Many2one( + 'res.country', + "Capital country", + oldname="capital_country", + help="Country of origin of this company's capital.") + capital_amount = fields.Float( + "Capital amount", + oldname="capital_registered", + help="Publicly registered capital amount.") + capital_currency_id = fields.Many2one( + "res.currency", + string="Capital currency") + turnover_range_id = fields.Many2one( + 'res.partner.turnover_range', + "Turnover range", + oldname="turnover_range") + turnover_amount = fields.Float( + oldname="turnover_number") + company_size = fields.Selection( + string="Company size", + selection=[('micro', 'Micro'), ('small', 'Small'), + ('medium', 'Medium'), ('big', 'Big')]) diff --git a/partner_capital/models/res_partner_turnover_range.py b/partner_capital/models/res_partner_turnover_range.py new file mode 100644 index 000000000..25712489d --- /dev/null +++ b/partner_capital/models/res_partner_turnover_range.py @@ -0,0 +1,13 @@ +# -*- 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 openerp import models, fields + + +class ResPartnerTurnoverRange(models.Model): + _name = 'res.partner.turnover_range' + _description = "Turnover range" + + name = fields.Char(required=True, translate=True) diff --git a/partner_capital/security/ir.model.access.csv b/partner_capital/security/ir.model.access.csv new file mode 100644 index 000000000..0a5d1bb4e --- /dev/null +++ b/partner_capital/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_crm_turnover_public","res_partner_turnover_range group_public","model_res_partner_turnover_range","base.group_public",1,0,0,0 +"access_crm_turnover_portal","res_partner_turnover_range group_portal","model_res_partner_turnover_range","base.group_portal",1,0,0,0 +"access_crm_turnover_group_partner_manager","res_partner_turnover_range group_partner_manager","model_res_partner_turnover_range","base.group_partner_manager",1,1,1,1 +"access_crm_turnover_group_user","res_partner_turnover_range group_user","model_res_partner_turnover_range","base.group_user",1,0,0,0 diff --git a/partner_capital/static/description/icon.png b/partner_capital/static/description/icon.png new file mode 100644 index 000000000..abc5b9a32 Binary files /dev/null and b/partner_capital/static/description/icon.png differ diff --git a/partner_capital/views/res_partner_turnover_range_view.xml b/partner_capital/views/res_partner_turnover_range_view.xml new file mode 100644 index 000000000..a5dd70af5 --- /dev/null +++ b/partner_capital/views/res_partner_turnover_range_view.xml @@ -0,0 +1,31 @@ + + + + + + + + Turnover ranges + res.partner.turnover_range + form + tree + + + + CRM Turnover range tree + res.partner.turnover_range + + + + + + + + + + + diff --git a/partner_capital/views/res_partner_view.xml b/partner_capital/views/res_partner_view.xml new file mode 100644 index 000000000..4fe7baa55 --- /dev/null +++ b/partner_capital/views/res_partner_view.xml @@ -0,0 +1,49 @@ + + + + + + + + Partner form with capital info + res.partner + + + + + + + + + + + + + + + + + Partner search with capital + res.partner + + + + + + + + + + + +