跳至内容
菜单
此问题已终结
1011 查看

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

相关帖文 回复 查看 活动
4
3月 24
3224
1
10月 23
5170
0
9月 23
1663
0
4月 23
1682
1
6月 22
6393