跳至內容
選單
此問題已被標幟
1 回覆
10867 瀏覽次數

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 ?

頭像
捨棄
作者 最佳答案

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

odoo-bin -u mymodule



頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
6月 22
7353
1
4月 25
1592
0
2月 21
2467
1
12月 20
4915
1
3月 24
5211