From b073c336b009f2fd5cc569ba7b8bca633d11ba35 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Fri, 18 Dec 2015 16:52:05 +0100 Subject: [PATCH] Add currency, fix view, rename capital_country. --- partner_capital/models/res_partner.py | 6 +++++- partner_capital/views/res_partner_view.xml | 22 ++++++++++------------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/partner_capital/models/res_partner.py b/partner_capital/models/res_partner.py index a32973a69..8adc35fe0 100644 --- a/partner_capital/models/res_partner.py +++ b/partner_capital/models/res_partner.py @@ -9,14 +9,18 @@ from openerp import models, fields class ResPartner(models.Model): _inherit = 'res.partner' - capital_country = fields.Many2one( + 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_amount", 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", diff --git a/partner_capital/views/res_partner_view.xml b/partner_capital/views/res_partner_view.xml index ab192466f..f5683d59f 100644 --- a/partner_capital/views/res_partner_view.xml +++ b/partner_capital/views/res_partner_view.xml @@ -11,18 +11,16 @@ res.partner - - - - - - - + + + + + + + +