← Back to team overview

openerp-india team mailing list archive

[Bug 912358] Re: check length of names needed

 

Hello,

When OpenERP creates relations tables and FK for many2many osv.memory,
the generated names should not exceed the postgresql standard maximal
size.

Or we should define a limit for the length of the model (osv and
osv.memory) names but in a such case the server must check that at the
model initialization.

Thanks & Best Regards
Guewen

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

Title:
  check length of names needed

Status in OpenERP Server:
  New

Bug description:
  sometimes the names for relations can't be stored 
  example

  raising an error with modules to be installed which is hard to
  recover.

  example
  account_financial_report_webkit

  this works
  account_journal_account_report_general_ledger_webkit_rel_account_report_general_ledger_webkit_id_index
  but creates an index (cut off)
  account_journal_account_report_general_ledger_webkit_rel_accoun

  this fails
  account_journal_account_report_general_ledger_webkit_rel_account_journal_id_index

  obviously name length exceeded

  see attachment

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


References