Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
7235 Weergaven

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
Annuleer
Auteur Beste antwoord

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
aug. 24
1710
0
jul. 24
1368
1
mei 24
1135
2
mrt. 23
1423
1
mei 25
559