Odoo Ayuda


3 Respuestas
Pablo Guerra España
30/11/18 1:56

In the python file

from odoo import models,fields,api
class ResPartner(models.Model):
_inherit = 'res.partner'
postal_code = fileds.Integer(string="Postal Code")

In the xml file

    <record id="partner_inherit_postal" model="ir.ui.view">
    <field name="name">partner.postal.code.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='zip']" position="replace">
            <field name="postal_code"/>

You get the basic idea..

Realizar una pregunta
Keep Informed
1 seguidor(es)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now