Commit 0e04022e authored by Fabien Morin's avatar Fabien Morin

- TradeCondition.py : typo

- add PropertySheets required for new bt erp5_payroll


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17646 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1a217511
##############################################################################
#
# Copyright (c) 2007 Nexedi SA and Contributors. All Rights Reserved.
# 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
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
class DefaultAnnotationLine:
"""
Generate automatic accessors to manage a default AnnotationLine on a object.
"""
_properties = (
# Acquisition
{ 'id' : 'annotation_line',
'storage_id' : 'default_annotation_line',
'description' : 'The default annotation line',
'type' : 'content',
'portal_type' : ('Annotation Line',),
'acquired_property_id' : ('source_section', 'source_section_title',
'source_section_uid',
'destination_section',
'destination_section_uid',
'destination_section_title',
'resource_uid',
'resource_title', 'quantity',
'quantity_unit', 'quantity_unit_title'),
'mode' : 'w' },
)
##############################################################################
#
# Copyright (c) 2007 Nexedi SA and Contributors. All Rights Reserved.
# 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
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
class PaySheetModel:
"""
Properties for PaySheetModel objects
"""
_properties = (
{ 'id' : 'variation_settings_category',
'storage_id' : 'variation_settings_category_list',
'description' : 'A list of categories which define possible language or \
context settings variation',
'type' : 'lines',
'default' : [],
'mode' : 'w'
},
{ 'id' : 'localized_calculation_script_id'
, 'description' : 'name of the script used to do localised calculs'
, 'type' : 'string'
, 'mode' : 'w'
},
)
##############################################################################
#
# Copyright (c) 2007 Nexedi SA and Contributors. All Rights Reserved.
# 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
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
from Products.CMFCore.Expression import Expression
class PaySheetModelLine:
"""
Properties which allow to define a generic Price.
"""
_properties = (
{ 'id' : 'editable',
'description' : 'If set to 1, self could be edited at the paySheet creation',
'type' : 'boolean',
'mode' : 'w' },
)
_categories = ( 'tax_category', 'grade', 'base_amount', 'salary_range')
......@@ -58,7 +58,8 @@ class TradeCondition:
'payment_end_of_month', 'payment_date',
'quantity', 'efficiency',
'source_payment', 'source_payment_title',
'destination_payment', 'destination_payment_title',
'destination_payment',
'destination_payment_title',
),
'mode' : 'w' },
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment