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>
      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
    • Thibault Delavallée's avatar
      [IMP] event(_*): slightly improve event type and questions demo data · c9746f11
      Thibault Delavallée authored
      Notably clean a bit existing event type (data and demo) and add some questions
      on conference event type.
      
      LINKS
      
      Task ID 2089156
      Community PR #42911
      c9746f11
    • Thibault Delavallée's avatar
      [FIX] website_event: copy website_menu when copying an event · e7c4e942
      Thibault Delavallée authored
      Currently website_menu boolean field is not copied when copying an event. It
      comes from an issue related to duplicating website menus. It seems real issue
      has been fixed at 1a8993e0 . Current copy=False on website_menu is a wrong fix
      due to some mismatch in forward-port. We can therefore copy website_menu
      again.
      
      LINKS
      
      Task ID 2089156
      Community PR odoo/odoo#42911
      e7c4e942
Loading