diff --git a/partner_capital/README.rst b/partner_capital/README.rst index d5dc5c71a..1a7c9150f 100644 --- a/partner_capital/README.rst +++ b/partner_capital/README.rst @@ -2,9 +2,9 @@ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 -================ -Partners Capital -================ +=============== +Partner Capital +=============== This module extends the functionality of partners to support setting the country of origin of capital, registered capital amount and turnover. @@ -31,7 +31,7 @@ To manage turnover ranges, 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 Known issues / Roadmap ====================== @@ -49,22 +49,18 @@ help us smashing it by providing a detailed and welcomed `feedback `_. +10.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Credits ======= -Images ------- - -* `Antiun Ingeniería S.L. `_: Icon. - Contributors ------------ -* Antonio Espinosa -* Rafael Blasco -* Jairo Llopis +* Antonio Espinosa +* Rafael Blasco +* Jairo Llopis +* David Vidal Maintainer ---------- diff --git a/partner_capital/__init__.py b/partner_capital/__init__.py index 8e6d7e45a..cde864bae 100644 --- a/partner_capital/__init__.py +++ b/partner_capital/__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 diff --git a/partner_capital/__manifest__.py b/partner_capital/__manifest__.py new file mode 100644 index 000000000..2057aa1be --- /dev/null +++ b/partner_capital/__manifest__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +# Copyright 2015 Antonio Espinosa +# Copyright 2015 Jairo Llopis +# Copyright 2017 David Vidal +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + 'name': 'Partners Capital', + 'version': '10.0.1.0.0', + 'category': 'Customer Relationship Management', + 'author': 'Antiun Ingeniería S.L., ' + 'Tecnativa, ' + 'Odoo Community Association (OCA)', + 'website': 'https://www.tecnativa.com', + 'depends': [ + 'sale', + ], + '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/__openerp__.py b/partner_capital/__openerp__.py deleted file mode 100644 index 76ab06a28..000000000 --- a/partner_capital/__openerp__.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- 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/models/res_partner.py b/partner_capital/models/res_partner.py index 746a7e035..ba2a31e63 100644 --- a/partner_capital/models/res_partner.py +++ b/partner_capital/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 +# Copyright 2015 Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields +from odoo import fields, models class ResPartner(models.Model): diff --git a/partner_capital/models/res_partner_turnover_range.py b/partner_capital/models/res_partner_turnover_range.py index 25712489d..a0cef68ef 100644 --- a/partner_capital/models/res_partner_turnover_range.py +++ b/partner_capital/models/res_partner_turnover_range.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 +# Copyright 2015 Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields +from odoo import fields, models class ResPartnerTurnoverRange(models.Model): diff --git a/partner_capital/views/res_partner_turnover_range_view.xml b/partner_capital/views/res_partner_turnover_range_view.xml index a5dd70af5..6b8bc9eee 100644 --- a/partner_capital/views/res_partner_turnover_range_view.xml +++ b/partner_capital/views/res_partner_turnover_range_view.xml @@ -1,10 +1,6 @@ - - - + Turnover ranges @@ -25,7 +21,6 @@ + parent="sales_team.menu_config_address_book"/> - - + diff --git a/partner_capital/views/res_partner_view.xml b/partner_capital/views/res_partner_view.xml index 4fe7baa55..915dab301 100644 --- a/partner_capital/views/res_partner_view.xml +++ b/partner_capital/views/res_partner_view.xml @@ -1,10 +1,6 @@ - - - + Partner form with capital info @@ -31,7 +27,7 @@ res.partner - + @@ -45,5 +41,4 @@ - - +