Hi,

It seems to me that the right fix is to correct fields.function to
properly apply the size limit that was set on it when the type is
"char". In this case the ref is a fields.related which is also a
fields.function that is stored, so this is the source of the bug. It
will also avoid hardcoding a limit in the code while the one of the
model should be used.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1208074

Title:
  [account][model hr.expense.expense][def action_receipt_create] ref
  should be trimmed to 64 chars

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  [account][model hr.expense.expense][def action_receipt_create] ref
  should be trimmed to 64 chars

  http://bazaar.launchpad.net/~openerp/openobject-
  addons/7.0/view/head:/hr_expense/hr_expense.py#L261

  instead of:

                      'ref': exp.name

  it should be:

                      'ref': exp.name[64:]

  not doing so will cause errors when creating the account.move.line
  records to account.move.

  
  Regards.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1208074/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to