Community mailing list archives

community@mail.odoo.com

Re: New API One2Many inside One2Many

by
Pedro M. Baeza
- 06/15/2015 08:15:13

Maybe it's a question of the used views. Try to nest them.

Regards.

El 14/06/2015 02:33, "Alaney Kilson Dória" <alaney.doria@alien-group.com> escribió:

My problem is that I'm not able to  save the second o2m. Every time I put value I do save and close, is not saving the values.

On 06/13/2015 07:51 AM, Pedro Manuel Baeza Romero wrote:
<blockquote cite="mid:CACSANCC6HtGho4Twkpkw3KPnJoO93R0c2J9AUfHw=X2+bSdR+A@mail.gmail.com" type="cite">
Hi, Alaney,

There's no special problem with that structure. Check for example: https://github.com/OCA/commission/blob/8.0/sale_commission/models/account_invoice.py#L86. What is your problem?

You might also be interested in https://github.com/odoomrp/odoomrp-wip/tree/8.0/quality_control about the topic you are trying to develop.

Regards.

2015-06-13 1:37 GMT+02:00 Alaney Kilson Dória <alaney.doria@alien-group.com>:

Hi,

Has anyone worked already with new API with situation where you have o2m inside o2m?

I'm having the following issue, while trying to save information of a o2m inside o2m. I have a inspection model, that  can have many areas, each areas can have many inspection lines. I'm able to record the inspection, and the area, but I'm not able to record the inspection inside the area using the new API.

How can I achieve that with new API? This structure is very similar to the survey model where we have survey has o2m pages and pages that has o2m questions

Regards

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe