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

I'm implementing a controller in a custom module for Odoo 18, and I want it to be importable on all possible platforms (including Odoo Online), so for that I'm following Write Importable Modules guide on Website Controllers.​

However, when I try to do something similar, the action is created and added to the DB (I checked the ir_act_server​ table), but the URL returns 404​, no page found.

I'll attach my data file code in case it has an issue:

```
<?xml version="1.0" encoding="UTF-8"?>

<odoo>

  <record id="efcx_base_controller" model="ir.actions.server">

    <field name="name">EFCX Base Controller</field>

    <field name="model_id" ref="base.model_ir_filters" />

    <field name="website_published">True</field>

    <field name="website_path">efcx</field>

    <field name="state">code</field>

    <field name="code"><![CDATA[response = request.render('efcx.connector')]]></field>

  </record>

</odoo>
```

Sorry that I can't share links or images, I need more karma for that :/

아바타
취소
관련 게시물 답글 화면 활동
4
8월 25
1306
1
6월 25
963
1
5월 25
915
1
5월 25
1044
1
4월 25
1503