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

I have this in my models:

# -*- coding: utf-8 -*-
from openerp import models, fields
 class event_event(models.Model):
 _inherit = ["event.event"]


testing = fields.Char('test') 



and this in my view:

<record model="ir.ui.view" id="res_partner_view">
     <field name="name">res.partner.form</field>
     <field name="model">res.partner</field>
     <field name="inherit_id" ref="base.view_partner_form"/>
     <field name="arch" type="xml">
     <xpath expr="//notebook[last()]" position="inside">
         <page string="My_New_Tab">
             <field name="testing"/>
         </page>
     </xpath>
     </field>
 </record>


Odoo is still giving me this:

Error details: Field `testing` does not exist

why?

아바타
취소
베스트 답변

This is because, your field "testing" lies in model 'event.event'
and you try to call it in 'res.partner'.

아바타
취소
관련 게시물 답글 화면 활동
Time field in odoo 해결 완료
3
3월 20
43333
0
4월 22
2730
3
4월 21
8938
1
2월 18
2624
1
8월 17
5971