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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
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.