Ir al contenido
Menú
Se marcó esta pregunta
1002 Vistas

Hi everyone,

I'm developing my custom module, and everything works fine until I try to inherit from res.partner.

As soon as I attempt to inherit from res.partner, the build tests fail immediately with errors, as shown here

However, when I update my module directly from Odoo.sh, the new field appears correctly in the res.partner model. But if I push my code, the resulting build test are failing (red status).

Here is my res_partner.py file:


from odoo import models, fields class ResPartner(models.Model): _inherit = 'res.partner' x_octave_create_date = fields.Date( string="Date de création (Octave)" ) x_octave_write_date = fields.Date( string="Date de modification (Octave)" )

And my __manifest__.py file contains:


'depends': ['base', 'contacts'],

Am I doing something wrong?

If I inherit another model, I don't have this issue.

Any ideas on what might be causing this?

Thanks in advance for your help!

Avatar
Descartar

Hello Félicien  

I tried to do this in my local machine and it worked just fine

Please share with us the error you get and the whole code

Publicaciones relacionadas Respuestas Vistas Actividad
4
mar 24
3219
1
oct 23
5164
0
sept 23
1650
0
abr 23
1681
1
jun 22
6387