跳至内容
菜单
此问题已终结
2 回复
7234 查看

Displayed this message in OpenERP using Python "You cannot perform this operation. New Record Creation is not allowed for this object as this object is for reporting purpose."

Regards Thaaladiyan Balakrishnan

形象
丢弃
编写者 最佳答案

Hi, I have created my table name "custom_hr_daily_attendance_view_resource_allocation_detail" in PostgreSQL and also created Sequences "custom_hr_daily_attendance_view_resource_allocation_deta_id_seq".

message displayed this one "You cannot perform this operation. New Record Creation is not allowed for this object as this object is for reporting purpose".

Sequence created its wrongly.

I have find it this issues, i thing my idea reduce the length of character for my table name Tabel Name: custom_hr_daily_attendance_view_resource_allocation_det Sequece: custom_hr_daily_attendance_view_resource_allocation_det_id_seq

its working fine.

Regards Thaladiyan Balakrishnan

形象
丢弃
最佳答案

Hi,

I do have the same problem here with a table 'order_stock_line' inheriting from 'purchase_order_line' like follows : 

 

class order_stock_line(osv.osv):
    _name = "order.line.stock"
    _inherit = 'purchase.order.line'
    _table = 'order_stock_line'
    _columns = {
        
        'order_stock_id': fields.many2one('purchase.order.stock', 'Order Reference', select=True, ondelete='cascade'),
        'requisition_stock_id': fields.related('order_stock_id','requisition_stock_id',type='many2one',relation='purchase.requisition.stock',string='Requisition sur stock',store=True, select=True, readonly=True),
    }
order_stock_line()

 

Anytime I want to create a new instance of this object I do have the same message, and I don't know why.

Any comments ? Thanks in advance. ;)

形象
丢弃
相关帖文 回复 查看 活动
2
8月 24
1710
0
7月 24
1368
1
5月 24
1135
2
3月 23
1423
1
5月 25
559