Odoo Help

Welcome!

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

0

add boolean field Odoo v8

By
Koffi KPONOUGLO
on 3/18/15, 8:12 AM 753 views

I am inheriting res.partner form view and add a booelan field but it show me error(this is not exist). But i do this same thing in tree view with no problem.

0
Demirel yakito
On 3/19/15, 3:47 AM

from openerp import models, fields, api, _

class check_model(models.Model):

_inherit="res.partner"

checkk=fields.Boolean('check')

----------------------------


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

<openerp>

<data>

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

<field name="name">Contrac</field>

<field name="model">res.partner</field>

<field name="inherit_id" ref="base.view_partner_form" />

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

<xpath expr="//div[@class='oe_title oe_left']/field[@name='category_id']" position="after">

<field name="checkk"/>

<label for="checkk"/>

</xpath>

</field>

</record>

<act_window name="contract Employee" res_model="res.partner" id="check_employee_action"/>

<menuitem name="check" id="check_employee_id" parent="attendance_root_sub_menu" action="check_employee_action">

</menuitem>

</data>

</openerp>

0

can you post the exact error here

paste your code.

Demirel yakito
on 3/19/15, 12:56 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/18/15, 8:12 AM
Seen: 753 times
Last updated: 3/19/15, 3:47 AM