From 39e681ba66bdcbacabf7531c68e491b2faab4d16 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Wed, 10 Jun 2009 11:25:40 +0000
Subject: [PATCH] update copyright and add a new property :
 preferred_payroll_resource_use_category usefull do defined wich services ares
 used in payroll. (in this way it's possible to set a filter in payroll and
 display only services we need in payroll) remove old property
 preferred_payroll_service_variation_base_category wich is useless now :
 service variation can be defined in PDM System preferences

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27488 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/PropertySheet/PayrollPreference.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/PropertySheet/PayrollPreference.py b/product/ERP5/PropertySheet/PayrollPreference.py
index de3361edfe..8f710d3b83 100644
--- a/product/ERP5/PropertySheet/PayrollPreference.py
+++ b/product/ERP5/PropertySheet/PayrollPreference.py
@@ -1,7 +1,8 @@
 ##############################################################################
 #
-# Copyright (c) 2008 Nexedi SA and Contributors. All Rights Reserved.
+# Copyright (c) 2008-2009 Nexedi SA and Contributors. All Rights Reserved.
 #                    Jerome Perrin <jerome@nexedi.com>
+#                    Fabien Morin <fabien@nexedi.com>
 #
 # WARNING: This program as such is intended to be used by professional
 # programmers who take the whole responsability of assessing all potential
@@ -30,9 +31,11 @@ class PayrollPreference:
   """Preferences for erp5_payroll.
   """
   _properties = (
-    { 'id'          : 'preferred_payroll_service_variation_base_category',
-      'description' : 'Defines base categories axes in payroll service variations',
+    { 'id'          : 'preferred_payroll_resource_use_category',
+      'description' : 'Defines which resources\' use categories has payroll usage in system',
       'type'        : 'lines',
       'preference'  : 1,
+      'default'     : [],
+      'write_permission': 'Manage properties',
       'mode'        : '' },
   )
-- 
2.30.9