In Odoo 9 Community version:
One2Many record gets created only when a value to any of M2O field is set. Until unless it is not set then odoo doesn't allow you to create that record.
For Instance: Consider the below example:
Line Object has only 3 fields (plus link to its parent object)
1. name (text - non mandatory)
2. qty (float - non mandatory)
3. comment (text - non mandatory)
Odoo did not allow me create this record.
Hence, now I brought another field to this view,
4. uom_id (M2O - non mandatory)
Now after I brought this new field into the view, the minute I supplied a value to this uom_id which happened to a M2O, a record got created.
So by looking at these scenarios, unless until you set any value to any M2O field present in the O2M, odoo does not create that record.
So what if my lines doesn't have any M2O type field? then I can never create a record, which is utterly nuisance.
I don't understand why this kind of behaviour is implied, Anybody faced same kind of situation, How do we handle this.
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
|Asked: 5/13/16, 5:52 AM|
|Seen: 318 times|
|Last updated: 6/21/16, 9:29 AM|