Skip to content
Snippets Groups Projects
  1. Jul 03, 2020
    • Aaron Bohy's avatar
      [FIX] web: editable list: correctly edit in readonly · 25266342
      Aaron Bohy authored
      
      Some widgets allow the edition in readonly (e.g. boolean_toggle,
      priority...). In this case, the changed value is saved directly.
      Before this commit, this didn't work in (main) list views: the
      widget was updated with the new value, but it wasn't saved in db,
      so the change was lost at reload.
      
      This was due to the list controller not being correctly aware of
      its mode ('edit' or 'readonly'), on which the basic controller
      relies to determine whether a change must be saved directly or
      not.
      
      With this commit, a list is always in 'readonly', except when a
      row is being edited, in which case it is in 'edit'.
      
      Issue reported on task 2288963
      
      closes odoo/odoo#54049
      
      Signed-off-by: default avatarJulien Mougenot (jum) <jum@odoo.com>
      25266342
    • Nasreddin (bon)'s avatar
      [FIX] stock: Display translated picking description in delivery slip · fee4e78a
      Nasreddin (bon) authored
      
      Issue
      
      	- Install English and French languages
      	- Create a customer contact and assign french as his language
      	- Create a product with correct names in both languages.
      	  For example 'French product name' and 'English product name' for easy reference.
      	- Create an inventory transfer with the french customer as contact
      	- Add the product that you created
      	- Print > Delivery Slip
      
      	The report will show in the lines:
      	"""
      	French product name
      	English product name
      	"""
      
      Cause
      
      	Getting product description without checking partner language.
      
      Solution
      
      	If partner is set, get product description with partner language in context.
      
      opw-2280490
      
      closes odoo/odoo#53977
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      fee4e78a
  2. Jul 02, 2020
  3. Jul 03, 2020
  4. Jul 02, 2020
  5. Jul 01, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] payment: fix payment processing via external link · 7d6974e1
      Andrea Grazioso (agr-odoo) authored
      
      Select a sales order.
      Go to action > generate payment link.
      Open private browser, reach the link.
      
      User will receive error message because of access denied to the
      res.partner data.
      
      opw-2287534
      
      closes odoo/odoo#53910
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      7d6974e1
    • Nasreddin (bon)'s avatar
      [FIX] account: wrong calculation for 'not included in price' group taxes · 4d6df367
      Nasreddin (bon) authored
      
      Issue
      
      	- Install 'Accounting' app
      	- Create tax A and tax B for 5%, make sure they are NOT included in price
      	- Create a tax C as a group that includes Tax A and B
      	- Go to any bank journal and create a statement line for 100 dlls
      	- Click Reconcile
      	- Select Manual Operations
      	- Select any account
      	- Add Tax C
      	- Check on 'Tax Included in Price'
      
      	Wrong calculation.
      
      Cause
      
      	Not considering forced 'Tax Included in Price'
      	('force_price_include'),when cumulating tax included
      	amount.
      
      opw-2280714
      
      closes odoo/odoo#53906
      
      X-original-commit: ef63297fa2513a58b4dd6db7f44a46643decce66
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      4d6df367
    • Simon Lejeune's avatar
      [FIX] stock: move line: write · 50710143
      Simon Lejeune authored
      
      Write is overridden on reserved move lines to make sure the quants are
      correctly updated. It is divided in two parts: if you update the reserved
      quantity and if you update a characteristic. If somehow both are updated
      in the same call (which doesn't happen in the standard interface), then
      the quants are unreserved two times, which is wrong.
      
      This issue showcased by [0] and on databases where the reserved
      quantities are made editable by customization.
      
      We grouped the two update in one, such as the TODO indicated us since a
      long, long time.
      We removed `result_packaged_id` from the trigger because it should not
      impact the reservation whatsoever.
      We needed to remove a tricky logic in the stock move's backordering part
      but it was fishy anyway.
      
      [0] eac8c06e
      
      closes odoo/odoo#53794
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      50710143
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] account: change composition mode to allow multi send · a5813718
      Andrea Grazioso (agr-odoo) authored
      
      Go to Payments view
      Select multiple confirmed payments, click on Actions>Send receipt by
      email
      
      Only for the first payment will be sent an email.
      This occur because in composition mode 'comment' (the default)
      mail composer sens the mail to a single record
      Adding a duplicate action to handle multi send
      Updating translation accordingly
      
      opw-2278971
      
      closes odoo/odoo#53725
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      a5813718
    • Samuel Degueldre's avatar
      [FIX] website_mass_mailing: fix input disappearing when duplicating · 5562e7db
      Samuel Degueldre authored
      
      Previously, duplicating a block inside of the newsletter popup would
      cause the subscribe input and button to disappear. Actually, it
      disappears when you use most options of the left panel, because
      selecting an option refreshes the public widgets, which destroys them
      and starts them again, but for some reason, the subscribe widget's
      destroy method makes it d-none, but only removes that class if the
      subscribe input is not inside of a modal.
      
      This commit fixes that by not using d-none on the subscribe input group
      at all. We keep the d-none removals for databases which may have the
      button saved in a disabled state.
      
      task-2244780
      
      closes odoo/odoo#50286
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      5562e7db
    • snd's avatar
      [FIX] project - send rating mail by project · 07c828b4
      snd authored
      opws: 2269230, 2248760
      When a database has a lot of projects with many tasks, and needs
      to send a lot of feedback mails, the cron tries to send mails to
      all tasks at the same time, thus it times out.
      
      This fix will allow to treat projects one at a time so that when
      the cron times out, it will not restart from the beginning.
      
      closes odoo/odoo#53896
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      07c828b4
    • Julien Mougenot's avatar
      [IMP] doc: added doc for static templates inheritance · b22e7109
      Julien Mougenot authored
      
      closes odoo/odoo#38301
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      b22e7109
  6. Jun 30, 2020
    • Xavier ALT's avatar
      [FIX] web: do no try to render filters referencing access restricted fields · 92f289cb
      Xavier ALT authored
      
      In case a field is limited to specific groups on the model, those fields
      are discarded from `fields_view_get()` but can still be referenced by some
      filters on the search view causing a traceback (see #53797)
      
      Model:
      
      ```python
      
      class MyModel(models.Model):
      
        my_field = fields.Char(groups='base.group_system')
      ```
      
      Search views:
      
      ```xml
      <search string="My Model">
          <filter name="group_myfield" context="{'group_by': 'my_field'}"/>
      </search>
      ```
      
      This commit ensure those filter are correctly discarded.
      
      OPW-2284621
      
      closes odoo/odoo#53886
      
      X-original-commit: 6a1eb6d332c5a9bcb9f1d2d1034e6640f5cd2317
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      Signed-off-by: default avatarXavier ALT <xavieralt@users.noreply.github.com>
      92f289cb
  7. Jun 29, 2020
  8. Jun 30, 2020
    • Anh Thao Pham (pta)'s avatar
      [FIX] point_of_sale: fix closing with multiple taxes and fiscal position · 17a9feff
      Anh Thao Pham (pta) authored
      
      - Install Accounting, Point of Sale
      - Go to Accounting > Configuration > Taxes
      - Create 2 taxes (e.g. Tax 15% and Tax 21%)
      - Go to Accounting > Configuration > Fiscal Positions
      - Create a new Fiscal Postion with the following line for Tax Mapping:
        * Tax on Product: Tax 21%
        * Tax to Apply: Tax 15%
      - Go to Point of Sale > Products > Products
      - Create a new Product (e.g. Test Product) with "Tax 15%" and "Tax 21%" in Customer Taxes
      (Make sure that the Tax 15% is the same than the one for the "Tax to Apply" in the Fiscal Position)
      - Go to Point of Sale and configure a POS:
        * Activate "Fiscal Position per Order" and choose the created Fiscal Position
        * Add Bank as Payment Method
      - Start a POS session
      - Search "Test Product" and add it
      - Click on Tax button and select the created Fiscal Position
      - Proceed to payment
      - Choose Bank and validate
      - Exit the POS session
      - Click on "CLOSE" and "VALIDATE CLOSING & POST ENTRIES"
      An error message appeared with the following message: "Cannot create unbalanced journal entry"
      
      When closing and posting entries, an account move and account move lines are created from the session orders.
      For each order lines, taxes are computed from taxes on product and fiscal position of the order.
      In this case, the product has 2 taxes applied (Tax 15% and Tax 21%).
      Due to the chosen Fiscal Position, the Tax 15% is applied instead of Tax 21%.
      For the order line, Tax 15% is applied 2 times.
      But during the account move lines generation, the original Tax 15% and the converted Tax 15% are merged together,
      because they represent the same tax (same model id).
      So the Tax 15% is only applied once, which results on unbalanced amounts during reconciliation.
      
      In Sales, for the same case, the tax is only applied once.
      To stay consistent with Sales behavior, the tax will also be applied once in Point of Sale.
      
      opw-2278826
      
      closes odoo/odoo#53549
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      17a9feff
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] mrp: fix BoM Structure & Cost Report print · 4d77ada6
      Andrea Grazioso (agr-odoo) authored
      
      Create some attributes with "create dynamically" set
      Create a product template using these attributes (=> product variants
      should not be created)
      Set this product as manufactured, and create an associated BOM with some
      components
      Try to print the BOM
      
      User will face a traceback due to the product_id being non existant
      
      opw-2283649
      
      closes odoo/odoo#53854
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      4d77ada6
  9. Jun 29, 2020
  10. Jun 30, 2020
    • Jorge Pinna Puissant's avatar
      [FIX] account: negative credit note product qty in invoice report · 6d830239
      Jorge Pinna Puissant authored
      
      - Create an invoice with a Product X and Post it;
      - Generate a Credit Note from the invoice;
      - Reporting > Invoices;
      - use Pivot Table View;
      - Enable 'Product Quantity' in Measures;
      - Filter by 'Invoice #';
      - Expand Pivot Table by 'Product'.
      
      Before this commit, the products in the credit note had a positive sign,
      contrary to the untax total that has a negative sign. The issue with
      this, is when the quantities of the credit notes is added with the
      quantities of the invoices the total is not coherent with the actual
      sell products.
      
      Now, the product quantity that comes from a credit note has a negative
      sign. This was already the behaviour in version 11 and 12.
      
      opw-2283833
      
      closes odoo/odoo#53795
      
      Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
      6d830239
    • Leo Tran's avatar
      [CLA] Viindoo signs Odoo's CCLA · ae72a757
      Leo Tran authored
      
      Done at odoo/odoo#53561
      
      closes odoo/odoo#53845
      
      X-original-commit: e4bef56c
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      ae72a757
  11. Jun 22, 2020
  12. May 26, 2020
  13. Jun 26, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] repair: add shipping info to invoice · e109faec
      Andrea Grazioso (agr-odoo) authored
      
      - Create a repair order
      - Choose a customer A
      - Change the invoicing address to customer B > set default
      - Create invoice
      
      The delivery address set on the repair order is not taken into account
      on the invoice. The delivery address field on the invoice stays empty
      despite having a delivery address set up on the repair order.
      
      opw-2285659
      
      closes odoo/odoo#53747
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      e109faec
  14. Jun 29, 2020
  15. Jun 26, 2020
    • jvm-odoo's avatar
      [FIX] payment_stripe: fix can pay a cancelled order · 5acb2a64
      jvm-odoo authored
      
      Issue
      
      	- Install eCommerce, Stripe
      	- Setup stripe for testing
      	- Order something
      	- Open stripe payment interface (not with odoo)
      	- Go back with the stripe interface button
      
      	Order Cancelled
      
      	- Go back with browser back button
      	- Enter your data
      
      	Can pay but order still cancelled so
      	you paid for nothing
      
      Cause
      
      	I fixed a linked error in
      	b8b9a04f
      
      	but I didn't mind that we should cancel
      	the stripe payment intent too
      
      Solution
      
      	Cancel the stripe payment intent so that
      	filling the stripe form by following
      	those step will returns an error from
      	stripe
      
      OPW-2282946
      
      closes odoo/odoo#53737
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      5acb2a64
  16. Jun 29, 2020
Loading