Skip to content
Snippets Groups Projects
  1. Jan 25, 2019
  2. Jan 17, 2019
  3. Jan 24, 2019
  4. Jan 23, 2019
  5. Jan 22, 2019
    • Nicolas Martinelli's avatar
      [FIX] sale: taxes and untaxed amount · b95affa3
      Nicolas Martinelli authored
      - Create a SO, do not set a partner
      - Add a product with a tax
      
      The untaxes amount as well as the taxes remain 0.0.
      
      This is because there is no pricelist, therefore no currency.
      
      There is actually no need of rounding explicitly since these are
      monetary fields which will be rounded automatically.
      
      opw-1931796
      
      closes odoo/odoo#30450
      b95affa3
  6. Jan 17, 2019
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
      17adccd9
    • wan's avatar
      [FIX] account: journal dashboard graph wrong value · 50bae1c0
      wan authored
      OPW 1918926
      
      Current behavior:
        The sql query groups by date,id in a intermediary table instead of the result. This allows to get data in the wrong order if the statements were not produced sequentially. The fill values are computed in the wrong order and may override correct values.
      
      Desired behavior:
        There is no override of the values correctly computed.
      
      closes odoo/odoo#29936
      50bae1c0
    • Lucas Perais (lpe)'s avatar
      [FIX] base: merge contacts linked to by an o2m field with caps · ba39efdf
      Lucas Perais (lpe) authored
      Define a field on a model as:
      - o2m to res.partner
      - the field's column, hence its name, has capital letters in it
      (studio does that)
      
      create two objects of that class, each one linked to a different partner with the new o2m
      
      merge the partners
      
      Before this commit, the object linked to the second partner, was deleted
      This was because merge partner sql requests did not quote the column name
      
      After this commit, the second object still exists
      
      This commit is tested in v12.0 with PR #30300 only. In v10.0 it is not testable as
      the model concerned is in CRM, and that no new fields in business modules can be added in stable
      
      OPW 1925060
      
      closes odoo/odoo#30301
      ba39efdf
  7. Jan 15, 2019
    • Denis Ledoux's avatar
      [FIX] ir_ui_view: do not change view mode when just changing the inherit · a4096276
      Denis Ledoux authored
      Some views have the primary mode while having an inherit_id view
      In such views, if the user wants to change the inherit_id,
      the mode must remain primary.
      
      The use case behind this is a user who want to change
      the inherit_id view of the view
      product.product.form (product.product_normal_form_view)
      to another view.
      This view is in primary mode while having an inherit_id
      (product.product_template_form_view).
      In such a case, the primary mode must remain,
      otherwise the view will no longer be opened by default
      when opening a product.
      Indeed, when searching the default form view of a model,
      it only searches for primary mode views for this model.
      
      The `all` is there because this is an `api.multi` method.
      We could consider adding a `self.ensure_one`,
      but it breaks the API if someones calls this method with multiple records.
      This is likely to happen, as this method is used
      in `write` which is likely to be called with multiple records.
      
      In my opinion, in master, this should be replaced by an
      onchange so the user can see the change of mode
      when he adds or remove an inherit_id for a view.
      
      opw-1916324
      
      closes odoo/odoo#30241
      a4096276
  8. Jan 22, 2019
  9. Jan 18, 2019
  10. Jan 15, 2019
  11. Jan 16, 2019
    • Nicolas Martinelli's avatar
      [FIX] product: unwanted attribute values in name · 180ace7b
      Nicolas Martinelli authored
      - Create the following attributes with values:
        Size: S, M, L, XL
        Color: Black, White
      - Create a product template with the following attribute values:
        Size: S, M, L, XL
        Color: Black
      
      The `name_get` of `product.product` returns `Name (SIZE, Black)` while
      it should only return `Name (SIZE)`.
      
      When using `attribute_id.value_ids`, the list of values contains all
      possible values of the attribute, not only the values which apply to the
      given product. In this case, it contains 'Black' and 'White', therefore
      the condition `> 1` is verified and the attribute is kept for display.
      
      We go back to the original filtering, and add `attribute_line_ids` in
      the list fields read in order to avoid prefetching.
      
      opw-1922140
      opw-1922447
      
      closes odoo/odoo#30273
      180ace7b
    • Joren Van Onder's avatar
      [FIX] point_of_sale: allow refunds on non-cash journals · 302d8a52
      Joren Van Onder authored
      Cherry pick of 5b769650 in version 11.0
      
      A customer can pay an order with a non-cash journal (e.g. a credit
      card through a stand-alone terminal).
      
      When this order has to be refunded later it should be possible to do
      so on that same journal.
      
      Some code prevented this from happening, notably a check in
      order_is_valid which explicitly prevented this for an unknown
      reason. There is no explanation in the
      commit (4647f896) introducing that.
      
      This commit allows the following:
      
      1. input what you want to refund with a negative qty
      2. click 'Payment'
      3. click the Credit Card (type Bank) journal
      4. (amount is auto-populated)
      5. click 'Validate'
      
      opw-805302
      opw-1913731
      
      closes odoo/odoo#30218
      302d8a52
    • Nicolas Martinelli's avatar
      [FIX] account: bank statement with many AML · 614babd1
      Nicolas Martinelli authored
      - Create a bank statement with more than 80 lines (therefore more than
        80 AML)
      - Reconcile the lines
      - Go back to the bank statement, and try to add a new line
      
      An error arise:
      "You cannot do this modification on a posted journal entry, you can just
      change some non legal fields"
      
      The error arise on the `move_line_ids` field on which the web client
      tries to write.
      
      Actually, this field is hidden since it is only used in the domain of a
      stat button. We can make it read-only.
      
      opw-1921138
      
      closes odoo/odoo#30266
      614babd1
    • Iryna Vyshnevska's avatar
      [CLA] signature for ivyshnevska · 92e4c4c3
      Iryna Vyshnevska authored
      Backport to 10.0 of 3b14a7da
      
      closes odoo/odoo#30090
      92e4c4c3
    • Manuel Vázquez Acosta's avatar
      [FIX] survey: don't disclose the survey via print · 6ac32c65
      Manuel Vázquez Acosta authored
      To avoid bigger changes, only verify if the login is required.
      A proper refactoring has been implemented in master at 9771fdfe
      
      Closes odoo/odoo#30166
      6ac32c65
  12. Jan 14, 2019
  13. Jan 23, 2019
    • ougc27's avatar
      [FIX] stock_landed_costs: cost account when dropship · 8cba55ce
      ougc27 authored
      - Set FIFO as costing method in product category
      - Create a stockable product with the category configured previously
      - Create a SO with the stockable product for 1 unit with dropship route
        and confirm the SO
      - Confirm the PO created from the Sale Order to generate the delivery
      - Process the stock picking
      - Create a new Landed Cost with the stock picking delivered with a cost
        line with split method "Equal".
      - Generate the valuation adjustments and confirm the landed cost to
        generate the journal entry
      
      The debit account is wrong because the system takes the inventory
      valuation account instead the expense account.
      
      Odoo must take the expense account because the product never enter to
      the company inventory, so is a cost of sale.
      
      opw-1922633
      
      closes odoo/odoo#29947
      8cba55ce
    • wan's avatar
      [FIX] account: get credit and debit regarding to company · 01718433
      wan authored
      Detected with OPW 1920765
      
      Reproduce : set multi-companies, install accounting. The due amount for all companies is the sum of the due amount for every single company
      
      Cause : the context for company_id is not set in account.move.line:_query_get
      
      Solution : set it in res.partner:_credit_debit_get in case _query_get is used elsewhere
      
      closes odoo/odoo#30463
      01718433
  14. Jan 22, 2019
    • Nans Lefebvre's avatar
      [FIX] delivery: make the form view work from the Install more Providers action · 8ac0e8e4
      Nans Lefebvre authored
      Go to 'delivery methods', edit a delivery method.
      Click on 'install more providers'.
      You land on the 'Apps' app, already filtered on the 'delivery_' modules.
      Click on 'more info' of a module: nothing happens.
      It should open the form view of the module.
      
      What happens is that the action doesn't contain 'form',
      so the framework fails to open the form view from the kanban view.
      
      opw 1928711
      
      closes odoo/odoo#30437
      8ac0e8e4
    • Nicolas Martinelli's avatar
      [FIX] stock_account: Average Cost · ac270d63
      Nicolas Martinelli authored
      - Create a product where the associated product category has Costing
        Method "Average Cost (AVCO)"
      - Create a PO. Order:
        2 units at 40
        4 units at 35
      - Receive the picking
      
      The cost of the product is set at 35 (or 40, depending on the order of
      the lines in the PO).
      
      Since we are in a situation where the available quantity is zero, we
      enter in the `if float_is_zero...` condition, where the `qty_done` is
      not set.
      
      We should set it in all cases.
      
      opw-1907328
      
      closes odoo/odoo#30422
      ac270d63
    • Nicolas Seinlet's avatar
      [IMP] sale: better use of the ORM · 15520c8e
      Nicolas Seinlet authored
      Search outside of the loop, use read_group, ...
      
      closes odoo/odoo#29668
      15520c8e
Loading