This question has been flagged
2 Replies
6418 Views

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

Avatar
Discard
Author Best Answer

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

Avatar
Discard
Best Answer

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. ;)

Avatar
Discard