~jfb-tempo-consulting/unifield-web/US-4786

« back to all changes in this revision

Viewing changes to addons/openerp/widgets/form/_form.py

  • Committer: jf
  • Date: 2018-05-17 08:44:27 UTC
  • mfrom: (4912.5.1 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20180517084427-s1y9gnqg51de0k6t
Us-3669 [IMP] DI: add the button to make the refund possible when accessing a DI from a register, new att force_editable

lp:~julie-w/unifield-web/US-3669

Show diffs side-by-side

added added

removed removed

Lines of Context:
921
921
                    attrs['force_readonly'] = True
922
922
                    attrs['ro_by_trans'] = True
923
923
 
924
 
            if self.noteditable:
 
924
            if self.noteditable and not attrs.get('force_editable'):
925
925
                attrs['readonly'] = True
926
926
                attrs['force_readonly'] = True
927
927
                if 'attrs' in attrs and attrs['attrs'] and 'readonly' in attrs['attrs']: