1. 22 Jul, 2020 6 commits
  2. 20 Jul, 2020 6 commits
    • Arnaud Fontaine's avatar
    • Arnaud Fontaine's avatar
      eecc736c
    • Arnaud Fontaine's avatar
      185f4abe
    • Arnaud Fontaine's avatar
    • Jérome Perrin's avatar
      configurator: use business template for categories · 1937c097
      Jérome Perrin authored
      Make `erp5_configurator_standard` use `erp5_configurator_standard_categories`.
      
      Since this is the business templates for standard (SME) configurator categories,
      it seems logical to install this business template when installing SME configuration.
      
      Before these changes, standard configurator was using a spreadsheet ( `standard_category.ods` ) to define the categories. Now this spreadsheet is almost empty, it only contain group and site that are custom and the configurated instance will install `erp5_configurator_standard_categories` business template.
      
      The main goal was to make generated configuration use unit conversion module instead
      of the obsolete quantity properties on quantity unit categories, but I thought it would make sense to use this `erp5_configurator_standard_categories` business template that is otherwise not used.
      
      See merge request nexedi/erp5!1172
      1937c097
    • Jérome Perrin's avatar
      ERP5OOo: don't fail exporting documents with control character · e4e12259
      Jérome Perrin authored
      if for some reason an ERP5 document has some control characters in title of
      description and is exported in ODS/ODT, the export will fail with an etree
      error like this:
      
          Exception:
            Module Products.CMFActivity.ActivityTool, line 356, in __call__
                result = method(*self.args, **self.kw)
            Module Products.ERP5Type.patches.PythonScript, line 179, in __call__
                return self._orig_bindAndExec(args, kw, None)
            Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
                return self._exec(bound_data, args, kw)
            Module Products.PythonScripts.PythonScript, line 344, in _exec
                result = f(*args, **kw)
            Module script, line 15, in Base_renderSimpleView
            - <PythonScript at /erp5/Base_renderSimpleView used for /erp5/sale_packing_list_module>
            - Line 15
                report_data = getattr(context, deferred_style_dialog_method)(**params)
            Module AccessControl.ZopeGuards, line 369, in guarded_apply
                return builtin_guarded_apply(func, args, kws)
            Module AccessControl.ZopeGuards, line 391, in builtin_guarded_apply
                return func(*arglist, **argdict)
            Module Products.ERP5Form.Form, line 705, in __call__
                return pt.pt_render(extra_context=extra_context)
            Module Products.ERP5OOo.OOoTemplate, line 484, in pt_render
                extra_context, request)
            Module Products.ERP5OOo.OOoTemplate, line 422, in renderIncludes
                xml_doc = etree.XML(text)
            Module lxml.etree, line 3192, in lxml.etree.XML (src/lxml/lxml.etree.c:78763)
            Module lxml.etree, line 1848, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:118341)
            Module lxml.etree, line 1736, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:117021)
            Module lxml.etree, line 1102, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:111265)
            Module lxml.etree, line 595, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:105109)
            Module lxml.etree, line 706, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:106817)
            Module lxml.etree, line 635, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:105671)
          XMLSyntaxError: PCDATA invalid Char value 20, line 228761, column 21 (line 228761)
      
      This is because XML does not accept the full range of characters, there are a
      few characters that are not allowed.
      
      To prevent these errors, we replace these invalid characters by an error
      character (�) before manipulating the XML with lxml.
      e4e12259
  3. 17 Jul, 2020 13 commits
  4. 16 Jul, 2020 5 commits
    • Lu Xu's avatar
      erp5_l10n_zh: update translation · 910b7672
      Lu Xu authored
      910b7672
    • Jérome Perrin's avatar
      Review PDM terms and report dialogs · d8ab59d1
      Jérome Perrin authored
      For PDM/Trade we use:
       - "Site" for node category
       - "Warehouse" for node
       - "Owner" for section category
       - "Owner" for section
      
      For Invoicing/Accounting this does not change.
      
      Also, since in PDM/Trade context we are sometimes only taking care of physical movements/quantities and not the ownership, make sure that:
       - "Site" is first in report dialogs
       - "Section Category" is not initialised from preference, so that reports show the quantities in a location regardless of the ownership
      
      See merge request !1202
      d8ab59d1
    • Jérome Perrin's avatar
      trade: review Valuation Method field on Inventory Report · de40440f
      Jérome Perrin authored
      - add an empty item to the list, so that user have to choose something. The empty item was missing here:
      
      ![image](/uploads/5be3e9d5acf1233270516c7463dbfdd4/image.png)
      
      If there's an empty item and we force user to choose, there will not be the problem that user can forget to select the good value and mistakenly generates for the Fifo because it's the first value.
      
      - translate values
      
      See merge request !1204
      de40440f
    • Jérome Perrin's avatar
      Translations for login and credential recovery pages · 6a883f93
      Jérome Perrin authored
      A few small fixes to form and page templates to allow their translations
      
      Missing messages in french translation
      
      See merge request !1201
      6a883f93
    • Jérome Perrin's avatar
      tests: make each SavedTestSuite instance use a different logfile · f99003ac
      Jérome Perrin authored
      See merge request !1198
      f99003ac
  5. 15 Jul, 2020 5 commits
  6. 14 Jul, 2020 1 commit
    • Jérome Perrin's avatar
      invoicing: "section category" fields in field library · 2df5287b
      Jérome Perrin authored
      Unlike trade and like accounting, for invoice we are using "Section Category"
      term for section category, it's no longer about "who is the owner of this
      stock" like in trade, but already "who is the entity" like in accounting
      2df5287b
  7. 13 Jul, 2020 4 commits