Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

I'm trying to inherit res.partner
and i'm trying to add new fields to my res.partner but error occur
This is the code:

from odoo import models , fields,api,_

class ResPartner(models.Model):
_inherit='res.partner'
is_student=fields.Boolean(string="Is Student?")
birth_date=fields.Date(string="Birth Date")
This is the error:

psycopg2.errors.UndefinedColumn: column res_partner.is_student does not exist

LINE 1: ...uid", "res_partner"."write_date" AS "write_date", "res_partn...








Avatar
Buang
Jawaban Terbai

When you modify 'res.partner' or 'res.users' model you need to update your module using command line:
odoo-bin -d my_db -u my_module_name

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Apr 23
4710
1
Mei 25
2663
3
Mei 24
2253
2
Apr 24
2062
3
Nov 24
4373