details: https://code.openbravo.com/erp/devel/pi/rev/5e9abd930a15
changeset: 13666:5e9abd930a15
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Tue Sep 06 19:41:27 2011 +0200
summary: Related to issue 18354
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewGridComponent.java
| 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r f70eb0ef28f6 -r 5e9abd930a15
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewGridComponent.java
---
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewGridComponent.java
Tue Sep 06 17:39:44 2011 +0200
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewGridComponent.java
Tue Sep 06 19:41:27 2011 +0200
@@ -398,7 +398,14 @@
if (property.isBoolean()) {
return false;
}
- return property.isMandatory();
+
+ if (field.getColumn() != null) {
+ // Taking value from AD definition, mandatoriness of a column can be
different in AD and in
+ // memory model, because memory model sets mandatoriness regarding
physical DB definition.
+ return field.getColumn().isMandatory();
+ } else {
+ return property.isMandatory();
+ }
}
public boolean isReadOnly() {
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits