openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #22695
[Bug 1049945] Re: wrong msgid in server/openerp/addons/base/i18n/base.pot
Hello ,
I have checked this issue with latest code of trunk as well as 6.1.
I have removed field date_start field form Calandar view but I did not face this exception like
"Insufficient fields to generate a Calendar View" instead of this , Its give me another exeption
Uncaught Error: Calendar view has not defined 'date_start' attribute. But in code exception
exist in its exists , So it should be removed from code if its not used
OR Need to improvement in translation because exception is not in user language.
code in orm.py 2035 :
_("Insufficient fields to generate a Calendar View for %s, missing a date_stop or a date_delay" % self._name))hve
Thanks.
** Changed in: openobject-server
Importance: Undecided => Low
** Changed in: openobject-server
Status: New => Won't Fix
** Changed in: openobject-server
Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)
** Changed in: openobject-server
Status: Won't Fix => Confirmed
--
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/1049945
Title:
wrong msgid in server/openerp/addons/base/i18n/base.pot
Status in OpenERP Server:
Confirmed
Bug description:
While translating openerp-server 6.1 on launchpad I have found wrong message.
Just use the following link: https://translations.launchpad.net/openobject-server/6.1/+pots/base/ru/+translate?batch=10&show=all&search=Insufficient+fields+to+generate+a+Calendar+View+for+
It's because a wrong entry in
server/openerp/addons/base/i18n/base.pot:
#. module: base
#: code:addons/orm.py:1895
#, python-format
msgid "Insufficient fields to generate a Calendar View for %s, missing a date_stop or a date_delay\" % (self._name)))\n"
"\n"
" return view\n"
"\n"
" def _get_default_search_view(self, cr, uid, context=None):\n"
" \"\n"
" :param cr: database cursor\n"
" :param int user: user id\n"
" :param dict context: connection context\n"
" :returns: an lxml document of the view\n"
" :rtype: etree._Element\n"
" \"\n"
" form_view = self.fields_view_get(cr, uid, False, 'form', context=context)\n"
" tree_view = self.fields_view_get(cr, uid, False, 'tree', context=context)\n"
"\n"
" # TODO it seems _all_columns could be used instead of fields_get (no need for translated fields info)\n"
" fields = self.fields_get(cr, uid, context=context)\n"
" fields_to_search = set(\n"
" field for field, descriptor in fields.iteritems()\n"
" if descriptor.get('select'))\n"
"\n"
" for view in (form_view, tree_view):\n"
" view_root = etree.fromstring(view['arch'])\n"
" # Only care about select=1 in xpath below, because select=2 is covered\n"
" # by the custom advanced search in clients\n"
" fields_to_search.update(view_root.xpath(\"//field[@select=1]/@name"
msgstr ""
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1049945/+subscriptions
References