You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Many To Many Relation between 2 tables. Inserting a relation is reflected correctly in the SQLite database but when i remove a Relation between the 2 tables its not updated on my Android device in the database. On the Odoo server the database is updated correctly.
Anyone has the same issue?
class HtsProductOptionsGroups(models.Model):
_name = 'product.options_groups'
name = fields.Char('Name', required=True)
set_product_option_id = fields.Many2many('product.options',
relation='product_options_product_options_groups_rel',
column1='product_option_group_id',
column2='product_option_id',
string='Products Options')
On Odoo mobile framework:
public class ProductOptionsGroups extends OModel {
public static final String AUTHORITY =
"com.odoo.core.provider.content.sync.product_options_groups";
OColumn name = new OColumn("Name", OVarchar.class).setSize(100).setRequired();
OColumn set_product_option_id = new OColumn("Products Options", ProductOptions.class, OColumn.RelationType.ManyToMany)
.setRelBaseColumn("product_option_group_id")
.setRelRelationColumn("product_option_id")
.setRelTableName("product_options_product_options_groups_rel");
public class ProductOptions extends OModel {
public static final String AUTHORITY =
"com.odoo.core.provider.content.sync.product_options";
OColumn htspos_id = new OColumn("htspos_id", OInteger.class).setDefaultValue(0);
OColumn name = new OColumn("Name", OVarchar.class).setSize(100).setRequired();OBoolean.class).setDefaultValue(true);
OColumn list_price = new OColumn("list_price", OFloat.class);
The text was updated successfully, but these errors were encountered:
I have a Many To Many Relation between 2 tables. Inserting a relation is reflected correctly in the SQLite database but when i remove a Relation between the 2 tables its not updated on my Android device in the database. On the Odoo server the database is updated correctly.
Anyone has the same issue?
My Odoo ORM:
On Odoo mobile framework:
The text was updated successfully, but these errors were encountered: