Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

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

By
Thaaladiyan Balakrishnan
on 3/13/14, 8:35 AM 2,022 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

0
Mehdi
On 5/19/14, 5:27 AM

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

0

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/13/14, 8:35 AM
Seen: 2022 times
Last updated: 3/16/15, 8:10 AM