Odoo Ayuda

0

0
3 Respuestas
1
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


<odoo>
    <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"/>
        <xpath>
    </field>
</record>
</odoo>

You get the basic idea..


Realizar una pregunta
Writer
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.

Register
Odoo Training Center

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

Test it now