Uploaded image for project: 'LIMS'
  1. LIMS
  2. LIMS-2002

Error creating Analysis Requests from batch.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.1.9
    • Component/s: Calculations
    • Labels:
      None
    • Sprint:
      Aug 2015

      Description

      We’re sorry, but there seems to be an error…

      Here is the full error message:

      Display traceback as text

      Traceback (innermost last):

      Module ZPublisher.Publish, line 138, in publish
      Module ZPublisher.mapply, line 77, in mapply
      Module ZPublisher.Publish, line 48, in call_object
      Module Products.CMFPlone.FactoryTool, line 473, in _call_
      Module ZPublisher.mapply, line 77, in mapply
      Module ZPublisher.Publish, line 48, in call_object
      Module bika.lims.browser.analysisrequest.add, line 219, in _call_
      Module Products.Five.browser.pagetemplatefile, line 125, in _call_
      Module Products.Five.browser.pagetemplatefile, line 59, in _call_
      Module zope.pagetemplate.pagetemplate, line 132, in pt_render
      Warning: Macro expansion failed
      Warning: <type 'exceptions.NameError'>: name 'fieldName' is not defined
      Module zope.pagetemplate.pagetemplate, line 240, in _call_
      Module zope.tal.talinterpreter, line 271, in _call_
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 888, in do_useMacro
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 533, in do_optTag_tal
      Module zope.tal.talinterpreter, line 518, in do_optTag
      Module zope.tal.talinterpreter, line 513, in no_tag
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 954, in do_defineSlot
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 533, in do_optTag_tal
      Module zope.tal.talinterpreter, line 518, in do_optTag
      Module zope.tal.talinterpreter, line 513, in no_tag
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 858, in do_defineMacro
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 954, in do_defineSlot
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 533, in do_optTag_tal
      Module zope.tal.talinterpreter, line 518, in do_optTag
      Module zope.tal.talinterpreter, line 513, in no_tag
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 954, in do_defineSlot
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 533, in do_optTag_tal
      Module zope.tal.talinterpreter, line 518, in do_optTag
      Module zope.tal.talinterpreter, line 513, in no_tag
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 946, in do_defineSlot
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 852, in do_condition
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 533, in do_optTag_tal
      Module zope.tal.talinterpreter, line 518, in do_optTag
      Module zope.tal.talinterpreter, line 513, in no_tag
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 888, in do_useMacro
      Module zope.tal.talinterpreter, line 343, in interpret
      Module zope.tal.talinterpreter, line 583, in do_setLocal_tal
      Module zope.tales.tales, line 696, in evaluate
      URL: /home/pau/dev/Espurna/bikalims/zinstance/src/bika.lims/bika/lims/browser/analysisrequest/templates/ar_add_by_col.pt
      Line 172, Column 8
      Expression: <PythonExpr (view.services_widget_content('field', ar_count=view.ar_count))>
      Names:

      {'args': (),
      'container': <AnalysisRequest at /Plone/batches/B-001/portal_factory/AnalysisRequest/Request new analyses used for /Plone/batches/B-001>,
      'context': <AnalysisRequest at /Plone/batches/B-001/portal_factory/AnalysisRequest/Request new analyses used for /Plone/batches/B-001>,
      'default': <object object at 0x7fa9aca28b60>,
      'here': <AnalysisRequest at /Plone/batches/B-001/portal_factory/AnalysisRequest/Request new analyses used for /Plone/batches/B-001>,
      'loop': {},
      'nothing': None,
      'options': {},
      'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xe2e7998>,
      'request': <HTTPRequest, URL=http://localhost:8090/Plone/batches/B-001/portal_factory/AnalysisRequest/Request new analyses/ar_add>,
      'root': <Application at >,
      'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x8f7fed0>,
      'traverse_subpath': [],
      'user': <PropertiedUser 'admin'>,
      'view': <Products.Five.metaclass.AnalysisRequestAddView object at 0xc92c750>,
      'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0xc76ff90>}

      Module zope.tales.pythonexpr, line 59, in _call_
      _traceback_info_: (view.services_widget_content('field', ar_count=view.ar_count))
      Module <string>, line 1, in <module>
      Module bika.lims.browser.analysisrequest.add, line 281, in services_widget_content
      Module bika.lims.browser.analysisrequest.add, line 112, in _init_
      Module bika.lims.browser.analysisrequest.add, line 173, in folderitems

      AttributeError: getBulkDiscount

        Activity

        Show
        Espurna Pau Soliva (Inactive) added a comment - https://github.com/bikalabs/Bika-LIMS/pull/1610

          People

          • Assignee:
            Espurna Pau Soliva (Inactive)
            Reporter:
            Espurna Pau Soliva (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Agile