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

Python code:

class VmsVisitorsDetails(models.Model):
     _inherit = "res.partner"
     _name = "vms.visitors.details"

     name = fields.Char(required=True)



class VmsVisitorsSchedule(models.Model):
    _inherit = "res.partner"
    _name = "vms.visitor.schedule"

    name =fields.Many2one('vms.visitors.details',ondelete='cascade')
xml code:
<field name = "name" placeholder="Name" />
Error: ProgrammingError: missing FROM-clause entry for table "vms_visitors_details" LINE 3: WHERE ("vms_visitors_details"."active...
頭像
捨棄
最佳答案

Hi, 
Delete  from class VmsVisitorsDetails(models.Model):

     _inherit = "res.partner"
頭像
捨棄
作者

Thank you for your reply . I need some features from res.partner model that's why i have inherited res.partner is there any some other way to fix this error ? hope u will help me .

相關帖文 回覆 瀏覽次數 活動
0
9月 23
2101
0
9月 23
1834
2
6月 25
11324
6
10月 23
22198
3
3月 24
9590