Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1055 Переглядів

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!

Аватар
Відмінити

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

Related Posts Відповіді Переглядів Дія
4
бер. 24
3279
1
жовт. 23
5230
0
вер. 23
1708
0
квіт. 23
1766
1
черв. 22
6450