wrong msgid in server/openerp/addons/base/i18n/base.pot

Bug #1049945 reported by Chertykov Denis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D

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 ""

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

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:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Won't Fix
status: Won't Fix → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.