Skip to content
Snippets Groups Projects
  1. Sep 11, 2016
  2. Sep 09, 2016
  3. Sep 08, 2016
  4. Sep 07, 2016
    • Nicolas Martinelli's avatar
      [FIX] point_of_sale: round globally · a666cd06
      Nicolas Martinelli authored
      Commit 06754b32 brings an inconsistency between the PoS frontend, the
      pos_order and the account_invoice tax calculation. Part of the commit is
      correct since it corrects the matching between the `compute_all`
      methods, however.
      
      opw-680891
      a666cd06
    • qsm-odoo's avatar
      [FIX] website: properly allow to remove slide from banner snippet · e696def3
      qsm-odoo authored
      Removing a slide was buggy :
      * Removing the last slide left the slide handles (and the user had to
      click on remove slide again)
      * There was an ugly delay before the removal
      * Changing the bg image of a slide was not possible anymore once one
      slide was removed
      * ...
      e696def3
    • Denis Ledoux's avatar
      [FIX] account: improve usability journal refund sequence · d94c4495
      Denis Ledoux authored
      WHen checking `Dedicated Refund Sequence` in a
      sale / purchase journal,
      the field `Refund Entry Sequence` must be filled with a sequence.
      
      Otherwise, later, when issuing a refund invoice, it won't be able
      to generate the number of the refund invoice as it won't be able
      to find the sequence to use.
      
      opw-687839
      d94c4495
    • Nicolas Martinelli's avatar
      [FIX] point_of_sale: tax calculation · 06754b32
      Nicolas Martinelli authored
      Inconsistencies can arise between the tax calculation performed in the
      PoS and in the backend (e.g. in a SO). For example:
      - Unit price: 9.479
      - Tax: excluded, 5.5 %
      - Buy 5 units
      - Round globally
      
      In the backend, the result is 47.40 + 2.60 = 50.00
      In the PoS, the result is 47.40 + 2.61 = 50.01
      
      We make the PoS apply the same logic than in the backend. First, at the
      level of the `compute_all` method, especially to use the appropriate
      rounding precision before starting the calculation (so we move the
      rounding of `total_excluded` after the rounding precision adjustment).
      Then, by calculating the taxes amount as the difference between
      `priceWithTax` with `priceWithoutTax`. This is mandatory since they
      contain the result of `compute_all` in which the rounding logic has
      already been applied.
      
      opw-680891
      06754b32
  5. Sep 06, 2016
    • Pierre Masereel's avatar
      [FIX] web, web-kanban: update dataset size at record's drop in a column · 8e65b57d
      Pierre Masereel authored
      When we drag and drop a record in a folded column, the number of elements
      in this column displayed  in the column title is not updated.
      This issue is present because when a record is droped in a column
      its id is not added to the dataset of its new column.
      
      To fix this, we had to add the id of the record in the dataset, and
      override the method 'add_ids' in 'DataSetSearch' to have the size
      of the dataset equal to the number of ids in it. We have replicated
      the behaviour of the function 'remove_ids' in the new function 'add_ids'.
      8e65b57d
    • Simon Lejeune's avatar
      [FIX] web: kanban: click on action in a vignette · 826ee793
      Simon Lejeune authored
      It is possible to put a clickable object in a vignette that opens
      an action, for example the kanban_status class used in the CRM
      pipeline. This thing presents an issue as it opens a wizard, but
      when the wizard is closed the vignette is not reloaded.
      
      When you click on this item, it will go through `on_kanban_action_clicked`
      in kanban_record.js that will trigger up a `kanban_do_action` custom
      event. The kanban_view have an handler for this custom event and
      will call the `do_execute_action` method defined on the view.
      
      This method can take a callback as its last argument that will run
      when the wizard is closed. Before rev ae583ba1, the behavior was
      to reload the entire kanban view but this rev tries to only reload
      the kanban record. Unfortunately, it didn't use the argument
      in `do_execute_action` but in a then of this method. So it
      didn't work. This commit put the onclose callback at its right place.
      826ee793
    • Denis Ledoux's avatar
      [FIX] link_tracker: fix link tracer when no geoip in session · f19d179b
      Denis Ledoux authored
      The `geoip` is not always defined in the session,
      and therefore one needs to check it's defined before
      attempting to use it.
      
      The same is done at different places in the code,
      through the different modules.
      
      opw-687783
      f19d179b
    • Martin Trigaux's avatar
      [FIX] project_timesheet: remove useless overwrite · 7970cbe1
      Martin Trigaux authored
      It was doing something before but the useful line was removed at 908f4165
      The method is no longer useful and can be removed.
      It was error prone has it had not the same signature as the one on project.
      Fixes #13402
      7970cbe1
    • Denis Ledoux's avatar
      [FIX] warning: fix override of product_id_change · e147aac7
      Denis Ledoux authored
      Without the @api.multi property,
      the method is considered as taking only one parameter (self?),
      while it takes multiple parameters.
      
      This prevented to change the quote template on a sale order,
      if the quote template had some order lines, due to the below error
      
      `TypeError: product_id_change() takes exactly 1 argument (19 given)`
      
      opw-687797
      e147aac7
    • Nicolas Martinelli's avatar
      [FIX] mail: link in chat messages · 502f22e2
      Nicolas Martinelli authored
      Commit f30ec302 defines the messages sent thanks to the channels as
      plain text. This is true for all cases but one: the notification
      (e.g. @user). Therefore, the notifications links are broken.
      
      opw-687781
      502f22e2
    • Ravi Gohil's avatar
      [IMP] payment_*: avoid access error on provider model · b2265108
      Ravi Gohil authored
      As provider model is intended to be used internally restricting the read of
      some private fields to the employee group avoid creating access issues.
      b2265108
    • Richard Mathot's avatar
      [FIX] tools: prevent crash of formatLang · c208d0e0
      Richard Mathot authored
      From Odoo 9.0, en_US is not always activated in Odoo. As a fallback, if
      the search for a language does not find company language nor English US,
      we use the first available language (there is always at least one).
      
      In order to reproduce this behavior, eg: you can set the language of
      your company's partner to en_US, then load another language, then
      disable en_US from your database. Try to open the "Accounting" dashboard
      and you will get a traceback.
      c208d0e0
  6. Sep 05, 2016
  7. Sep 04, 2016
  8. Sep 02, 2016
    • Martin Trigaux's avatar
      [FIX] models: display all fields of a model · 9c8d8b90
      Martin Trigaux authored
      When a model has no form defined, a default view is generated displaying all
      fields of the model.
      The one2many and many2many fields were not displayed on the form, probably for
      aesthetic or historical (2008) reasons.
      9c8d8b90
    • Christophe Simonis's avatar
      [MERGE] forward port branch saas-6 up to ddcd2e77 · cb1ae535
      Christophe Simonis authored
      Empty merge as 7bdd4de8 has already
      been forward-ported with 33167a1e.
      cb1ae535
    • Quentin De Paoli's avatar
      [FIX] stock_dropshipping: fix dropship use case in anglo saxon with perpetual valuation. · 33167a1e
      Quentin De Paoli authored
      OPW: 684742
      When using dropship+anglo-saxon+perpetual valuation, there is no journal
      move for the delivery to debit outgoing inventory (since the goods don't
      transit by an internal stock) but the sale does credit it so there was a
      build up in the holding account that has to be moved out manually.
      This was also reported in #12687.
      
      The solution implemented is to check if the invoice line is related to
      sale order lines having one of its procurement_ids with a purchase_line_id
      set. If yes, it means that it is a confirmed dropship and in that case we
      don't call to super (we don't create the cost of sale line).
      
      That means that:
      * If the procurement is in exception at the customer invoice time, the
      behavior will be as it is currently, but it's fine as you don't know how
      the procurement will be solved, and it'll be only at the beginning (once
      the config is done it shouldn't go in exception anymore). People will have
      to manually fix those amounts with a miscellaneous operation.
      * users in anglo saxon mode should not use the 'stock interim account
      (received)' on supplier invoices for dropshipped goods, but rather use the
      COGS directly (sounds to me logical, and that's actually why I wouldn't go
      for the solution to create the stock move entries every time even for the
      dropshipped goods. That, and the fact that it would pollute the accounting
      with useless moves).
      
      This is a forward-port/cherry-pick of 7bdd4de8
      33167a1e
    • Christophe Simonis's avatar
      ddcd2e77
    • Quentin De Paoli's avatar
      [FIX] anglo_saxon_dropshipping: fix dropship use case in anglo saxon with perpetual valuation. · 7bdd4de8
      Quentin De Paoli authored
      OPW: 684742
      When using dropship+anglo-saxon+perpetual valuation, there is no journal move for the delivery to debit outgoing inventory (since the goods don't transit by an internal stock) but the sale does credit it so there was a build up in the holding account that has to be moved out manually. This was also reported in #12687.
      
      The solution implemented is to check if the invoice line is related to sale order lines having one of its procurement_ids with a purchase_line_id set. If yes, it means that it is a confirmed dropship and in that case we don't call to super (we don't create the cost of sale line).
      
      That means that:
      * If the procurement is in exception at the customer invoice time, the behavior will be as it is currently, but it's fine as you don't know how the procurement will be solved, and it'll be only at the beginning (once the config is done it shouldn't go in exception anymore). People will have to manually fix those amounts with a miscellaneous operation.
      * users in anglo saxon mode should not use the 'stock interim account (received)' on supplier invoices for dropshipped goods, but rather use the COGS directly (sounds to me logical, and that's actually why I wouldn't go for the solution to create the stock move entries every time even for the dropshipped goods. That, and the fact that it would pollute the accounting with useless moves)
      7bdd4de8
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
      490f9cfe
    • Nicolas Martinelli's avatar
      [FIX] web: statusbar click · 1bcbca4b
      Nicolas Martinelli authored
      When the statusbar is clicked, a `debounce` function prevents a
      doucle-click, and therefore making several `write` calls. In debug
      mode, the click doesn't work anymore.
      
      For some mysterious reason, the event is propagated to the parent. The
      `currentTarget` is not the `li` element, but the parent `ul`. By
      setting the `immediate` argument to `true` (execute the first function
      instead of the last), this solves the issue.
      1bcbca4b
    • Nicolas Martinelli's avatar
      [FIX] payment_paypal: set Paypal if not website installed · cf4cda2b
      Nicolas Martinelli authored
      Since commit 2ab68047, the Paypal link can be sent in an invoice as it
      was the case before. However, in order to be able to save the Paypal
      account in the accounting settings, the Paypal account must be
      website-published. If the module `website_payments` is not installed,
      this is not possible.
      
      We remove this condition, since it should be possible tu use the Paypal
      payment method without installing the whole website.
      
      opw-686216
      cf4cda2b
    • Quentin De Paoli's avatar
      Revert "[FIX] purchase: fix dropship use case in anglo saxon with perpetual valuation." · 97da3b99
      Quentin De Paoli authored
      This reverts commit a57b10db. This has to be fixed in 8.0, and moreover it uses fields defined in sale only so the fix must be done in stock_dropshipping module
      97da3b99
    • Quentin De Paoli's avatar
      [FIX] purchase: fix dropship use case in anglo saxon with perpetual valuation. · a57b10db
      Quentin De Paoli authored
      OPW: 684742
      When using dropship+anglo-saxon+perpetual valuation, there is no journal move for the delivery to debit outgoing inventory (since the goods don't transit by an internal stock) but the sale does credit it so there was a build up in the holding account that has to be moved out manually. This was also reported in #12687.
      
      The solution implemented is to check if the invoice line is related to sale order lines having one of its procurement_ids with a purchase_line_id set. If yes, it means that it is a confirmed dropship and in that case we don't call to super (we don't create the cost of sale line).
      
      That means that:
      * If the procurement is in exception at the customer invoice time, the behavior will be as it is currently, but it's fine as you don't know how the procurement will be solved, and it'll be only at the beginning (once the config is done it shouldn't go in exception anymore). People will have to manually fix those amounts with a miscellaneous operation.
      * users in anglo saxon mode should not use the 'stock interim account (received)' on supplier invoices for dropshipped goods, but rather use the COGS directly (sounds to me logical, and that's actually why I wouldn't go for the solution to create the stock move entries every time even for the dropshipped goods. That, and the fact that it would pollute the accounting with useless moves)
      a57b10db
Loading