Skip to content
Snippets Groups Projects
  1. Aug 23, 2023
    • Walid HANNICHE (waha)'s avatar
      [FIX] sale_purchase_stock: correct PO deadline date · 72a17baf
      Walid HANNICHE (waha) authored
      
      steps to reproduce it:
      1. Create a storable product, add a Purchase vendor with
       start date = 20/6/2022 and delay = 56
      2. Create another storable product, add the same Purchase vendor with
       start date = 11/01/2023 and delay = 21
      3. For both products, add Routes "MTO".
      4. Create a SO with those 2 products, and confirm it
      5. As you can see, the price of the first product is correctly set
      but not the second product
      
      BUG:
      This is due of "Order Deadline" (date_order) being set to an old date,
      which is before the second product date_order.
      
      FIX:
      set max PO date as today
      
      opw-3167094
      
      closes odoo/odoo#124448
      
      Related: odoo/enterprise#44391
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      72a17baf
    • Maximilien (malb)'s avatar
      [FIX] l10n_de: translation issues · 18978814
      Maximilien (malb) authored
      
      There was inconsistency in the translation for the words "price unit", with this
       commit all the "price unit" are translated the same.
      
      closes odoo/odoo#121413
      
      Task-id: 3262408
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      18978814
    • Maximilien (malb)'s avatar
      [FIX] l10n_de: print and preview css · 5f707bd5
      Maximilien (malb) authored
      This PR solve two things:
      - Preview: due to the hardcoded width the preview didn't take all the page and
      was push on the left.
      - PDF: Weird stuff happened with the header, he was hiding information below
       the header.
      
      Task-id: 3262408
      Part-of: odoo/odoo#121413
      5f707bd5
    • Maximilien (malb)'s avatar
      [FIX] l10n_de: shipping address traceback · 2c3029d1
      Maximilien (malb) authored
      Before this PR, when there is no shipping address, the pdf show an empty
      "Shipping Address" header. By changing the colspan dynamically we can manage to
      keep the layout like it was and remove the useless section.
      
      Task-id: 3262408
      Part-of: odoo/odoo#121413
      2c3029d1
  2. Aug 22, 2023
  3. Aug 21, 2023
    • Brice bib Bartoletti's avatar
      [FIX] l10n_at: tax template repartition lines · c8603a9e
      Brice bib Bartoletti authored
      
      1) The aim of this commit is to make the tax template more consistent with
      the instanciated tax.
      Indeed a tax wouldn't pass the constrains if it hadn't all its
      repartition line.
      
      2) Make the refund consistent with the rest of the taxes.
      
      closes odoo/odoo#130706
      
      Task-id: None
      Signed-off-by: default avatarFlorian Gilbert (flg) <flg@odoo.com>
      c8603a9e
    • prye-odoo's avatar
      [FIX] l10n_de: remove l10n_de_document_title field from template · 95468505
      prye-odoo authored
      When the user configures the 'external_layout_din5008' layout template in the
      general settings and tries to any QWeb reports, that case generates the
      traceback.
      
      Steps to reproduce:
      - Install the 'l10n_de' and 'sale_timesheet' modules.
      - Settings > General Settings
      - Search for 'Document Layout' and configure the 'external_layout_din5008'
        layout.
      - Settings > Technical > User Interface > Views
      - Search the 'external_layout_din5008'  QWeb template view.
      - Search  '<span t-if="not o and not docs">
      <t t-esc="company.l10n_de_document_title"/></span>'
        line and replace by,
      '<span t-if="company"><t t-esc="company.l10n_de_document_title"/></span>'
      - Go to the Sales menu and print any reports from the print menu.
      After that, a traceback was generated.
      Error:
      AttributeError: 'res.company' object has no attribute 'l10n_de_document_title'
      Template: l10n_de.external_layout_din5008
      
      The 'l10n_de_document_title' field does not exist in the 'res.company'
      object and also this field used in 'l10n_de.external_layout_din5008'
      template, and this template is configured as layout.  So, remove this line from
      this template.
      Code reference:
      https://github.com/odoo/odoo/blob/14.0/addons/l10n_de/report/din5008_report.xml#L109
      
      
      
      Sentry-4283510443
      
      closes odoo/odoo#128559
      
      Signed-off-by: default avatarFlorian Gilbert (flg) <flg@odoo.com>
      95468505
  4. Aug 20, 2023
  5. Aug 18, 2023
  6. Aug 17, 2023
    • Ali Alfie (alal)'s avatar
      [FIX] l10n_de: remove tag B from ir_model_data · 1398c5cd
      Ali Alfie (alal) authored
      
      In odoo/odoo/pull/126249 the german balance sheet report was updated and tag tag_de_liabilities_bs_B was removed from account_account_tags_data.xml. This deletes it from ir_model_data so that the ORM doesn't delete this record. This is done so that it doesn't break if another table was already using this tag.
      
      closes odoo/odoo#131530
      
      Signed-off-by: default avatarLaurent Smet (las) <las@odoo.com>
      1398c5cd
  7. Jun 01, 2023
    • Xavier Morel's avatar
      [IMP] mail: remove confusing readonly=False on partner_email · ef3d4166
      Xavier Morel authored
      
      This field was never intended to be editable, and indeed all the views
      on mail.channel.partner I could find either don't list the field at
      all, or explicitly make it readonly.
      
      The editability is actually an artefact from when related fields were
      changed from editable by default to readonly by default, all existing
      fields were bulk-set to `readonly=False` in
      3f4f77fd with the intent of eventually
      reviewing this status. That eventuality apparently never came to be,
      and so most of those fields are probably flagged `readonly=False` for
      no reason to this day.
      
      closes odoo/odoo#126641
      
      Signed-off-by: default avatarLouis Wicket (wil) <wil@odoo.com>
      ef3d4166
  8. Aug 16, 2023
  9. Aug 14, 2023
  10. Aug 13, 2023
  11. Aug 11, 2023
    • Walid's avatar
      [FIX] mrp_account: AVCO product valuation with component cost 0 · 4000b18f
      Walid authored
      
      Steps to reproduce:
      - Create a manufactured product P with AVCO valuation
      - On the bom of the previous product add a component C with unit cost 5$
      - Manufacture product P (Unit cost correct so far 5$)
      - Change component cost to 0 and manufacture again
      - Unit cost of P is still 5$ were it should be 2.5$
      
      Bug:
      since the move unit price is 0 the standard price of the product P is
      used insted for the valuation of the newly created qty
      
      Fix:
      force unit price to 0 in the case of manufacturing
      
      opw-3374462
      
      closes odoo/odoo#130592
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      4000b18f
  12. Aug 10, 2023
  13. Aug 09, 2023
    • Julien Alardot (jual)'s avatar
      [FIX] hr_expense: adding expense after post · 3b3c7dca
      Julien Alardot (jual) authored
      
      As the move is posted,
      no editing should ever
      be allowed to the expense sheet
      
      task-3458179
      opw-3446247
      
      closes odoo/odoo#131173
      
      Signed-off-by: default avatarHabib Ayob (ayh) <ayh@odoo.com>
      3b3c7dca
    • niyasraphy's avatar
      [FIX] website_forum: show votes from same forum · ae33d2e3
      niyasraphy authored
      
      before this commit, if the user profile is opened
      from a particular forum, the votes tab is displaying
      the votes from all the forums for this user.
      
      where us, the questions and answers tab is filtering
      the data based on the selected forum.
      
      after this commit, the data displayed in the votes
      tab will also be filtered based on selected forum,
      similar to questions and answers tab.
      
      closes odoo/odoo#127023
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      ae33d2e3
    • Nshimiyimana Séna's avatar
      [FIX] l10n_de: allow tax other than account's default on line · 90de1797
      Nshimiyimana Séna authored
      
      Steps to reproduce
      ------------------
      * install l10n_de
      * switch to a german company
      * create an invoice
      * add a line such that the account's default tax is different from the
        tax set on the line (ex, account: `8400 Erlöse 19% USt` and
        tax: `7% Umsatzsteuer`)
      
      Attempt to confirm the invoice, you should see that you can't. The
      system requires the account's default tax to be the same as the tax set
      on the line. This should not be the case. It's a practice in Germany to
      link a tax to an account like this, but it's not a legal requirement.
      
      opw-3324323
      
      closes odoo/odoo#127238
      
      Signed-off-by: default avatarHabib Ayob (ayh) <ayh@odoo.com>
      90de1797
    • Andrius Laukavičius's avatar
      [FIX] hr_expense: improve computed field performance · a98a8f54
      Andrius Laukavičius authored
      
      If you have large amount of product.template records (e.g. over 40k),
      `hr_expense` module can't be installed as you would get MemoryError. It
      would consume all memory while computing `can_be_expensed` field.
      
      For that, using `_auto_init` to make it less of a memory hog.
      
      closes odoo/odoo#109729
      
      Signed-off-by: default avatarHabib Ayob (ayh) <ayh@odoo.com>
      a98a8f54
    • Thomas Lefebvre (thle)'s avatar
      [FIX] membership: add payment terms on the invoice · 61b5dd38
      Thomas Lefebvre (thle) authored
      
      Versions:
      ---------
      - 14.0
      - 15.0
      
      Steps to reproduce:
      -------------------
      - in Members app, add a membership product;
      - add a "Payment Terms" on a contact (Sales & Purchase tab);
      - in Membership tab click on "Buy Membership";
      - add the membership product and invoice;
      
      Issue:
      ------
      There is no payment term on the invoice.
      
      Cause:
      ------
      In the invoice creation flow, the following logic is not triggered:
      ```py
      if self.is_sale_document(include_receipts=True) and self.partner_id:
      	self.invoice_payment_term_id = self.partner_id.property_payment_term_id or self.invoice_payment_term_id
      ```
      Consequently, we have no invoice_payment_term_id.
      
      Solution:
      ---------
      Specify `invoice_payment_term_id` in the values used for invoice creation.
      
      Note:
      -----
      This FIX solution only handles the invoice creation
      from the membership module, to be as non-invasive as possible.
      
      In version 16.0, this is handled by the account module,
      which has made the `invoice_payment_term_id` field computed and dependent on `partner_id`.
      
      opw-3382398
      
      closes odoo/odoo#130998
      
      Signed-off-by: default avatarAndrea Grazioso (agr) <agr@odoo.com>
      61b5dd38
  14. Aug 08, 2023
  15. Aug 07, 2023
    • Ahmed Mohamed's avatar
      [CLA] 0xSaltyHash Signature · f6a996aa
      Ahmed Mohamed authored
      
      closes odoo/odoo#131005
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      f6a996aa
    • duybq86's avatar
      [CLA] signature for DuyBQ · 0a1d7d71
      duybq86 authored
      
      closes odoo/odoo#130977
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      0a1d7d71
    • stcc-odoo's avatar
      [FIX] website_sale: make website_sequence unique · 51ac0092
      stcc-odoo authored
      
      Steps to reproduce:
      
      - Install website_sale
      - Go to website shop in the frontend
      	- Login, Edit
      	- Click on 3rd or 4th kanban item
      	- Push down
      
      Issue:
      
      The item goes to the end of the list instead of moving one element to
      the right/down. Pushing an element down searches for the next element
      with a higher `website_sequence` and places the current element right
      after, by switching their sequence values.
      
      Normally the logic works fine, but the problem arises when the
      `website_sale` module is installed, when records with
      `website_sequence = NULL` are set to the same default value, namely
      10000. Then, when an item with `website_sequence = 10000` is pushed
      down, it will skip many items, before finding one with a higher
      `website_sequence`.
      
      Solution:
      
      When updating records with `website_sequence = NULL`, assign an unique
      sequence to each one. We can set the `website_sequence` relative to the
      inverse of the id to ensure that the order on the shopping page remains
      the same as it was prior to the fix.
      
      opw-3318867
      
      closes odoo/odoo#127982
      
      Signed-off-by: default avatarStefan-Calin Crainiciuc (stcc) <stcc@odoo.com>
      51ac0092
  16. Aug 06, 2023
  17. Aug 04, 2023
    • Aurélien (auma)'s avatar
      [FIX] web_editor: fix uneditable block when height > 10000px · 493d31a9
      Aurélien (auma) authored
      
      When applied, this commit will restore the edition of a block when
      the content has a height > 10000px.
      
      Steps to reproduce:
      1) Go to a runbot
      2) Go to a blog or on the homepage
      3) Enter edit mode
      4) Add some text in one bloc with a total height above 10000px
      5) The text will be uneditable on the top
      
      Current behavior:
      If the text is too important in one block (more than 10000px),
      the text will be uneditable
      
      Expected behavior:
      The text should be accessible and editable even if the block
      has too much content
      
      opw-3393570
      
      closes odoo/odoo#127719
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      493d31a9
Loading