1. 03 May, 2016 2 commits
    • Georgios Dagkakis's avatar
      testBusinessTemplateTwoFileExport: Add a test for output_encoding preservation. · 1a85f076
      Georgios Dagkakis authored
      Installation of business template may change the encoding of a document to utf-8.
      Nonetheless, export should preserve the original encoding.
      This test creates a ZopePageTemplate with output_encoding of 'iso-8859-15'
      and checks that while installed version becomes 'utf-8', when exported it
      keeps the original one.
      1a85f076
    • Georgios Dagkakis's avatar
      BusinessTemplate: don't export in a different file for missing attribute case. · 94508ae2
      Georgios Dagkakis authored
      Only xml metadata should be exported in this case.
      In the previous version the check of hasattr could pass
      if attribute is defined as an attribute of the class and not of the instance,
      causing also AttributeError later when the code tries to invoke delattr.
      
      Also, restructure export. First try to delete property and then
      export as separate file.
      
      Test also added.
      94508ae2
  2. 02 May, 2016 3 commits
  3. 29 Apr, 2016 3 commits
  4. 28 Apr, 2016 6 commits
  5. 27 Apr, 2016 8 commits
  6. 26 Apr, 2016 5 commits
  7. 25 Apr, 2016 3 commits
  8. 22 Apr, 2016 6 commits
  9. 21 Apr, 2016 4 commits
    • Sebastien Robin's avatar
      mrp: specialise on lines, only look for transformation, not for business process · e9497bba
      Sebastien Robin authored
      business process could be acquired from parent, here we only want to select a transformation
      e9497bba
    • Sebastien Robin's avatar
      mrp: consumption view on production orders, use getAggregatedAmountList and... · e0f2a5a8
      Sebastien Robin authored
      mrp: consumption view on production orders, use getAggregatedAmountList and avoid displaying unused variation
      
      Previous code was looking to transformation and checking object inside, but now we have
      getAggregatedAmountList which is able to greatly do this job.
      
      Also, do not show stock of variations we are not consuming, it could be very disturbing.
      e0f2a5a8
    • Vincent Pelletier's avatar
      SimulationTool: Make use of stock.is_{input|asset_increase} when available. · a1b9d412
      Vincent Pelletier authored
      Also, remove orginal _getOmitQuery which was dead code, and merge
      _buildOmitQuery into its only remaining caller.
      Also, factorise two pieces of code generating omit queries.
      a1b9d412
    • Vincent Pelletier's avatar
      AccountModule_getAccountListForTrialBalance: Improve performance. · 129d7dea
      Vincent Pelletier authored
      - Correctly ignore parent_portal_type condition when all possible
        portal types are listed.
        This typically saves one stock-catalog join.
      - Expand node_category_uid into lists of node_uids.
        This saves one very costly stock-catalog join, as nodes member of given
        category should typically be the minority, inciting MySQL query optimiser
        to use the index materialising this join, preventing use of actual stock
        indexes.
        As there should be few nodes involved in accounting reports, listing
        them all and passing them to queries should not matter much.
      
      Also, add support for src__ parameter.
      Also, assorted coding style improvements, changes and code factorisation.
      129d7dea