Skip to content

Commit bf1c8fb

Browse files
committed
Add monetary type to prevent String interpretation
1 parent 7ccf319 commit bf1c8fb

File tree

1 file changed

+2
-0
lines changed
  • src/main/java/com/debortoliwines/odoo/api

1 file changed

+2
-0
lines changed

src/main/java/com/debortoliwines/odoo/api/Field.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ else if (fieldType.equalsIgnoreCase("boolean"))
124124
return FieldType.BOOLEAN;
125125
else if (fieldType.equalsIgnoreCase("float"))
126126
return FieldType.FLOAT;
127+
else if (fieldType.equalsIgnoreCase("monetary"))
128+
return FieldType.FLOAT;
127129
else if (fieldType.equalsIgnoreCase("datetime"))
128130
return FieldType.DATETIME;
129131
else if (fieldType.equalsIgnoreCase("date"))

0 commit comments

Comments
 (0)