Commit ed0b5d9a authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added categories required to support amount generation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33650 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bbdc6561
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
...@@ -69,7 +70,7 @@ class Amount: ...@@ -69,7 +70,7 @@ class Amount:
'acquisition_depends' : None, 'acquisition_depends' : None,
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'cancellation_amount', { 'id' : 'cancellation_amount',
'description' : 'defines if this quantity is used in order to cancel another one', 'description' : 'Defines if this quantity is used in order to cancel another one',
'type' : 'boolean', 'type' : 'boolean',
'default': False, 'default': False,
'mode' : 'w' }, 'mode' : 'w' },
...@@ -77,7 +78,7 @@ class Amount: ...@@ -77,7 +78,7 @@ class Amount:
# When comparing a delivery to a property_dict coming from a MovementGroup, # When comparing a delivery to a property_dict coming from a MovementGroup,
# the DeliveryBuilder needs to have at least a specific property for each MovementGroup # the DeliveryBuilder needs to have at least a specific property for each MovementGroup
{ 'id' : 'quantity_sign', { 'id' : 'quantity_sign',
'description' : 'defines if the quantity is positive or negative', 'description' : 'Defines if the quantity is positive or negative',
'type' : 'float', 'type' : 'float',
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'efficiency', { 'id' : 'efficiency',
...@@ -95,15 +96,15 @@ class Amount: ...@@ -95,15 +96,15 @@ class Amount:
#'has_adapater_id' : #'has_adapater_id' :
'mode' : 'w' }, 'mode' : 'w' },
# Profit and loss # Profit and loss
{ 'id' : 'profit_quantity', { 'id' : 'profit_quantity', # XXX-JPS - probably deprecated
'description' : 'A quantity which represents generation of resource from nowhere', 'description' : 'A quantity which represents generation of resource from nowhere',
'type' : 'float', 'type' : 'float',
'default' : 0.0, 'default' : 0.0,
'mode' : 'w' }, 'mode' : 'w' },
) )
_categories = ('resource', 'quantity_unit', _categories = ('resource', 'quantity_unit',
'base_application', 'base_contribution', 'use', 'base_application', 'base_contribution', 'use', 'trade_phase',
# Acquired categories # Acquired categories
'product_line', ) 'product_line', )
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