~aw/openobject-client/5.0

« back to all changes in this revision

Viewing changes to bin/widget/model/field.py

  • Committer: Jay(Open ERP)
  • Author(s): RGA(OpenERP)
  • Date: 2010-07-15 10:04:17 UTC
  • Revision ID: jvo@tinyerp.com-20100715100417-n7qhenc6silmtdxn
[FIX] Binary field can contain default values now onwards

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
    def get(self, model, check_load=True, readonly=True, modified=False):
192
192
        self.__check_model(model)
193
193
        self.__check_load(model, modified, False)
 
194
        if not model.value.get(self.name, False):
 
195
            return model.value.get(self.get_size_name(), False) or False
194
196
        return model.value.get(self.name, False) or False
195
197
 
196
198
    def get_client(self, model):