Browse Source

[MIG] partner_capital: Migration to 10.0

pull/427/head
David Vidal 8 years ago
parent
commit
4f8a433f93
  1. 22
      partner_capital/README.rst
  2. 3
      partner_capital/__init__.py
  3. 24
      partner_capital/__manifest__.py
  4. 21
      partner_capital/__openerp__.py
  5. 6
      partner_capital/models/res_partner.py
  6. 6
      partner_capital/models/res_partner_turnover_range.py
  7. 11
      partner_capital/views/res_partner_turnover_range_view.xml
  8. 11
      partner_capital/views/res_partner_view.xml

22
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
<https://github.com/OCA/
partner-contact/issues/new?body=module:%20
partner_capital%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
10.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits
=======
Images
------
* `Antiun Ingeniería S.L. <http://www.antiun.com>`_: Icon.
Contributors
------------
* Antonio Espinosa <antonioea@antiun.com>
* Rafael Blasco <rafabn@antiun.com>
* Jairo Llopis <yajo.sk8@gmail.com>
* 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
----------

3
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

24
partner_capital/__manifest__.py

@ -0,0 +1,24 @@
# -*- 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',
'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,
}

21
partner_capital/__openerp__.py

@ -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,
}

6
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 <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).
from openerp import models, fields
from odoo import fields, models
class ResPartner(models.Model):

6
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 <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).
from openerp import models, fields
from odoo import fields, models
class ResPartnerTurnoverRange(models.Model):

11
partner_capital/views/res_partner_turnover_range_view.xml

@ -1,10 +1,6 @@
<?xml version="1.0" encoding="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). -->
<openerp>
<data>
<odoo>
<record id="res_partner_turnover_range_action" model="ir.actions.act_window">
<field name="name">Turnover ranges</field>
@ -25,7 +21,6 @@
<menuitem action="res_partner_turnover_range_action"
id="menu_res_partner_turnover_range"
parent="base.menu_config_address_book"/>
parent="sales_team.menu_config_address_book"/>
</data>
</openerp>
</odoo>

11
partner_capital/views/res_partner_view.xml

@ -1,10 +1,6 @@
<?xml version="1.0" encoding="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). -->
<openerp>
<data>
<odoo>
<record model="ir.ui.view" id="view_partner_form_capital">
<field name="name">Partner form with capital info</field>
@ -31,7 +27,7 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="arch" type="xml">
<filter string="Salesperson" position="after">
<filter name="salesperson" position="after">
<filter string="Capital country"
domain="[('is_company', '=', True)]"
context="{'group_by': 'capital_country_id'}"/>
@ -45,5 +41,4 @@
</field>
</record>
</data>
</openerp>
</odoo>
Loading…
Cancel
Save