Odoo 도움말

0

0
2 응답
1
Aslam Up India
17. 4. 25. 오전 6:40

just Add this line to your .py file

import netsvc

0
Gowtham Kalyan India
17. 4. 25. 오전 7:48

Yes Mr.Aslam,

Thats already defined in my python file and now it throws,



Traceback (most recent call last):
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/http.py", line 544, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/http.py", line 581, in dispatch
    result = self._call_function(**self.params)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/http.py", line 317, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/http.py", line 314, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/http.py", line 810, in __call__
    return self.method(*args, **kw)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/http.py", line 410, in response_wrap
    response = f(*args, **kw)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/addons/web/controllers/main.py", line 955, in exec_workflow
    return request.session.exec_workflow(model, id, signal)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/http.py", line 1118, in exec_workflow
    r = self.proxy('object').exec_workflow(self.db, self.uid, self.password, model, signal, id)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/http.py", line 886, in proxy_method
    result = dispatch_rpc(self.service_name, method, args)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/http.py", line 115, in dispatch_rpc
    result = dispatch(method, params)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/service/model.py", line 37, in dispatch
    res = fn(db, uid, *params)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/service/model.py", line 188, in exec_workflow
    return exec_workflow_cr(cr, uid, obj, signal, *args)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/service/model.py", line 182, in exec_workflow_cr
    return execute_cr(cr, uid, obj, 'signal_workflow', [res_id], signal)[res_id]
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/service/model.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/models.py", line 3575, in signal_workflow
    result[res_id] = workflow.trg_validate(uid, self._name, res_id, signal, cr)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/workflow/__init__.py", line 85, in trg_validate
    return WorkflowService.new(cr, uid, res_type, res_id).validate(signal)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/workflow/service.py", line 91, in validate
    res2 = wi.validate(signal)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/workflow/instance.py", line 80, in validate
    wi.process(signal=signal, force_running=force_running, stack=stack)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/workflow/workitem.py", line 120, in process
    ok = self._split_test(activity['split_mode'], signal, stack)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/workflow/workitem.py", line 248, in _split_test
    self._join_test(t[0], t[1], stack)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/workflow/workitem.py", line 257, in _join_test
    WorkflowItem.create(self.session, self.record, activity, inst_id, stack=stack)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/workflow/workitem.py", line 95, in create
    workflow_item.process(stack=stack)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/workflow/workitem.py", line 116, in process
    if not self._execute(activity, stack):
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/workflow/workitem.py", line 187, in _execute
    id_new = self.wkf_expr_execute(activity)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/workflow/workitem.py", line 313, in wkf_expr_execute
    return self.wkf_expr_eval_expr(activity['action'])
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/workflow/workitem.py", line 291, in wkf_expr_eval_expr
    result = eval(line, env, nocopy=True)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/tools/safe_eval.py", line 314, in safe_eval
    return eval(c, globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/api.py", line 592, in new_api
    result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/addons/stock_indent/stock_indent.py", line 420, in action_picking_create
    picking_id = self._create_pickings_and_procurements(cr, uid, indent, indent.product_lines, None, context=context)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/addons/stock_indent/stock_indent.py", line 344, in _create_pickings_and_procurements
    picking_id = picking_obj.create(cr, uid, self._prepare_indent_picking(cr, uid, indent, context=context))
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/addons/stock/stock.py", line 720, in create
    return super(stock_picking, self).create(cr, user, vals, context)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/addons/mail/mail_thread.py", line 381, in create
    thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/api.py", line 372, in old_api
    result = method(recs, *args, **kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/models.py", line 4104, in create
    record = self.browse(self._create(old_vals))
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/api.py", line 508, in new_api
    result = method(self._model, cr, uid, *args, **old_kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/models.py", line 4248, in _create
    tuple([u[2] for u in updates if len(u) > 2])
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/sql_db.py", line 158, in wrapper
    return f(self, *args, **kwargs)
  File "/home/gowtham/Desktop/Construction Project/odoo-8.0/openerp/sql_db.py", line 234, in execute
    res = self._obj.execute(query, params)
ValueError: "null value in column "picking_type_id" violates not-null constraint
DETAIL:  Failing row contains (2, 2017/00002, 2017-04-27 09:40:36.318337, null, 1, null, 1, null, null, one, null, 1, null, draft, null, 1, null, 2017-04-27 09:40:36.318337, 2017-04-27 09:27:34, INT/00002, t, null, null, none, f).
" while evaluating
u'action_picking_create()'
질문하기
Keep Informed
1 팔로워
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now