Hi
I have a new module,
in the view, i want to get the customer field list
in the code python : i want to references from customer in the DB
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi
I have a new module,
in the view, i want to get the customer field list
in the code python : i want to references from customer in the DB
Thanks
Hi Amine,
are you askin for many2one field ?
,if yes means use this..
In ,py,
class res_partner(orm.Model):
_inherit = 'res.partner'
_columns = {
'partner_id':fields.many2one('res.partner'.Customer'),
}
In view,
<record model="ir.ui.view" id="base_view_partner_form_view__inherit">
<field name="name">res.partner.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<field name="partner_id"/>
</field>
</record>
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar
the information are not clear !