OCA / vertical-travel

GNU Affero General Public License v3.0
33 stars 75 forks source link

Add rec_names to avoid key error #8

Closed bwrsandman closed 9 years ago

bwrsandman commented 9 years ago

Sometimes Odoo will try to find the name of an object if the name column doesn't exist and there is no _rec_name it will result in: KeyError: "Field 'name' does not exist in object 'browse_record(travel.rental.service, 1)'"

pedrobaeza commented 9 years ago

Although the names are not the best chosen, if you only try to avoid errors, it makes the trick.

:+1:

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.13%) when pulling 6a2854033a7fae531a642d795e1b748b208cf9a2 on savoirfairelinux:rec_name into 58730f66f5fecac90b898982d53cee9222c86eca on OCA:7.0.