Closed luiseevaquer closed 6 years ago
@lescobarvx may you please check this message, let's re-write that message please to say something like:
raise ValidationError(_(
"Asset policy is set to 'Never' for the account '%s %s' but "
"the account invoice line of description '%s'"
"have this asset category set: %s" % (
line.account_id.code, line.account_id.name,
line.name, line.[asset category name field])))
@lescobarvx for this case to, just a small change:
raise ValidationError(_( "Asset policy is set to 'Always' for the account '%s %s' but " "the asset category is missing in the account invoice " "line with description '%s'." % ( line.account_id.code, line.account_id.name, line.name)))
Functional tests 👍 please if this LGTY merge this asap @josemoralesp
dummy LODI: https://git.vauxoo.com/vauxoo/lodi/merge_requests/18