[IMP] in partner form view, allow to quick create titles (shortcut not required)

bzr revid: rco@openerp.com-20120719090300-suhzk3s6a1zaqico
This commit is contained in:
Raphael Collet
2012-07-19 11:03:00 +02:00
parent 26665b7743
commit 50267e2995
2 changed files with 5 additions and 3 deletions
+5 -2
View File
@@ -103,12 +103,15 @@ class res_partner_category(osv.osv):
class res_partner_title(osv.osv):
_name = 'res.partner.title'
_order = 'name'
_columns = {
'name': fields.char('Title', required=True, size=46, translate=True),
'shortcut': fields.char('Abbreviation', required=True, size=16, translate=True),
'shortcut': fields.char('Abbreviation', size=16, translate=True),
'domain': fields.selection([('partner','Partner'),('contact','Contact')], 'Domain', required=True, size=24)
}
_order = 'name'
_defaults = {
'domain': 'contact',
}
def _lang_get(self, cr, uid, context=None):
lang_pool = self.pool.get('res.lang')
@@ -31,7 +31,6 @@
<group col="4">
<field name="name"/>
<field name="shortcut"/>
<field name="domain"/>
</group>
</form>
</field>