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 non stored, computed field "is_expired" which is also readonly by default when the model is generated. So I get the error "{Odoo Server Error, 'sale.order' object attribute 'is_expired' is read-only}".
Adding "readonly=True" in order.sale.py doesn't solve this problem, it does however change the summary text to ReadOnly: False when generating the model again.
...
//var tableName = "sale.order";
//var modelResult = await odooClient.GetModelAsync(tableName);
//var model = OdooModelMapper.GetDotNetModel(tableName, modelResult.Value);
var saleOrderRepository = new OdooRepository<SaleOrderOdooModel>(config);
var saleOrders = await saleOrderRepository.Query()
.Where(x=>x.OrderNumber, OdooOperator.EqualsTo, orderNumber)
.ToListAsync();
...
Hello,
I have a non stored, computed field "is_expired" which is also readonly by default when the model is generated. So I get the error "{Odoo Server Error, 'sale.order' object attribute 'is_expired' is read-only}".
Adding "readonly=True" in order.sale.py doesn't solve this problem, it does however change the summary text to ReadOnly: False when generating the model again.
C# Model (generated):
Odoo sale_order.py file:
How can I make this work?
The text was updated successfully, but these errors were encountered: