Skip to content
Snippets Groups Projects
  1. Aug 18, 2023
  2. 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
  3. 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
  4. Aug 16, 2023
  5. Aug 14, 2023
  6. Aug 13, 2023
  7. 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
  8. Aug 10, 2023
  9. 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
  10. Aug 08, 2023
  11. 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
  12. Aug 06, 2023
  13. 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
    • Jinane Maksoud's avatar
      [FIX] account: avoid infinite loop when creating taxes of type 'group' · d20f2e2b
      Jinane Maksoud authored
      
      When updating taxes, creation of taxes of type 'group' does not
      work correctly if either a child or the parent itself has been deleted.
      Indeed the creation of _generate_tax() method suppose that both the parent
      and the child needs to be created in the same batch while we can have
      databases where one of those already exists and will go in the 'update'
      and not 'creation' part of the script.
      
      closes odoo/odoo#130407
      
      Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
      d20f2e2b
  14. Aug 03, 2023
  15. Aug 02, 2023
  16. Aug 01, 2023
    • Matheus Leal Viana (malv)'s avatar
      [FIX] account: display amount due field in boxed layout · f71626fa
      Matheus Leal Viana (malv) authored
      
      Versions:
      ---------
      - 14.0+
      
      Steps to reproduce:
      -------------------
      1. Settings -> Configure document layout
      2. Select the Boxed layout
      3. Go to Invoices -> create a new invoice and register payment
      4. Click on Preview
      5. The field “Amount due” is in the wrong color and barely visible
      
      Issue:
      ------
      The field “Amount due” is in the wrong color and barely visible in
      invoice boxed layout
      
      Cause:
      ------
      The issue is happening because we have `<strong>`  before the text
      ”Amount due” and it changes the font color to gray because of the CSS definitions
      
      Solution:
      ---------
      We need to make the text bold in a different way, to do it we can use the bootstrap
      class font-weight-bold, this way we keep it bold and do not break the colors
      
      OPW-3374092
      
      closes odoo/odoo#128451
      
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      f71626fa
    • Yash Vaishnav's avatar
      [FIX] hr_timesheet: fix task_id field records when creating a timesheet · 174612e4
      Yash Vaishnav authored
      
      To reproduce the issue, follow these steps:
      
      1. Install the Timesheet and Project.
      2. From the settings menu, create a new company.
      3. Create a project using the newly created company(e.g. New Company) and add
         a task to it.
      4. Open the Timesheet application and create a new timesheet.
      5. In the timesheet, select the project created in step 3, and observe that the
      dropdown for tasks does not display any task.
      
      Cause for this issue:
      -The timesheet application has a domain set for the task field where the company
      associated with the task_id should be the same as the company selected in the
      current environment.
      -However, when a new project is created with a 'New Company', the tasks
      associated with it also have the  'New Company' assigned to them. On the other
      hand, the current environment has a default company called 'Your Company'
      associated with it.
      -Therefore, due to this domain setting, the task field does
      not display any tasks since there are no tasks associated with the
      'Your Company' in the current environment.
      
      Fix:
      Since the cause of the issue is related to the company domain set in the task
      field, we can solve it by removing it from the domain.
      
      task-3323027
      
      closes odoo/odoo#122631
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      174612e4
Loading