Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1085 Vizualizări

Buenas tardes! 


Quiero saber como puedo y si se puede crear campos personalizados para mi base de datos de contactos en odoo. Quiero importar los datos de mis clientes, sin embargo, por las condiciones de mi negocio, hay unos datos que me hacen falta en el preformato de odoo.

Gracias!!

Imagine profil
Abandonează

This app - https://apps.odoo.com/apps/modules/18.0/partner_custom_fields - probably will be helpful to your goals.

Cel mai bun răspuns

Hi,

Yes, you can export and import your custom field in contacts.

Example:

Python:

from odoo import fields, models


class ResPartners(models.Model):
"""Inheriting the res. partner for adding the KYC details
and corresponding states"""
_inherit = "res.partner"


x_custom_field = fields.Char(string="Custom Field")

XML

<record id="view_partner_form" model="ir.ui.view">
<field name="name">res.partner.view.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='vat']" position="before">
<field name="x_custom_field"/>
</xpath>
</field>
</record>

Result



Export the record:


Excel sheet:



Changed the value of the custom field 


Import the sheet



Hope it helps.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
feb. 25
1544
0
aug. 25
632
0
apr. 25
791
1
mar. 25
1076
2
mar. 25
1135