From e39b770d08fdb7ff2dae4b3e31646192d0e9de71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 9 May 2008 17:27:00 +0200 Subject: [PATCH] New module currency --- __tryton__.py | 7 ++++++- company.py | 1 + company.xml | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/__tryton__.py b/__tryton__.py index 75c8372d1c..21be9ec756 100644 --- a/__tryton__.py +++ b/__tryton__.py @@ -6,6 +6,11 @@ 'website': 'http://www.tryton.org/', 'category': 'Generic Modules', 'description': 'Define company', - 'depends': ['ir', 'res', 'partner'], + 'depends': [ + 'ir', + 'res', + 'partner', + 'currency', + ], 'xml': ['company.xml'], } diff --git a/company.py b/company.py index 13e53af5cf..6186293fb0 100644 --- a/company.py +++ b/company.py @@ -15,6 +15,7 @@ class Company(OSV): childs = fields.One2Many('company.company', 'parent', 'Childs') header = fields.Text('Header') footer = fields.text('Footer') + currency = fields.Many2One('currency.currency', 'Currency', required=True) def __init__(self): super(Company, self).__init__() diff --git a/company.xml b/company.xml index de525cfd4c..6e7d0bc954 100644 --- a/company.xml +++ b/company.xml @@ -13,6 +13,8 @@