Uploaded image for project: 'Health'
  1. Health
  2. HEALTH-281

Error in Bika Setup › Insurance Companies > Invoices

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.7
    • Fix Version/s: None
    • Labels:
      None
    • Sprint:
      Bika Health 3.1.8

      Description

      If I have all the patients with insurance company selected, works fine, but if one do not have company selected in the detail of the insurance companies clicking in Invoices give me:

      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 bika.health.browser.insurancecompany.invoicefolder, line 73, in _call_
      Module bika.lims.browser.bika_listing, line 560, 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.KeyError'>: 'hidden_macro'
      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 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 742, in do_insertStructure_tal
      Module Products.PageTemplates.Expressions, line 218, in evaluateStructure
      Module zope.tales.tales, line 696, in evaluate
      URL: /usr/local/Plone/buildout-cache/eggs/bika.lims-3.1.8-py2.7.egg/bika/lims/browser/templates/bika_listing.pt
      Line 47, Column 1
      Expression: <PathExpr standard:u'view/contents_table'>
      Names:
      {'args': (),
      'container': <InsuranceCompany at /LabLims/bika_setup/bika_insurancecompanies/insurancecompany-2>,
      'context': <InsuranceCompany at /LabLims/bika_setup/bika_insurancecompanies/insurancecompany-2>,
      'default': <object object at 0xb74ca810>,
      'here': <InsuranceCompany at /LabLims/bika_setup/bika_insurancecompanies/insurancecompany-2>,
      'loop': {},
      'nothing': None,
      'options': {},
      'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xb0f8525c>,
      'request': <HTTPRequest, URL=http://172.17.3.179:8080/LabLims/bika_setup/bika_insurancecompanies/insurancecompany-2/invoicefolder>,
      'root': <Application at >,
      'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0xcc81cac>,
      'traverse_subpath': [],
      'user': <PropertiedUser 'admin'>,
      'view': <Products.Five.metaclass.InvoiceFolderView object at 0xafe43acc>,
      'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0xafe43e4c>}
      Module zope.tales.expressions, line 217, in _call_
      Module Products.PageTemplates.Expressions, line 155, in _eval
      Module Products.PageTemplates.Expressions, line 117, in render
      Module bika.lims.browser.bika_listing, line 786, in contents_table
      Module bika.lims.browser.bika_listing, line 875, in _init_
      Module bika.health.browser.insurancecompany.invoicefolder, line 95, in folderitems
      Module bika.lims.browser.bika_listing, line 657, in folderitems
      Module bika.health.browser.insurancecompany.invoicefolder, line 86, in isItemAllowed
      AttributeError: 'NoneType' object has no attribute 'UID'

        Activity

        Show
        Espurna Pau Soliva (Inactive) added a comment - https://github.com/Espurna/bika.health/commit/44f6ff8aca41219de2b4bbb656bda75cad61df85

          People

          • Assignee:
            Espurna Pau Soliva (Inactive)
            Reporter:
            sonofre29 Sérgio Onofre
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Agile