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.
This question has been flagged
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>
can you post the exact error here
paste your code.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
|
5
Dec 25
|
50748 | ||
|
|
2
Apr 24
|
4603 | ||
|
|
3
Jun 23
|
10045 | ||
|
|
2
Jun 23
|
7158 | ||
|
|
3
Mar 23
|
12209 |