Skip to content
Snippets Groups Projects
  1. Mar 11, 2020
  2. Mar 04, 2020
  3. Mar 06, 2020
  4. Mar 10, 2020
  5. Mar 05, 2020
  6. Mar 10, 2020
  7. Mar 09, 2020
  8. Mar 10, 2020
  9. Mar 09, 2020
  10. Mar 10, 2020
    • Odoo's Mergebot's avatar
      [MERGE] (website_)event(_*): move from onchange to editable stored fields · 397872a0
      Odoo's Mergebot authored
      
      PURPOSE
      
      Try to move from onchange / default_get to stored editable computed fields.
      Behavior should be the same (computed or set by user), with support of
      create / write / onchange field update without additional code.
      
      SPECIFICATIONS: GLOBAL RULES
      
      Update classic fields updated in some cases by onchange and/or default methods
      by fields with store=True, readonly=False. It means their value comes either
      from manual user input, either from trigger based computation.
      
      Remove onchange and default_get when possible, leading to an unique computation
      method and clearing fields definition.
      
      Also clean some fields definition inconsistencies, notably required fields
      that should instead be correctly computed or default that have no real meaning.
      
      SPECIFICATIONS: OTHER COMMITS
      
      Perform some light code cleaning before updating fields.
      
      Keep some explicit onchanges:
        * onchange partner on registration: required as UI flow is a bit different
          from automated code update;
        * onchange track boolean on event: allow to simplify fields dependencies;
      
      Rename event type default_registration_max to seats_max to match
      naming.
      
      Improve event type data and demo
      
      See sub commits for more details.
      
      LINKS
      
      Task ID 2089156
      Community PR #42911
      Upgrade PR odoo/upgrade#912
      
      Related: odoo/upgrade#912
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      Unverified
      397872a0
    • Thibault Delavallée's avatar
      [REF] event: rename event type default_registration_max to seats_max · 45f32c57
      Thibault Delavallée authored
      Purpose is to have matching names between event type and event to ease code
      understanding.
      
      LINKS
      
      Task ID 2089156
      Community PR odoo/odoo#42911
      Upgrade PR odoo/upgrade#912
      45f32c57
Loading