Commit c4f267ba authored by Jérome Perrin's avatar Jérome Perrin

invoicing: use simpler condition for Invoice_isAdvanced

parent 832947e2
...@@ -2,7 +2,5 @@ ...@@ -2,7 +2,5 @@
If the business template 'erp5_advanced_invoicing' is installed, returns True. If the business template 'erp5_advanced_invoicing' is installed, returns True.
If it is not, returns False. If it is not, returns False.
""" """
for bt in context.portal_templates.getInstalledBusinessTemplateList(): return context.getPortalObject().portal_templates.getInstalledBusinessTemplate(
if bt.getTitle() == "erp5_advanced_invoicing": 'erp5_advanced_invoicing', strict=True) is not None
return True
return False
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment