콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4331 화면

Hello,

i want to validate stock.picking with call button_validate() function through API in postman, but when i call that function, in postman always "Sending request... " and Odoo did not give any response. Below is my python code:

so_obj = request.env['sale.order'].search(
[('x_studio_agsi_order_id', '=', new_delivery_order['order_id'])])

for picking in so_obj.picking_ids:
print(picking.state)
picking.action_assign()
for move_line in picking.move_line_ids_without_package:
move_line.qty_done = move_line.product_uom_qty

picking.button_validate()

How to solve this? Why am I not getting a response? and are there any parameter settings in the odoo.conf file? Below is my odoo.conf file:

[options]
; This is the password that allows database operations:
admin_passwd = admin
db_host = localhost
db_port = 54377
db_user = odoo14e
db_password = False
;db_template = template1
addons_path = /opt/odoo14/addons/,/opt/odoo14-e/odoo/addons/
xmlrpc_port = 8014
limit_time_cpu = 1200
limit_time_real = 100000

Please help and hint.
Thank you very much.

아바타
취소
베스트 답변

Hi,

Seems you are directly calling the ORM methods inside the postman, nice if you can share the full file, mainly to see the import used in the file.


You can try using any of the following:

  1. Odoo XMLRPC : Connect Odoo With External Applications

  2. Odoo JSONRPC

  3. OdooRPC: Connect To Odoo Database and Perform All Operations


Thanks

아바타
취소
관련 게시물 답글 화면 활동
1
7월 25
2259
2
7월 25
7742
2
7월 25
4165
2
7월 25
3942
2
6월 25
2542