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

hello im struggling to do this and i need it to resolve it soon, i would apreciate if someone could help me.

I have created a custom module named(x) in which i have created views for 4 iframes, all is working with a little problem, i need to display the iframes in the view by i clickling on the action buttons but it doesnt work if i dont save an id in the database using the default form save button before, i just need to delete this default form(save) bar and display my iframe directly... i would be very glad if someone can help me

code: 

(iframes.py) 

iframe_sellos = fields.Char("iframe_sellos", store = False, compute = "_iframe_sellos")


def _iframe_sellos(self):

for record in self:

usuario = record.env.uid

record.iframe_sellos = "URL" + str(usuario) 


View XML:

<odoo>

     <template id="assets_backend" name="herramientas_dis assets"         inherit_id="web.assets_backend">

        <xpath expr="." position="inside">

            <link href="/herramientas_dis/static/src/css/estilos.css" rel="stylesheet" type =                 "text/css"/>

            <link href="/herramientas_dis/static/src/css/estilos.scss" rel="stylesheet"                 type="text/scss"/>

            <script src="/herramientas_dis/static/src/js/herramientas.js"                 type="text/javascript"/>

        </xpath>

    </template>


<record id = "sellos_view" model = "ir.ui.view">

<field name = "name">Sellos</field>

<field name = "model">dis.herramientas</field>

<field name = "arch" type = "xml">

<group>

<field name = "iframe_sellos" string = "Sellos" widget = "iframe_sellos_widget" />

</group>

</field>

</record>

아바타
취소
관련 게시물 답글 화면 활동
2
7월 21
9225
1
5월 25
4137
3
12월 23
11576
1
11월 22
5004
1
3월 22
9906