Kirti Savalia(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-temporal-db-intermediate-branch-rpa-ksa-improvement-ksa
into
lp:~openerp-dev/openobject-addons/trunk-temporal-db-intermediate-branch-rpa-ksa.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-temporal-db-intermediate-branch-rpa-ksa-improvement-ksa/+merge/75165
Fixed context problem in yml file.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-temporal-db-intermediate-branch-rpa-ksa-improvement-ksa/+merge/75165
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-temporal-db-intermediate-branch-rpa-ksa.
=== modified file 'base_temporal/test/base_temporal_test.yml'
--- base_temporal/test/base_temporal_test.yml 2011-07-11 14:40:05 +0000
+++ base_temporal/test/base_temporal_test.yml 2011-09-13 12:45:39 +0000
@@ -57,7 +57,7 @@
from tools.translate import _
from datetime import datetime, timedelta
date_from = datetime.strptime(datetime.now().strftime('%Y-%m-%d 10:00:00'), '%Y-%m-%d %H:%M:%S') - timedelta(days=1)
- context={'temporal_date':date_from.strftime('%Y-%m-%d 10:00:00')}
+ context={'temporal_date':date_from.strftime('%Y-%m-%d 10:00:00'),'temporal_mode': False}
yesterday_ids = self.read(cr, uid, ref("base_temporal_my_contract"), ['name'], context=context)
assert yesterday_ids['name'] == "My Yesterday's Contract", _("The name of 'My Contract' read yesterday is not correct")
-
@@ -125,12 +125,11 @@
from tools.translate import _
from datetime import datetime, timedelta
date_from = datetime.strptime(datetime.now().strftime('%Y-%m-%d 10:00:00'), '%Y-%m-%d %H:%M:%S')
- context.update({'temporal_date':date_from.strftime('%Y-%m-%d 10:00:00')})
+ context.update({'temporal_date':date_from.strftime('%Y-%m-%d 10:00:00'),'temporal_mode':False})
contract_ids = self.read(cr, uid, ref("base_temporal_contract3"), ['name','line_ids'], context=context)
assert contract_ids['name'] == 'Contract 3', _('Name of Contract 3 is not correct')
#TODO: need to fix the read of one2many fields before going any further
#import pdb;pdb.set_trace()
- print '>>>', contract_ids['line_ids']
assert contract_ids['line_ids'], 'marche pas'
-
I read "Contract 3" at the date of tomorrow and check name "Contract 3 Bis" and lines "Line 3.1, Line 3.2 Bis" .
@@ -139,6 +138,6 @@
from tools.translate import _
from datetime import datetime, timedelta
date_from =datetime.strptime(datetime.now().strftime('%Y-%m-%d 10:00:00'), '%Y-%m-%d %H:%M:%S') + timedelta(days=1)
- context.update({'temporal_date':date_from.strftime('%Y-%m-%d 10:00:00')})
+ context.update({'temporal_date':date_from.strftime('%Y-%m-%d 10:00:00'),'temporal_mode':False})
contract_ids = self.read(cr, uid, ref("base_temporal_contract3"), ['name'], context=context)
assert contract_ids, _("Not Found: 'Contract 3 Bis'")
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp