Skip to content
Snippets Groups Projects
  1. Sep 05, 2016
    • Olivier Dony's avatar
      [IMP] support v10 manifest file naming convention · 4339196e
      Olivier Dony authored
      - As of v10, manifest files should be named `__manifest__.py`
      - For backwards-compatibility, __openerp__.py manifest files
        will still be supported for the time being
      - Limited refactoring, to add support for the 2 different
        naming conventions
      - All textual references to __openerp_.py updated in
        documentation and examples
      4339196e
  2. Sep 02, 2016
  3. Aug 31, 2016
  4. Aug 23, 2016
  5. Aug 11, 2016
  6. Aug 10, 2016
    • Nicolas Martinelli's avatar
      [IMP] doc: translate consolidation label · 33750274
      Nicolas Martinelli authored
      The `consolidation_label` attribute is replaced by `string`. This way,
      the label is taken into account by the translation tools.
      
      This is the modification of the documentation regarding the Enterprise
      improvement.
      
      opw-683601
      33750274
    • Kim Huysmans's avatar
      [CLA] corporate signature for BeOpen · b868ae51
      Kim Huysmans authored
      Closes #13072
      b868ae51
    • Yannick Tivisse's avatar
      [FIX] report: Pass correctly the docids to render_html method · a3f83916
      Yannick Tivisse authored
      In the 'get_html' method, the report is using a custom model to render its html,
      we should use its own 'render_html' method to generate the report. During the
      module migration, we replaced
      'report_model.render_html(cr, uid, ids, data=data, context=context)'
      by
      'report_model.render_html(data=data)'
      
      The new API signature of 'get_html' is
      
          @api.model
          def get_html(self, docids, report_name, data=None):
      
      That way, 'render_html' doesn't receive docids anymore when called. We should do instead
      
          if report_model is not None:
              return report_model.browse(docids).render_html(data=data)
      
      As render_html is an api.multi method, this is all wrong too, because we'll send a
      browse record with the custom report model to the render_html method, to use the
      ids with 'self.ids' that are absolutely not corresponding to the report model but to
      to the record model we want to print (an invoice for example).
      
      In old API style we were sending a list of ids, but it's not correct to keep the same
      behavior by sending a browse record with only the ids relevant. We have also to
      change render_html method decorator to @api.model with a new signature
      
          @api.model
          def render_html(self, docids, data=None):
      
      And replace the call to render_html by
      
          if report_model is not None:
              return report_model.render_html(docids, data=data)
      
      In the case the report is printed from a wizard, this is sufficient because the ids
      are taken from the active_ids in context, or in data.
      
      In the case the report is printed from a simple action, we should replace the occurence
      of 'self.ids' (which doesn't mean anything) to 'docids'
      
      This fix doesn't solve the printing issues for the custom accounting reports, because
      the method get_pdf has been reimplemented in the module account_reports.
      a3f83916
  7. Aug 03, 2016
  8. Aug 01, 2016
  9. Jul 29, 2016
  10. Jul 27, 2016
  11. Jul 26, 2016
  12. Jul 25, 2016
  13. Jul 22, 2016
  14. Jul 05, 2016
  15. Jun 29, 2016
  16. Jun 24, 2016
  17. Jun 22, 2016
  18. Jun 17, 2016
  19. Jun 16, 2016
Loading