I am in desperate need of help...!
I have an ETL module written in Java that loads my customer data into OpenERP.
After setting initial stock levels using an initial stock inventory, my java
program calls the action_done function on the stock.inventory object (through
XML-RPC).
If I manually press the action_done (Confirm) button in the web client or GTK
client, everything works fine. But I call this function from Java with the same
parameters, I get a weird error.
Here is the call:
service:'object'
method:'execute'
params:('mg3', '1', 'admin', 'stock.inventory', 'action_done', [1])
And the error I always get:
File "osv\osv.pyo", line 59, in wrapper
File "osv\osv.pyo", line 118, in execute
File "osv\osv.pyo", line 110, in execute_cr
File "C:\OpenERP\Server\addons\stock\stock.py", line 1335, in action_done
File "osv\orm.pyo", line 229, in __getattr__
File "osv\orm.pyo", line 190, in __getitem__
File "osv\orm.pyo", line 2084, in read
File "osv\orm.pyo", line 2195, in _read_flat
File "osv\fields.pyo", line 646, in get
File "osv\fields.pyo", line 838, in _fnct_read
File "osv\orm.pyo", line 2843, in search
File "tools\misc.pyo", line 686, in cached_result
File "C:\OpenERP\Server\addons\base\ir\ir_rule.py", line 160, in domain_get
File "osv\orm.pyo", line 229, in __getattr__
File "osv\orm.pyo", line 190, in __getitem__
File "osv\orm.pyo", line 2084, in read
File "osv\orm.pyo", line 2195, in _read_flat
File "osv\fields.pyo", line 646, in get
File "C:\OpenERP\Server\addons\base\ir\ir_rule.py", line 115, in
_domain_force_get
File "<string>", line 1, in <module>
AttributeError: 'bool' object has no attribute 'id'
Another strange thing is that I can call the action_cancel function from Java
without any problem. Only the action_done seems to cause me problems.
Thanks in advance for any help...
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=46768#46768
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users