Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I got to this error showing as
Odoo Warning - Validation Error
deletion: you may be trying to delete a record while other records still reference it-
creation/update: a mandatory field is not correctly set
[object with reference: cname - cname]
name = fields.Char()
pname= fields.Many2one('product.product',string= 'Product Name')
cname= fields.Many2many('res.partner', string= 'Customer Name')
_name = 'specification.table'
spec= fields.Many2one('product.specification',string= 'Specification')
parameter= fields.Char(string= 'Parameters')
perorval= fields.Float(string= '% or VALUE')
min= fields.Float(string= 'STD. Min.')
max= fields.Float(string= 'STD. Max.')
remarks= fields.Text(string= 'Remarks')
Thanks in Advance
You try: cname= fields.Many2many('res.partner', 'product_specification_partner_tb_rel', 'product_specification_id', 'partner_id', string= 'Customer Name').
Many2many will create table product_specification_partner_tb_rel with key product_specification_id, partner_id
Hope it will helps you.
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 platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/4/16, 5:26 AM|
|Seen: 480 times|
|Last updated: 8/4/16, 8:57 AM|