Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
10916 Ansichten

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
Verwerfen
Autor Beste Antwort

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

odoo-bin -u mymodule



Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Juni 22
7382
1
Apr. 25
1625
0
Feb. 21
2505
1
Dez. 20
4942
1
März 24
5245