Skip to content

Commit

Permalink
[IMP] partner_capital : migration to 11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Hauperpin-Bonneau authored and remihb committed Nov 22, 2018
1 parent 457851f commit 990cfb2
Show file tree
Hide file tree
Showing 14 changed files with 523 additions and 60 deletions.
76 changes: 45 additions & 31 deletions partner_capital/README.rst
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
.. 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
================

===============
Partner Capital
===============
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This module extends the functionality of partners to support setting the
country of origin of capital, registered capital amount and turnover.
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
:target: https://github.com/OCA/partner-contact/tree/11.0/partner_capital
:alt: OCA/partner-contact
.. |badge3| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/partner-contact-11-0/partner-contact-11-0-partner_capital
:alt: Translate me on Weblate
.. |badge4| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/134/11.0
:alt: Try me on Runbot

By capital country we mean country of origin of the capital of the company.
|badge1| |badge2| |badge3| |badge4|

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.
Bla test

By turnover we can define a range for a concrete amount.
**Table of contents**

.. contents::
:local:

Usage
=====
Expand All @@ -29,10 +41,6 @@ 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/10.0

Known issues / Roadmap
======================

Expand All @@ -42,37 +50,43 @@ Known issues / Roadmap
Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/partner-contact/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
<https://github.com/OCA/
partner-contact/issues/new?body=module:%20
partner_capital%0Aversion:%20
10.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/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 <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_capital%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Antiun Ingenieria S.L.
* Tecnativa

Contributors
------------
~~~~~~~~~~~~

* 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
----------
Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. 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.
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/11.0/partner_capital>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 0 additions & 2 deletions partner_capital/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# -*- coding: utf-8 -*-

from . import models
7 changes: 3 additions & 4 deletions partner_capital/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# -*- coding: utf-8 -*-
# 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': 'Partners Capital',
'version': '10.0.1.0.0',
'version': '11.0.1.0.0',
'category': 'Customer Relationship Management',
'author': 'Antiun Ingeniería S.L., '
'author': 'Antiun Ingenieria S.L., '
'Tecnativa, '
'Odoo Community Association (OCA)',
'website': 'https://www.tecnativa.com',
"website": "https://github.com/OCA/partner-contact/tree/11.0/partner_capital", # noqa
'depends': [
'sale',
],
Expand Down
28 changes: 14 additions & 14 deletions partner_capital/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ msgstr ""
#. module: partner_capital
#: selection:res.partner,company_size:0
msgid "Big"
msgstr ""
msgstr "Grande"

#. module: partner_capital
#: model:ir.ui.view,arch_db:partner_capital.view_partner_form_capital
Expand All @@ -35,37 +35,37 @@ msgstr ""
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_capital_amount
#: model:ir.model.fields,field_description:partner_capital.field_res_users_capital_amount
msgid "Capital amount"
msgstr ""
msgstr "Montant du capital"

#. module: partner_capital
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_alias_capital_country_id
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_capital_country_id
#: model:ir.model.fields,field_description:partner_capital.field_res_users_capital_country_id
#: model:ir.ui.view,arch_db:partner_capital.view_res_partner_filter_capital
msgid "Capital country"
msgstr ""
msgstr "Pays d'origine du capital"

#. module: partner_capital
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_alias_capital_currency_id
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_capital_currency_id
#: model:ir.model.fields,field_description:partner_capital.field_res_users_capital_currency_id
msgid "Capital currency"
msgstr ""
msgstr "Devise du capital"

#. module: partner_capital
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_alias_company_size
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_company_size
#: model:ir.model.fields,field_description:partner_capital.field_res_users_company_size
#: model:ir.ui.view,arch_db:partner_capital.view_res_partner_filter_capital
msgid "Company size"
msgstr ""
msgstr "Taille de la société"

#. module: partner_capital
#: model:ir.model.fields,help:partner_capital.field_res_partner_alias_capital_country_id
#: model:ir.model.fields,help:partner_capital.field_res_partner_capital_country_id
#: model:ir.model.fields,help:partner_capital.field_res_users_capital_country_id
msgid "Country of origin of this company's capital."
msgstr ""
msgstr "Pays d'origine du capital de la société"

#. module: partner_capital
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_turnover_range_create_uid
Expand Down Expand Up @@ -105,12 +105,12 @@ msgstr "Mis à jour le"
#. module: partner_capital
#: selection:res.partner,company_size:0
msgid "Medium"
msgstr ""
msgstr "Normale"

#. module: partner_capital
#: selection:res.partner,company_size:0
msgid "Micro"
msgstr ""
msgstr "Très petite"

#. module: partner_capital
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_turnover_range_name
Expand All @@ -127,36 +127,36 @@ msgstr "Contact"
#: model:ir.model.fields,help:partner_capital.field_res_partner_capital_amount
#: model:ir.model.fields,help:partner_capital.field_res_users_capital_amount
msgid "Publicly registered capital amount."
msgstr ""
msgstr "Montant du capital enregistré publiquement"

#. module: partner_capital
#: selection:res.partner,company_size:0
msgid "Small"
msgstr ""
msgstr "Petite"

#. module: partner_capital
#: model:ir.ui.view,arch_db:partner_capital.view_res_partner_filter_capital
msgid "Turnover"
msgstr ""
msgstr "Chiffre d'affaire"

#. module: partner_capital
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_alias_turnover_amount
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_turnover_amount
#: model:ir.model.fields,field_description:partner_capital.field_res_users_turnover_amount
msgid "Turnover amount"
msgstr ""
msgstr "Montant du chiffre d'affaire"

#. module: partner_capital
#: model:ir.model,name:partner_capital.model_res_partner_turnover_range
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_alias_turnover_range_id
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_turnover_range_id_5466
#: model:ir.model.fields,field_description:partner_capital.field_res_users_turnover_range_id
msgid "Turnover range"
msgstr ""
msgstr "Fourchette du chiffre d'affaire"

#. 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
#: model:ir.ui.view,arch_db:partner_capital.res_partner_turnover_range_tree_view
msgid "Turnover ranges"
msgstr ""
msgstr "Fourchettes du chiffre d'affaire"
2 changes: 1 addition & 1 deletion partner_capital/i18n/partner_capital.pot
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ msgid "Turnover amount"
msgstr ""

#. module: partner_capital
#: model:ir.model,name:partner_capital.model_res_partner_turnover_range
#: model:ir.model,name:partner_capital.model_res_partner_turnover_range_id
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_alias_turnover_range_id
#: model:ir.model.fields,field_description:partner_capital.field_res_partner_turnover_range_id_5466
#: model:ir.model.fields,field_description:partner_capital.field_res_users_turnover_range_id
Expand Down
5 changes: 0 additions & 5 deletions partner_capital/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +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_turnover_range,
res_partner,
Expand Down
1 change: 0 additions & 1 deletion partner_capital/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# 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).
Expand Down
1 change: 0 additions & 1 deletion partner_capital/models/res_partner_turnover_range.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# 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).
Expand Down
4 changes: 4 additions & 0 deletions partner_capital/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Antonio Espinosa <antonio.espinosa@tecnativa.com>
* Rafael Blasco <rafael.blasco@tecnativa.com>
* Jairo Llopis <jairo.llopis@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>
1 change: 1 addition & 0 deletions partner_capital/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bla test
2 changes: 2 additions & 0 deletions partner_capital/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Add automatic rules to calculate turnover range and company size.
* Allow customization of company sizes.
8 changes: 8 additions & 0 deletions partner_capital/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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*.
Loading

0 comments on commit 990cfb2

Please sign in to comment.