Commit a61330a5 authored by Vincent Pelletier's avatar Vincent Pelletier

Use inventory_date value as inventory start date.

Comment out some very verbose logs.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14261 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 65b8a45d
...@@ -177,6 +177,10 @@ class BaobabConduit(ERP5Conduit): ...@@ -177,6 +177,10 @@ class BaobabConduit(ERP5Conduit):
'erp5_property': 'title' 'erp5_property': 'title'
, 'conditions' : {'erp5_portal_type':'Cash Inventory Group'} , 'conditions' : {'erp5_portal_type':'Cash Inventory Group'}
}], }],
'inventory_date': [{
'erp5_property': 'start_date'
, 'conditions' : {'erp5_portal_type':'Cash Inventory Group'}
}],
'title': [{ 'title': [{
'erp5_property': 'title' 'erp5_property': 'title'
, 'conditions' : {'erp5_portal_type':'Bank Account Inventory'} , 'conditions' : {'erp5_portal_type':'Bank Account Inventory'}
...@@ -665,10 +669,10 @@ class BaobabConduit(ERP5Conduit): ...@@ -665,10 +669,10 @@ class BaobabConduit(ERP5Conduit):
# before editing an object. This is used when there is no simple # before editing an object. This is used when there is no simple
# equivalent between sql table and ERP5. # equivalent between sql table and ERP5.
method_id = "edit%s%s" % (kw['type'].replace(' ', ''), convertToUpperCase(k)) method_id = "edit%s%s" % (kw['type'].replace(' ', ''), convertToUpperCase(k))
LOG( 'BaobabConduit:' #LOG( 'BaobabConduit:'
, 0 # , 0
, "try to call conduit method %s on %s" % (repr(method_id), repr(object)) # , "try to call conduit method %s on %s" % (repr(method_id), repr(object))
) # )
if v not in ('', None): if v not in ('', None):
if hasattr(self, method_id): if hasattr(self, method_id):
# get the method itself # get the method itself
...@@ -676,11 +680,11 @@ class BaobabConduit(ERP5Conduit): ...@@ -676,11 +680,11 @@ class BaobabConduit(ERP5Conduit):
# This call the method, this exactly the same thing # This call the method, this exactly the same thing
# as calling directly : self.editClientNatureEconomique(object,v) # as calling directly : self.editClientNatureEconomique(object,v)
method(object, v) method(object, v)
else: #else:
LOG( 'BaobabConduit:' # LOG( 'BaobabConduit:'
, 100 # , 100
, "there is no method to handle <%s>%s</%s> data" % (k,repr(v),k) # , "there is no method to handle <%s>%s</%s> data" % (k,repr(v),k)
) # )
if object.getPortalType() == 'Bank Account': if object.getPortalType() == 'Bank Account':
......
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