[IMP] res.partner: wording+todo for name_create()
bzr revid: odo@openerp.com-20111220141204-bypzd7gvi1maveuw
This commit is contained in:
parent
bd056f3764
commit
07f2cdf4d2
|
@ -142,7 +142,11 @@ class res_partner(osv.osv):
|
|||
'color': fields.integer('Color Index'),
|
||||
}
|
||||
def name_create(self, cr, uid, name, context=None):
|
||||
raise osv.except_osv(_('Warning'), _("Quick create is desactivated for partners!"))
|
||||
# name_create disabled for usability reasons - users should always use the form view.
|
||||
# still possible by calling create() directly
|
||||
# TODO: remove this and disable name_create at view level when it becomes possible
|
||||
raise osv.except_osv(_('Warning'),
|
||||
_("Quick creation is not available for partners, please use the normal form"))
|
||||
|
||||
def _default_category(self, cr, uid, context=None):
|
||||
if context is None:
|
||||
|
@ -317,7 +321,11 @@ class res_partner_address(osv.osv):
|
|||
'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'res.partner.address', context=c),
|
||||
}
|
||||
def name_create(self, cr, uid, name, context=None):
|
||||
raise osv.except_osv(_('Warning'), _("Quick create is desactivated for addresses and contacts!"))
|
||||
# name_create disabled for usability reasons - users should always use the Partner form view.
|
||||
# still possible by calling create() directly
|
||||
# TODO: remove this and disable name_create at view level when it becomes possible
|
||||
raise osv.except_osv(_('Warning'),
|
||||
_("Quick creation is not available for addresses and contacts, please use the normal form"))
|
||||
|
||||
def name_get(self, cr, user, ids, context=None):
|
||||
if context is None:
|
||||
|
|
Loading…
Reference in New Issue