From 5083b028a948db1799b4a5e37ab4f97580f0bc79 Mon Sep 17 00:00:00 2001 From: Guillaume Michon <guillaume@nexedi.com> Date: Fri, 4 Feb 2005 17:04:57 +0000 Subject: [PATCH] Use category price_currency for social_capital_currency property git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2415 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/PropertySheet/Organisation.py | 23 +++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/product/ERP5/PropertySheet/Organisation.py b/product/ERP5/PropertySheet/Organisation.py index d99eabbaee..afafec103d 100755 --- a/product/ERP5/PropertySheet/Organisation.py +++ b/product/ERP5/PropertySheet/Organisation.py @@ -42,10 +42,27 @@ class Organisation: 'description' : 'The social capital of this organisation', 'type' : 'int', 'mode' : 'w' }, - { 'id' : 'social_capital_currency', # XXX Please use category price_currency - 'description' : "The currency in which the social capital is" - "expressed", + { 'id' : 'social_capital_currency_id', + 'description' : "The currency in which the social capital is expressed", 'type' : 'string', + 'portal_type' : ('Currency'), + 'acquisition_base_category' : ('price_currency'), + 'acquisition_portal_type' : ('Currency'), + 'acquisition_copy_value' : 0, + 'acquisition_mask_value' : 1, + 'acquisition_sync_value' : 0, + 'acquisition_accessor_id' : 'getId', + 'mode' : 'w' }, + { 'id' : 'social_capital_currency_title', + 'description' : "The currency in which the social capital is expressed", + 'type' : 'string', + 'portal_type' : ('Currency'), + 'acquisition_base_category' : ('price_currency'), + 'acquisition_portal_type' : ('Currency'), + 'acquisition_copy_value' : 0, + 'acquisition_mask_value' : 1, + 'acquisition_sync_value' : 0, + 'acquisition_accessor_id' : 'getTitle', 'mode' : 'w' }, { 'id' : 'activity_code', 'description' : 'The activity code of this organisation', -- 2.30.9