-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't create an account.move.line in OOOR #67
Comments
Double check the values OOOR is trying to send, probably there is some "nil" value which is not allowed in XML/RPC |
rvalyi, something really strange is happening. I'm using OOOR from terminatooor1.3.1 via: java -jar jruby-ooor.jar if after connecting succesfully to the OpenERP server I try this: cli = ResPartner.new(:name => 'manu') it works but after that, this: cli.ref = "TEST" doesn't work: D, [2011-05-05T12:15:41.244000 #6912] DEBUG -- : OOOR RPC: rpc_method: 'execute', db: disa, uid: 1, pass: #, obj: res.partner, method: read, *args: [[nil], ["ref"], "TEST", {}] This works in terminatooor1.2.1 without problems. Isn't this supposed to work? Have you changed something? BTW, the terminatooor2.0 file you uploaded a couple of days ago doesn't contain the jruby-ooor.jar file. why? |
Hello, was anyone able to find a solution to this? |
having the same issue with account.voucher.line. Is there some kind of issue with 3-named objects and the automagic classes created for them? |
I stumped upon the same problem again when creating a mrp.bom. This time I figured out the problem. Be sure that you assing the object.id to a one2many relations. If you by mistake assign the object and not the id you may get this error. |
Sorry, Of course I wanted to say many2one relations, not one2many... |
I'm trying to create an account.move.line in OOOR but I got tthe following error:
NoMethodError: undefined method
type!' for #<Ooor::OOORClient:0x265121> from (eval):1:in
call2'from org/jruby/RubyKernel.java:1087:in
eval' from file:/home/manu/Desktop/terminatooor1.3.1/jruby-ooor.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/ooor-1.5.1/lib/app/models/ooor_client.rb:30:in
call2'from file:/home/manu/Desktop/terminatooor1.3.1/jruby-ooor.jar!/META-INF/jruby.home/lib/ruby/1.8/xmlrpc/client.rb:410:in
call' from file:/home/manu/Desktop/terminatooor1.3.1/jruby-ooor.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/ooor-1.5.1/lib/app/models/open_object_resource.rb:135:in
rpc_execute_with_all'from file:/home/manu/Desktop/terminatooor1.3.1/jruby-ooor.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/ooor-1.5.1/lib/app/models/open_object_resource.rb:245:in
rpc_execute' from file:/home/manu/Desktop/terminatooor1.3.1/jruby-ooor.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/ooor-1.5.1/lib/app/models/open_object_resource.rb:314:in
create'from file:/home/manu/Desktop/terminatooor1.3.1/jruby-ooor.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/ooor-1.5.1/lib/app/models/open_object_resource.rb:309:in
save' from (irb):183:in
evaluate'from org/jruby/RubyKernel.java:1087:in
eval' from file:/home/manu/Desktop/terminatooor1.3.1/jruby-ooor.jar!/META-INF/jruby.home/lib/ruby/1.8/irb.rb:158:in
eval_input'from file:/home/manu/Desktop/terminatooor1.3.1/jruby-ooor.jar!/META-INF/jruby.home/lib/ruby/1.8/irb.rb:271:in
signal_status' from file:/home/manu/Desktop/terminatooor1.3.1/jruby-ooor.jar!/META-INF/jruby.home/lib/ruby/1.8/irb.rb:155:in
eval_input'from org/jruby/RubyKernel.java:1417:in
loop' from org/jruby/RubyKernel.java:1190:in
catch'from file:/home/manu/Desktop/terminatooor1.3.1/jruby-ooor.jar!/META-INF/jruby.home/lib/ruby/1.8/irb.rb:154:in
eval_input' from file:/home/manu/Desktop/terminatooor1.3.1/jruby-ooor.jar!/META-INF/jruby.home/lib/ruby/1.8/irb.rb:71:in
start'from org/jruby/RubyKernel.java:1190:in
catch' from file:/home/manu/Desktop/terminatooor1.3.1/jruby-ooor.jar!/META-INF/jruby.home/lib/ruby/1.8/irb.rb:70:in
start'from <script>:74:in `(root)'
My code is:
titulo = "Test account.move.line"
account_dest = "4100017"
account_move_id = 7
credit = 123.45
move = AccountMove.find(:first, :params => {:id => account_move_id })
apunte = AccountMoveLine.new(:name => titulo,
:account_id => AccountAccount.find(:first, :params => {:code => account_dest }),
:move_id => move,
:period_id => move.period_id,
:journal_id => move.journal_id,
:credit => credit
)
apunte.save
I can confirm that the move and the account are retrieved properly but save or create fail with that message. If I try to do the same for a ProductCategory it works. Any ideas?
The text was updated successfully, but these errors were encountered: