Skip to content
Snippets Groups Projects
  1. Aug 08, 2019
    • qmo-odoo's avatar
      [REF] website_slides: replace slide.category by slide with is_category flag · b180c66a
      qmo-odoo authored
      PURPOSE
      
      Like already done for sale order, invoice of survey, purpose of this commit
      is to remove category model and replace by a flagged line (slide). It allows
      to easily reorder slides in an embedded list view.
      
      SPECIFICATIONS
      
      Instead of having a fully fledged slide.category model, slide.slide will serve
      that purpose with a is_category flag. This will allow to drag and drop slides
      and sections in the channel form view.
      
      This change had an impact on the way slides were added/sorted on the front-end.
      In fact, whenever a slide is added from the front-end, a resequencing of all
      the slides in the course has to be triggered.
      
      Category of a slide is now a computed field based on the sequence. Order
      of slides is based on sequence, with categories splitting the slide list based
      on is_category flag.
      
      In this commit tests are added. Some cleaning in tests is also performed to
      speedup a bit tests (savepointcase) and some cleaning / renaming to ease
      their understanding.
      
      Future commit will add JS necessary to manage slides in the section list view.
      
      LINKS
      
      TaskID: 1978731
      PR: #33255
      b180c66a
    • qmo-odoo's avatar
      [FIX] website_slides_survey: fix certified correctly replacing members in kanban view · 5f4c7c5a
      qmo-odoo authored
      SPECIFICATIONS
      
      Before this commit, installing survey would replace the number of done members
      by its label. Now the number of members who completed the course will be
      displayed correctly.
      
      LINKS
      
      Task 1978731
      PR #33255
      5f4c7c5a
    • qmo-odoo's avatar
      [FIX] website_slides: fix crashes on channel creation/edit · b37243b8
      qmo-odoo authored
      SPECIFICATIONS
      
      Before this commit, creating a channel would crash because of NewID key
      not existing in a dictionary for compute fields. A crash would also happen
      when deleting a slide from the channel form view.
      
      LINKS
      
      Task 1978731
      PR #33255
      b37243b8
    • qmo-odoo's avatar
      [FIX] website_forum: rename compute method for forum statistics · f5ddd6f1
      qmo-odoo authored
      SPECIFICATIONS
      
      This commit renames the compute method _compute_slides_statistics to
      _compute_forum_statistics. Purpose is to make read easier to understand
      by having meaningful names .
      
      LINKS
      
      Task 1978731
      PR #33255
      f5ddd6f1
    • Victor Feyens's avatar
      [IMP] sale_product_matrix : product UI · a461e5ea
      Victor Feyens authored
      
      closes odoo/odoo#35562
      
      Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
      a461e5ea
  2. Aug 07, 2019
  3. Aug 08, 2019
    • Robot Odoo's avatar
      [MERGE] sale: improvements in sales order UX · 3ddc2784
      Robot Odoo authored
      
      Back to Basics: Sales Order Drift
      
      Various improvements in the UX of the Sales application, notably regarding
      delivery and coupon. Other views/field labels/helper text changes as well.
      
      Task 2033229
      
      closes odoo/odoo#34963
      
      Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
      Unverified
      3ddc2784
    • Parth Choksi's avatar
      [IMP] delivery, sale: improvements in recomputing of shipping cost · 6173dd21
      Parth Choksi authored
      The "Recompute shipping cost" button will now reopen the wizard
      to be able to change carrier.
      
      When adding to the order, it will replace the current shipping cost.
      
      Relabelled the "Recompute shipping cost" to “Update Shipping Cost”
      and moved it to the right.
      
      Shipping method field will have radio widget and cost will be editable
      in the wizard.
      
      Also, it was not allowed to delete a delivery line when the order was
      confirmed ('sale' state). So here, as we want to allow user to change the
      carrier even after the order is confirmed, we have allowed delivery line
      to be deleted so that new line is added in place of that.
      
      task-2033229
      6173dd21
    • Parth Choksi's avatar
      [IMP] sale: changed default sequence prefix of order · 9f32b937
      Parth Choksi authored
      There is a confusion with SO when it comes to payment ref. 'SO001' is too
      visually to close to 'S0001'.
      
      And wrong payment ref don't help the user reconciling the payments.
      So, changed the prefix in default sequence of sales orders from 'SO' to 'S'.
      
      task-2033229
      9f32b937
    • Parth Choksi's avatar
      [IMP] sale: added currency field for fixed amount in invoice · 9dde9ff2
      Parth Choksi authored
      While creating the invoice order, if you choose the radio button of
      Down Payment(Fixed amount) then the field with currency will be shown
      and if you choose the Down Payment(Percentage) then the field with
      percentage symbol will be shown and evaluated respectively.
      
      task-2033229
      9dde9ff2
    • Parth Choksi's avatar
      [IMP] *_sale, sale, sale_*: improvements in form view · 5d7c0267
      Parth Choksi authored
      Sending a quotation by mail is really rare and the option is still
      available in dropdown menu. It is also confusing to see the document status
      changed while you just want to print as a draft sometimes. So the PRINT button
      is removed here.
      
      Only displayed UNLOCK/LOCK for 'sales managers' if the
      option “Lock confirmed orders” is activated in the settings.
      
      Removed the ability to open the payment terms via external button
      in edit mode
      
      Removed the left,right and top borders in the field of terms and condition.
      Kept only bottom border.
      
      Event and Event ticket will come after Product regardless of it being a
      template or the product.
      
      In the sale order's form view, made certain changes like shifting
      the positions, removing the field, adding title, keeping the field
      in debug mode.
      
      task-2033229
      5d7c0267
    • Parth Choksi's avatar
      [IMP] delivery, sale_coupon: layout changes · 3ee0d3b6
      Parth Choksi authored
      Changed positions of some buttons.
      Changed wordings.
      Some minor wording and layout improvements in wizard for coupon.
      
      task-2033229
      3ee0d3b6
  4. Aug 07, 2019
    • Mitali Patel's avatar
      [IMP] *: add visual indicator for exception activities in list and kanban · e3f327a6
      Mitali Patel authored
      
      The new visual indicator for exception activities has been added on all
      corresponding kanban and list views.
      
      A new filter "Exception Activities" has also been added in the
      corresponding search views.
      
      Task 1889379
      
      closes odoo/odoo#31839
      
      Signed-off-by: default avatarXavier Dollé (xdo) <xdo@odoo.com>
      e3f327a6
    • Mitali Patel's avatar
      [IMP] mail: better exception activity handling in kanban and tree · a54457e0
      Mitali Patel authored
      The purpose of this task is to add a visual indicator on kanban and list
      views when there is an exception activity on a record. To do so, two
      fields have been added on the activity mixin that determine if the record
      has an exception activity and its corresponding icon.
      
      When there's an exception activity, the next activity icon is different
      in the kanban and in the list view, the icon is displayed at the end of
      the column with no label.
      
      Prefetching all activity_type_ids in compute will allow to lessen
      queries (3 query for this compute) and cache may benefit to other
      mail.activity.mixin computed field, like activity_state in kanban view
      
      Task 1889379
      a54457e0
  5. Aug 08, 2019
  6. Aug 06, 2019
  7. Aug 07, 2019
    • mreficent's avatar
      [FIX] purchase_product_matrix: wrong category · 05cec953
      mreficent authored
      
      closes odoo/odoo#35543
      
      Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
      05cec953
    • alexbclay's avatar
      [FIX] sale_stock: fix typo in field label · d5e0b6ab
      alexbclay authored
      
      closes odoo/odoo#35507
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      d5e0b6ab
    • Alex Clay's avatar
      [CLA] Signature for alexbclay · 7f6c71df
      Alex Clay authored
      7f6c71df
    • Martin Trigaux's avatar
      [IMP] *: use res.lang methods · 85ee046b
      Martin Trigaux authored
      
      get_installed and _lang_get_id are both ormcached and correctly check
      the context
      
      Retrieving a res.lang from a code is a frequent action that can be
      achieved with _lang_get (cf previous commit).
      Using _lang_get ensure the active_test in the context is correct and
      is not poluted with another context propagation issue.
      odoo/odoo#35490 discussion is an example of bad context propagation
      
      closes odoo/odoo#35504
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      85ee046b
    • Martin Trigaux's avatar
      [IMP] base: no fallback on _lang_get_id · f5cd4832
      Martin Trigaux authored
      It was very misleading that
          self.env['res.lang']._lang_get('fr_FR')
      used to return any language if fr_FR was not active or did not exited
      
      There is a very frequent need to get a language from the code
      There is rarely a need to get any language
      f5cd4832
    • Lucas Lefèvre's avatar
      [FIX] hr: Allow user to see fields in profile · 86dfe52e
      Lucas Lefèvre authored
      
      Currently, a simple user no longer see fields protected
      by groups in his profile.
      
      When retreiving the view arch, `sudo()` is used to bypass
      the group protection.
      But since commit 1e6c3bec, `.sudo()` no longer changes the user.
      Hence, groups are still checked for the simple user.
      
      To fix the problem, the view arch should be retrieved with
      a user with all groups (SUPERUSER). This assumes that
      SUPERUSER has effectively all groups.
      
      closes odoo/odoo#35486
      
      Signed-off-by: default avatarRomain Libert (rli) <rli@odoo.com>
      86dfe52e
    • Lucas Lefèvre's avatar
      [FIX] hr: Allow to access employee profile · 9419d171
      Lucas Lefèvre authored
      The `private_email`, `last_check_in` and `last_check_in`
      fields were added by e9d98982 to the
      profile view but not in `SELF_READABLE_FIELDS`.
      A simple user was therefore not able to read the field and
      access his profile.
      
      To avoid any similar oversight in the future, a test is added
      to ensure a simple user is able to read all fields in
      the profile view.
      9419d171
    • Simon Lejeune's avatar
      [REF] stock_account: wording for additional layer · 58c14d0f
      Simon Lejeune authored
      
      task-59011
      
      closes odoo/odoo#35416
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      58c14d0f
    • Simon Lejeune's avatar
      [REF] stock, stock_account: no 'at date' on layers from picking · b65d4d4c
      Simon Lejeune authored
      When accessing the stock valuation layers of a done picking through the
      stat button "Valuation", do not display the inventory at date button. We
      guard the visibility of this button through a context key named
      "no_at_date".
      
      task-59011
      b65d4d4c
    • Simon Lejeune's avatar
      [REF] stock_landed_costs: create from vendor bill · 90c055cd
      Simon Lejeune authored
      Add a many2one on the landed cost to the vendor bill. Allow to create a
      landed cost from a vendor bill if the product is a service. It will use
      the price_subtotal of the account move line. Add a is_landed_costs_line
      to separate products of landed costs on the account move line. It's a
      checkbox. Ticking the checkbox will change the account of the account
      move if the company is in anglo saxon accounting.
      
      Tweak the accounts used by the landed costs so that everything is well
      balanced (see the added tests). Auto reconcile AML when possible.
      
      task-59011
      90c055cd
    • Simon Lejeune's avatar
      [REF] stock_landed_costs: landed cost special product · 24bca8fd
      Simon Lejeune authored
      We remove the special views/actions/menuitems for the "landed cost type"
      product. The user should now chose the split method on the landed costs
      directly. We still keep the landed_cost_ok field that will be used in
      the next commit integrating the landed costs with the vendor bill.
      
      task-59011
      24bca8fd
    • Simon Lejeune's avatar
      [REF] stock_landed_costs: default journal id · 98f974ca
      Simon Lejeune authored
      Set a default journal on the company, use it on the landed costs form.
      I was not able to directly set the value on the filed with a post init
      hook because the stock journal is generated a while after the landed
      costs installation in the l10n_generic_coa module.
      
      task-59011
      98f974ca
    • Simon Lejeune's avatar
      [REF] stock_landed_costs: usability changes · bc628b32
      Simon Lejeune authored
      - update label for account_journal_id
      - remove cost lines explanation
      - label of the LC name
      - remove former cost per unit
      - auto compute cost line when validating
      - rename former cost into original value
      - remove additional landed cost form the tree view
      - stock_landed_costs: rename cost line into additional costs
      - add a final value field (Lucky day: the field I had to add was already
        defined but not used.)
      - use monetary field
      - make weight and volume optional
      - journal entry visible only if posted
      - landed costs wording in settings
      - raise of no transfers are defined before validating
      
      task-59011
      bc628b32
    • Simon Lejeune's avatar
      [REF] stock_landed_costs: cost and adjusment lines in a notebook · b8f963a5
      Simon Lejeune authored
      We do this in a separate commit so that the diff of the next ones will
      still be readable.
      
      task-59011
      b8f963a5
    • David Arnold's avatar
      [IMP] base: use en_US writing · aee0da7d
      David Arnold authored
      
      While licence is technically correct, it is not used in America
      Change only the label as the key is used at other places (e.g. app store)
      
      closes odoo/odoo#35350
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      aee0da7d
    • Naglis Jonaitis's avatar
      [IMP] website_{event,forum,rating}: remove ignored attributes · 707f4673
      Naglis Jonaitis authored
      
      Remove or move significant HTML attributes on <t> tags
      
      `<t>` is not rendered, so we lose `class`, `role`, `itemprop`, `content`
      etc. significant HTML attributes.
      
      In other cases, the `<a>` tag can contain redundant HTML attributes,
      which don't make sense (e.g. `href="#"`).
      
      closes odoo/odoo#35391
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      707f4673
    • Robot Odoo's avatar
      [ADD] sale/purchase : Product Matrix Configurator · 388b38af
      Robot Odoo authored
      
      This feature branch adds a new way to add products to SOs/POs: the grid (or matrix) entry.
      
      When selecting a product template compatible with this mode, a dialog will open with a matrix of
      available variants and a number input for each of those. Once all quantities are input, closing the
      dialog will generate the lines for all the selected variants.
      
      When more than 2 attributes are present, the matrix is organized by using the first attribute values
      as X-coordinates and will then combine all other attribute combinations as Y-coordinates. This
      allows to have potentially huge matrices, although this could be difficult to visually parse by users.
      
      If the feature is enabled (the feature is installed independently in sale and/or purchase), this will be
      the default entry mode for products in purchase orders when multiple variants are available - it's an
      all or nothing situation. In sales orders, the product template can be configured to switch from the
      product configurator mode (to select a single variant when adding the product) to the grid mode (to
      select multiple variants at once).
      
      The grid can be re-opened from an existing line (or by creating a new line with the same product)
      and will repopulate with the current quantities of the order, allowing quick massive edition of the
      complete set of lines for that product.
      
      Task 1871560
      
      closes odoo/odoo#34746
      
      Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
      Unverified
      388b38af
    • Robot Odoo's avatar
      [IMP] payment_authorize: integration with accept js · 33c3b4d6
      Robot Odoo authored
      
      - Integrate authorize.net with new accept.js
      - convert XML format requests to JSON
      
      Task 2025821
      
      closes odoo/odoo#34733
      
      Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
      Unverified
      33c3b4d6
    • Victor Feyens's avatar
    • Victor Feyens's avatar
      [ADD] (sale/purchase)_product_matrix · e6c2975e
      Victor Feyens authored
      e6c2975e
    • Victor Feyens's avatar
Loading