hi all,
have added a field zone_id (Many2one) res.partner model and also in view (code for both below), now I wants to add One2Many field which should appear in contacts view as editable tree. i can't figure it out how I can add this editable tree? please help. can I add in below files or have to create another for this purpose?
wants to add in below portion where other details are in tabs (pages) Contacts & Addresses, Sales & Purchase etc. are presented.
Note: below xml file code copied while searching from this help forum, answered by @subbarao
Link to topic: https://www.odoo.com/forum/help-1/adding-fields-to-res-partner-form-142759
class PartnerZone(models.Model):
_inherit = 'res.partner'
zone_id = fields.Many2one('tests.zones', string="Zone")
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="view_res_partner_form_inherit" model="ir.ui.view">
<field name="name">Tests Custom Fields</field>
<field name="model">res.partner</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='category_id']" position="after">
<field name="zone_id" string="Select Zone"/>
</xpath>
</field>
</record>
</odoo>
regards
why i failed to get answer? how i can ask this question to get help?