c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #20022
[Bug 741606] [NEW] v6 ImportError: cannot import name test_reports
Public bug reported:
Hi,
there is 2 months I open a bug which has been declared as duplicate of an other, but the problem is it is not the same bug, if you read the title it is explained :
https://bugs.launchpad.net/openobject-server/+bug/707870?comments=all
There is actually 11 errors in my server log see attachment.
I find a solution in my previous bug report and has not be tested/seen to solve the problem :
just adding double quotes for lines by example :
I tested with product/test/product_report.yml :
"from tools import test_reports"
"test_reports.try_report_action(cr, uid, 'action_product_price_list',wiz_data=data_dict, context=ctx, our_module='product')"
and there is not error in logs like actually :
[2011-03-24 10:57:13,558][admin] ERROR:tests.product:cannot import name test_reports
Traceback (most recent call last):
File "tools\yaml_import.pyo", line 729, in process
File "tools\yaml_import.pyo", line 744, in _process_node
File "tools\yaml_import.pyo", line 414, in process_python
File "d:\OpenERP 6.0\Server\addons\product\test\product_report.yml", line 9, in <module>
ImportError: cannot import name test_reports
Bye
** Affects: openobject-server
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/741606
Title:
v6 ImportError: cannot import name test_reports
Status in OpenERP Server:
New
Bug description:
Hi,
there is 2 months I open a bug which has been declared as duplicate of an other, but the problem is it is not the same bug, if you read the title it is explained :
https://bugs.launchpad.net/openobject-server/+bug/707870?comments=all
There is actually 11 errors in my server log see attachment.
I find a solution in my previous bug report and has not be tested/seen to solve the problem :
just adding double quotes for lines by example :
I tested with product/test/product_report.yml :
"from tools import test_reports"
"test_reports.try_report_action(cr, uid, 'action_product_price_list',wiz_data=data_dict, context=ctx, our_module='product')"
and there is not error in logs like actually :
[2011-03-24 10:57:13,558][admin] ERROR:tests.product:cannot import name test_reports
Traceback (most recent call last):
File "tools\yaml_import.pyo", line 729, in process
File "tools\yaml_import.pyo", line 744, in _process_node
File "tools\yaml_import.pyo", line 414, in process_python
File "d:\OpenERP 6.0\Server\addons\product\test\product_report.yml", line 9, in <module>
ImportError: cannot import name test_reports
Bye
Follow ups
References