Open joseluiselp opened 7 years ago
Some things...
values.toDataRow()
does not actually create a record with relations. This is why I created pull request #328 that allows passing a model instance to that method so that you can access related records.
You are storing a OVarchar but the method is returning a boolean. This is possibly not what you want. And I'm not even sure if this works.
Don't use System.out in an Android app, use Log instead.
@dpr-odoo / @dso-odoo: This project needs some maintanence and the pull requests need some reviews. Please feel responsible for this project again. Thanks.
Hi @pathob thank you for help,
so with that, can i for exemple give stock_inventory_line for each stock_inventory with O2M relation. if yes please give me an example
I'm trying to save a local column given a condition inside any of the O2M records, using the following code inside a OModel class.
Both ways are throwing a java.lang.ClassCastException: java.util.ArrayList cannot be cast to com.odoo.core.orm.OO2MRecord. I'm using the latest version of your code, also tried with childs_id inside ResPartner model and I got the same results.