Skip to content
Snippets Groups Projects
  1. Sep 15, 2017
  2. Sep 14, 2017
    • qsm-odoo's avatar
      [MERGE] web, *: add kanban column progressbar feature · 814304a2
      qsm-odoo authored
      * crm, project
      
      See last merge commit for detail.
      Work started by @pat-odoo and @stefanorigano
      814304a2
    • qsm-odoo's avatar
      [IMP] web, *: add kanban column progress bars · 33f9e90b
      qsm-odoo authored
      * crm, project
      
      Add a new feature which allows to put a progressbar in the kanban
      columns. The progressbar shows with the same color the amount of
      records whose value of a given field are the same in the column.
      It also indicate the sum of another given field or simply the total
      number of records. It also allows to subgroup the column content.
      
      To define a progressbar, add this as a direct child of the kanban
      arch:
      
      <progressbar field="<name of the field to use for subgroups>"
                   colors="{<one possible value for the above field>: <success, warning or danger>, ...}"
                   sum="<name of the field to sum or nothing to use total number of records>"/>
      
      Also:
      - Properly update record model data's parentID when moving a record
      - ...
      33f9e90b
    • qsm-odoo's avatar
      [REF] web: allow to perform a standalone read_group · 031dc1d9
      qsm-odoo authored
      Before this commit, asking the basic model for a 'read_group' operation
      was automatically followed by other operations to read groups content
      ('search_read', 'read', ...). This commit introduces an option to only
      perform a 'read_group'.
      031dc1d9
    • qsm-odoo's avatar
      [REF] web: do kanban group manual update before saving a record move · 76ad4e71
      qsm-odoo authored
      Before this commit, when a record was moved in a kanban view, the
      model saved the record change then manually updated the related groups
      (to avoid performing a read_group and reloading the whole view). This
      manual update can in fact be performed before the record save. This
      allows customizing the save operation in some cases where a real
      read_group would be needed.
      76ad4e71
    • qsm-odoo's avatar
      [REF] web: also use _confirmSave when a kanban record is 'manually' updated · 8b00628a
      qsm-odoo authored
      Normal flow for one record's changes to be saved is:
      
      0) (use `_setValue` for fields)
      1) `trigger_up('field_changed')`
      2) field manager mixin: `_onFieldChanged`
      3) model: apply changes and save
      4) controller: `_confirmSave`
      
      Kanban records are using another system for an unknown reason. This
      system was calling the right model functions but was not calling the
      controller `_confirmSave` and was instead re-coding it. This commit
      makes sure that `_confirmSave` is now called.
      8b00628a
    • qsm-odoo's avatar
      [REF] web: do not update groups model ID on read_group update · 5c6a7c9e
      qsm-odoo authored
      Performing a 'read_group' was creating new model group data which were
      saving some properties of the old model group data. As KanbanColumn
      widgets may not be updated in each case where we might want to re-do
      a (partial) 'read_group', this commit changes the system so that old
      model group data are simply updated with the useful new group data
      properties (instead of being entirely replaced).
      5c6a7c9e
    • qsm-odoo's avatar
      [REF] web: allow adding custom stuff in kanban header · f1370dfa
      qsm-odoo authored
      Previous kanban header was a div with `flex-flow: row nowrap`. So if
      someone tried to add some stuff in it, it will be forced to stay on
      the same row as the title and config buttons. This commit wraps these
      row elements in a new div to allow kanban header customization (this
      prepares for the kanban progressbars).
      f1370dfa
    • qsm-odoo's avatar
      8496a314
    • qsm-odoo's avatar
      [FIX] web: fix kanban alignments · 268b4a5a
      qsm-odoo authored
      Previous implementation contained negative paddings which are not valid
      values for browsers. This also prepares for the kanban progressbars.
      268b4a5a
    • Prakash Prajapati's avatar
      [IMP] account: generic PDF tax report for community. · 0c04aaa3
      Prakash Prajapati authored
      Was PR #19097. Was task 35751.
      0c04aaa3
    • Simon Lejeune's avatar
      [FIX] sale_stock: adapt to procurements removal · 5ec44017
      Simon Lejeune authored
      Now, the move is directly linked to the sale order line.
      5ec44017
    • Jérome Maes's avatar
      [MERGE] sale_expense: reinvoicing flow · 406ba5dc
      Jérome Maes authored
      This merge provides some changes in the
      expense flow.
      
      The most important one is to reinvoice
      an expense, employee set a SO on its expense
      and not an analytic anymore (since it
      requires special access group, ...)
      
      This commit also bring back the auto
      creation of analytic account when confirming
      SO if expense product is sold (since AA is
      required to generated analytic line of
      the operation).
      
      Some usability changes, and code cleaning
      are also available. See subcommits for details.
      406ba5dc
    • Jérome Maes's avatar
      [IMP] sale_expense: add test cases · c8e23968
      Jérome Maes authored
      c8e23968
    • Dhawal Limbuwala's avatar
      [IMP] hr_expense: new tour for user onboarding · 10a49701
      Dhawal Limbuwala authored
      Steps:
      - In home, expense app icon: "Go to the expense
      to attach a receipt"
      - In list, on create button : "Click here to create
      your first expense and add it to below."
      - In form, on save button : "Once your Expense is
      ready, you can save it."
      - In form, point out the chatter "Attach your
      receipt here."
      - In list, point out record selection: "Select
      expenses to submit them to your manager"
      - Point out "Action": "Click on Action Submit To
      Manager to submit selected expenses to your manager"
      - In expense sheet point out approve “Approve the
      sheet here. Tip: if you refuse, don’t forget to
      give the reason thanks to the hereunder message
      tool".
      10a49701
    • Jérome Maes's avatar
      [IMP] sale: create an ananlytic on SO confirmation when at least an expense product · 04dd0a2d
      Jérome Maes authored
      This behavior kind of disappear with 48ea59d4
      
      Moreover, since the Analytic Accounting is hidden, and
      a AA on expense is required to reinvoice product on
      SO, an AA should be on the SO as default value.
      04dd0a2d
    • Jérome Maes's avatar
      [IMP] sale_expense: reinvoice expense flow · 751330a8
      Jérome Maes authored
      The main change is we use SO and not analytic account
      anymore to reinvoice expense.
      
      When encoding an expense, each employee can directly
      set the SO to allow re-invoicing the expense to a
      client. Before this commit, this was done by determining
      the SO based on the Analytic Account (magically) on the
      expense.
      This solution is less confusing and more explicit for
      the end user.
      
      This commit also bring usability improvements to
      improve user experience during this flow:
      - better expense product view
      - access group on menu items
      - ...
      751330a8
    • Jérome Maes's avatar
      [IMP] hr_expense: link move line and expense for better tracking · 2dda108c
      Jérome Maes authored
      Each move line generated from an expense posting will
      be linked to the original expense. Some of those move
      lines are for taxes, one for the product, ... but they
      are all link to the same expense.
      This will allow better reporting, and allow to access
      the expense record from the move or its analytic lines
      for futher developement.
      2dda108c
    • Jérome Maes's avatar
      [IMP] sale: add name_get and name_search on SO · 84e96fe7
      Jérome Maes authored
      The goal is to have a name_get for SO returning
      a value like 'SO0002 - Michel F.'
      
      To avoid performance problem, the chosen solution
      is to add a context key 'sale_show_partner_name' to
      provide the partner name in name_get(), otherwise
      it will always add it and kill the performance.
      This solution is preferred over adding a stored
      related field for partner name (trigger recompute
      when partner is renamed for all SO is bad).
      84e96fe7
    • Simon Lejeune's avatar
      [REM] stock_calendar · 64c848a0
      Simon Lejeune authored
      64c848a0
    • Xavier Morel's avatar
      [FIX] website_form: custom field thing blows up in P3 · fccbe4ff
      Xavier Morel authored
      Custory reading seems to denote that field names are probably already
      text in the normal case, and thus should not need decoding? It only
      blows up in a tour so...
      fccbe4ff
    • Christophe Simonis's avatar
    • Mitali Patel's avatar
      [IMP] im_livechat: add copy to clipboard for the website live chat widget code · ad79fed2
      Mitali Patel authored
      This commit adds 2 buttons to copy directly the code needed to add the livechat
      in the website.
      ad79fed2
    • Monish Soni's avatar
    • Parth Patel's avatar
    • Xavier Morel's avatar
      [FIX] P3: metadata update · 4a878fa4
      Xavier Morel authored
      * gitignore pycache folders (apparently appear for some)
      * update xlwt requirement: 1.1.2 does not work with Python 3.6, 1.2 should work, 1.3 officially supports it
      4a878fa4
    • Mitali Patel's avatar
      [IMP] base: improve view rng validation (#17902) · 70942e4c
      Mitali Patel authored
      Split big universal RNG into view-specific schemas and moved rng based view validation
      into view_validation.py file.
      Adapt old views, and remove deprecated tag `version="7.0"` from views.
      70942e4c
    • Florent de Labarre's avatar
      [IMP] account: improve error message raised · 93d4da97
      Florent de Labarre authored
      Add the code/name of deprecated account on the error message when it is used.
      
      Was PR #19392. Courtesy of Florent de Labarre
      93d4da97
  3. Sep 13, 2017
Loading