Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
10861 Prikazi

So I'm trying to add fields to res.partner

from odoo import fields, models


class Partner(models.Model):
_inherit = 'res.partner'

s_num_client = fields.Char()


It's working fine on the dev branch but on staging I'm getting an error :

"column res_partner.s_num_client does not exist"

From other questions on the forum I've seen that I could resolve this problem by rstarting the server and then update the module base. Problem is I don't know how to restart the server on odoo.sh as I don't have sudo access.

Is there a way to restart it without sudo ? Could my problem come from something else ?

Avatar
Opusti
Avtor Best Answer

I solved my problem by updating my module from the shell :

odoo-bin -u mymodule



Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jun. 22
7343
1
apr. 25
1587
0
feb. 21
2463
1
dec. 20
4911
1
mar. 24
5211