콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4322 화면

Hello All,

I have created a new model "my.project" which inherits from project.project model.

class my_project(models.Model):
    _name = "my.project"   
    _inherits = {'project.project':'project_id'}
   
   
    project_id = fields.Many2one('project.project', 'Project', ondelete="cascade", required=True)
    is_approved = fields.Boolean(string='Is Valid Project')
    manger_amt = fields.Float(string='Approval Amt')
    approval_note = fields.Char(string="Approval Note", size=32)

When I create a new record in the form and click on the Save button, I got this error:

File "/home/nirav/OpenERP/odoo/openerp/sql_db.py", line 235, in execute
    res = self._obj.execute(query, params)
ProgrammingError: invalid reference to FROM-clause entry for table "project_project"
LINE 2: ...project_id" = "my_project__project_id"."id") AND ("project_p...
                                                             ^
HINT:  Perhaps you meant to reference the table alias "my_project__project_id".

Thank you.

아바타
취소

Please check that the field project_id introduced by you is included in form view or not ? If not check after adding it.

작성자

I found one solution if we use other user like "demo" that time work find. But we use "Admin" that time is not working.

Check my suggestion.

작성자

Sorry Dear it is not working..

관련 게시물 답글 화면 활동
2
8월 25
2734
1
7월 25
1093
1
8월 25
1151
0
5월 25
1520
2
4월 25
3708