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

Hi,
I want to create a automated action when product create/update to call third party api. For that i have created custom module in installed it odoo online and called in action like below.

product_model = env['sanity.product']

# Call your custom method

product_model.call_external_api(record)

But when i'm calling this i'm getting following error.

Traceback (most recent call last):
  File "/home/odoo/src/odoo/odoo/tools/safe_eval.py", line 392, in safe_eval
    return unsafe_eval(c, globals_dict, locals_dict)
  File "ir.actions.server(1333,)", line 1, in <module>
  File "/home/odoo/src/odoo/odoo/api.py", line 550, in __getitem__
    return self.registry[model_name](self, (), ())
  File "/home/odoo/src/odoo/odoo/modules/registry.py", line 186, in __getitem__
    return self.models[model_name]
KeyError: 'sanity.product'

I have checked that module is installed and active.

How can i fix this issue.

아바타
취소
관련 게시물 답글 화면 활동
0
9월 24
1188
0
5월 24
26
1
4월 24
4552
0
3월 24
1489
0
3월 24
1582