Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

XML-RPC API / how to write stock.quant via "call_button: stock.transfer_details do_detaild_transfer"

By
Christian
on 2/12/15, 1:54 PM 1,132 views

Hi, I am using the xml-rpc-protocol (Odoo V8.0) to write into ODOO a lot of external sales <article and invoices> by an written delphi-daemon. My purpurse is that, I will have the sales-items of an external system within my ODOO. At the moment, I can successfully syncronise the <product.product>, and on the salespart all the functions as <stock.picking>, <stock.move>, <sale.order> <stock.transfer_detail> and so on.

But I am not able to write the Quant-Items. I dont find any Information, how to get the quants to calculate or write by XML-RPC? Is it done by "routes"?

Thru the Odoo-logging and the TimeStamp, I found out, the quats-Items are usually be created in the database exactly during the following rpc.request  (by the Odoo-web-Client). As I want to copy this call via XML-RPC, but I dont know, how?

2015-02-12 17:37:02,420 28263 DEBUG h2o-service openerp.http.rpc.request: call_button: stock.transfer_details do_detailed_transfer, [[4],
 {'active_id': 4,
  'active_ids': [4],
  'active_model': 'stock.picking',
  'contact_display': 'partner_address',
  'lang': 'de_DE',
  'search_disable_custom_filters': True,
  'tz': 'Europe/Vienna',
  'uid': 1}]
2015-02-12 17:37:02,619 28263 DEBUG h2o-service openerp.http.rpc.response: call_button: stock.transfer_details do_detailed_transfer: time:0.200s mem: 1012536k -> 1012536k (diff: 0k), False

How do I execute the "call_button: stock.transfer_details do_detaild_transfer" manually by XML-RPC? How is the syntax?

On server-side, I activate logging by <openerp-server --log-request --log-response>?

The debugging in the Web-Clients says a Method "do_detailed_transfer"?

Best regards

Christian

sorry folks.. didnt find a solution jet! I am now trying to look more into the routing&workflow feature of odoo.. May be I can do it by that. I will keep you informed... c.

Christian
on 2/13/15, 12:47 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/12/15, 1:54 PM
Seen: 1132 times
Last updated: 3/16/15, 8:10 AM