Skip to content
Snippets Groups Projects
  1. Mar 11, 2022
    • Brice bib Bartoletti's avatar
      [FIX] l10n_eu_services:apply tag from localization · 3a9eb2c1
      Brice bib Bartoletti authored
      This commit aims to allow assigning tags to the taxes
      created by the OSS feature by providing the xml_id of their
      report.line in the eu_tag_map.py file.
      
      Before this commit:
      In l10n_be, the taxes created by OSS (l10n_eu_services) didn't set
      the tag +47 on invoice_repartition_lines nor +49 on
      refund_repartition_lines.
      This make the VAT report for Belgium wrong.
      
      After this commit:
      Taxes created by OSS for a company using the belgian CoA will get
      their tags set properly and thus will the taxes impact the
      belgian tax report correctly.
      
      task: 2770182
      ticket: 2768622
      
      Community-PR: https://github.com/odoo/odoo/pull/85607
      
      
      
      Design choices:
      This fix is currently solving the issue for l10n_be but we have
      no doubt that it will be raised for other EU countries too.
      
      In order to provide the tags, we decided to be consistent with
      what as been done regarding the tax mapping. Thus we decided to
      create and maintain a simple mapping file and to test it.
      
      several other methods were explored:
      - create a global variable and update it from all localization
      modules. This method would work but is ugly and error prone.
      
      - create a templating method and override it from localization
      modules.
      The problem is where to set the root of the template method?
      The naïve solution would be to create a bridge module between
      l10n_eu_services and l10n_be but that would lead to an explosion
      in the number of bridge modules which we don't want.
      
      In order to keep things simple and generic, we could put the
      template method directly into the account module. But it is kind
      of ugly because account shouldn't know anything about the oss
      feature and it would encourage such a leaky design to happen
      again in the future.
      
      closes odoo/odoo#85607
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      3a9eb2c1
    • Brice bib Bartoletti's avatar
      [IMP] l10n_eu_services: makes code more readable · ad671f01
      Brice bib Bartoletti authored
      Improves l10n_eu_services code readability
      
      Part-of: odoo/odoo#85607
      ad671f01
    • Raphael Collet's avatar
      [FIX] fields: ondelete being None on many2many field · 2bb126c5
      Raphael Collet authored
      
      The issue is simply creating a related stored many2many field, which is
      pretty easy to do with Studio.  When creating the field, Odoo crashes
      with a traceback caused by ondelete being None on the field.
      
      The source of the bug is the fact that the attribute field.ondelete is
      set to a sensible default ('cascade') on non-related fields only.  The
      fix consists in setting the default value on the attribute itself, so
      that the setup of the field never falls on a case where field.ondelete
      is unset.
      
      closes odoo/odoo#86136
      
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      2bb126c5
    • William Braeckman's avatar
      [FIX] hr_attendance: fix wrong widget being used · 230f9185
      William Braeckman authored
      
      The smartbutton for the number of hours in the attendance smart button
      on employees and user did not use the right widget and could display
      invalid data like '1.8 hours last month'.
      
      TaskId-
      
      closes odoo/odoo#86032
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      230f9185
  2. Mar 10, 2022
  3. Mar 09, 2022
  4. Mar 08, 2022
  5. Mar 07, 2022
    • David (dafr)'s avatar
      [FIX] purchase_requisition_stock: Exclude archived picking_type_in · ad41f939
      David (dafr) authored
      
      Before commit, if the 'Receipt' Operation type was archived, the purchase agreements would still use it.
      After commit, if stock.picking_type_in record is archived, search for another (non-archived) one.
      
      OPW-2748495
      
      closes odoo/odoo#85474
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      ad41f939
    • Brice bib Bartoletti's avatar
      [FIX] l10n_ch,l10n_dk,l10n_fi: 0% tax fix · 17e3bd58
      Brice bib Bartoletti authored
      
      Every tax should have a tax repartition line even 0% tax
      
      closes odoo/odoo#85888
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      17e3bd58
    • Merlin (megu)'s avatar
      [FIX] mail: channel duplication · 9fe1ffbd
      Merlin (megu) authored
      
      Messages are copied when duplicating a channel
      
      Steps to reproduce:
      1. Install Discuss
      2. Write a message in the general channel in Discuss
      3. Duplicate the general channel (user demo should be a member of this
      channel) and give it another name
      4. Connect as demo
      5. The new message notification is on the general channel (and it should
      be the duplicate channel
      6. Mark the notification as read
      7. Refresh the page
      8. The notification is still there even though it has been marked as
      read
      
      Solution:
      Do not copy the message of the original channel
      
      Problem:
      `channel_message_ids` is copied when duplicating a channel
      
      opw-2731842
      
      closes odoo/odoo#85385
      
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      9fe1ffbd
    • Abdelouahab (abla)'s avatar
      [FIX] mrp: Fix quantity filtering for kits · 40440529
      Abdelouahab (abla) authored
      
      Purpose
      =======
      
      On product list we can see that kits are listed with quantity on hand
      equals to the lesser quantity of the kit's components.
      
      When applying the filter **Quantity on hand greater than 0**, the kit
      disappears from the list.
      
      The issue is that we compute product quantity from stock.quant, for kits
      we don't create a quant beacause it's not a physical product.
      
      Specification
      =============
      To solve the issue, we extend the method **_search_qty_available_new** from
      **stock.product** in **mrp.product**, where we fetch all kits and add the id
      of the products that verify the given condition.
      
      opw-2717594
      
      closes odoo/odoo#84699
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      40440529
    • Anh Thao Pham (pta)'s avatar
      [FIX] sale: hide archived taxes in SO edition form · 820faf0d
      Anh Thao Pham (pta) authored
      
      Steps to reproduce:
      ===================
      - Create a Sales tax
      - Archive it
      - Go to Sales and create a SO
      The archived tax is available for SO line
      
      Cause:
      ======
      Context {'active_test: False'} is defined on tax_id field of SO line
      to still display archived taxes on existing SO.
      This context is passed to the field in the form view by default, allowing
      archived taxes to be selected in SO creation/edition.
      
      opw-2769057
      
      closes odoo/odoo#85807
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      820faf0d
    • Wolfgang Taferner's avatar
      [IMP] delivery: ease to inherit delivery currency computation · f4f833bb
      Wolfgang Taferner authored
      
      closes odoo/odoo#83629
      
      Signed-off-by: default avatarArnold Moyaux <arm@odoo.com>
      Co-authored-by: default avatarAndreas Perhab <andreas.perhab@wt-io-it.at>
      f4f833bb
    • Brice bib Bartoletti's avatar
      [FIX] account: price at 0, fixed tax price include · 5b45c232
      Brice bib Bartoletti authored
      The aim of this commit is to correct the compute_all calculation
      when it is dealing with an article with 0.00 price and having a fixed
      tax included in it.
      
      In this situation, this means the tax is directly taken as an expense
      by the company that offers it to its client.
      
      This also solves the situation in which we have a 100% discount because
      discount is applied before calling `compute_all` by changing the
      unit_price.
      
      Before this commit:
      Creating an invoice with a line having a price at 0 or a 100% discount
      and a fixed tax price_include resulted in a really weird behavior: the
      company had to reimburse the customer for the amount of the tax.
      (what a lucky customer :D )
      
      After this commit:
      Customer is sad, he only gets the product for free.
      The base is calculated as negative, resulting in a debit amount on the base
      income line.
      The tax is then counterbalance by it.
      
      The form is displaying a negative untaxed amount, a positive tax and the
      total is 0.
      
      closes odoo/odoo#85747
      
      Ticket: 2660808, 2637512
      Community-pr: https://github.com/odoo/odoo/pull/85747
      
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      5b45c232
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] account,sale: fiscal position map tax incl. to incl. · 625486a8
      Andrea Grazioso (agr-odoo) authored
      
      Create a 21% tax included in price
      Create a 6% tax included in price
      Create a fiscal position that will replace the 21% tax included by the
      6% tax included
      Create a customer and assign this fiscal position
      Create a product :
      Price = 121€
      Tax = 21% tax included
      Create a SO with this customer and this product
      Create an invoice (from scratch) with this customer and this product
      
      SO : the unit price is 100,00€
      Invoice : the unit price is 106,00€
      
      Fix by creating a common method to calculate the price_unit
      
      opw-2699793
      
      closes odoo/odoo#83728
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      625486a8
  6. Mar 04, 2022
  7. Mar 02, 2022
  8. Mar 01, 2022
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] l10n_id_efaktur: compliance with E-Faktur 3.1 · 3f0db73e
      Andrea Grazioso (agr-odoo) authored
      
      To generate an e-faktur
      
      1. Settings > Users & Companies/Compagnies:
      - Create a new company ‘ID Indonesia’:
      - Set the state (e.g Yogyakarta (ID))
      - Set the country ‘Indonesia’
      
      Accounting:
      2. > Customers > e-Faktur
      - Set a range of numbers (which are supposed to be assigned by the
      Indonesian government);
      
      3. > Configuration > Settings
      - Fiscal Localization: select the Indonesian package
      
      4. > Customers > Customers
      - Create a new res.partner:
      - Set the country ‘Indonesia’
      - Check ‘ID PKP’ field
      - Under ‘Accounting tab’: set both accounting entries (Receivable +
      Payable)
      
      5. > Customers > Invoices
      - Create a random invoice with the res.partner set in point 5. as the
      Customer
      - Confirm the invoice
      - Action > Download e-Faktur
      
      ---
      
      When validating the e-faktur users will see the error
      
      Import Faktur Error ETAX-30005 : Error Objek Mapping
      
      This occur because E-Faktur standard update from 3.0 to 3.1
      A column 'KODE_DOKUMEN_PENDUKUNG' is now mandatory
      
      opw-2753810
      
      closes odoo/odoo#85312
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      3f0db73e
    • Odoo Translation Bot's avatar
  9. Feb 28, 2022
  10. Feb 25, 2022
  11. Feb 24, 2022
    • Katherine Zaoral's avatar
      [FIX] l10n_ar: only set afip service dates on ar invoices · 06c529a6
      Katherine Zaoral authored
      
      closes odoo/odoo#84470
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      06c529a6
    • Pablo Montenegro's avatar
      [FIX] l10n_ar: AFIP currency rate. · 47be39d1
      Pablo Montenegro authored
      We have a bug when we were computing the invoice rate that is used to
      report to AFIP. The rate we were setting was an old rate that references
      the day that the invoice was created and not the rate of the day where
      the invoice was validated.  This was happening because the
      l10n_ar_currency_rate field that stores this value was computed before
      posting the invoice. At that time the date field store the value of the
      date where the invoice was created and had not been updated yet with the
      accounting date.
      
      Moving the l10n_ar_currency_rate field calculation after the invoice
      post solves the problem and now the l10n_ar_currency_rate has the rate
      of the accounting date.
      
      Part-of: odoo/odoo#84470
      47be39d1
  12. Feb 22, 2022
Loading