- Jun 15, 2023
-
-
Victor Feyens authored
Since d88409e8, taxes from different companies are forbidden on sale.order.line records (which is the expected behavior). Nonetheless, this highlighted some flows where the taxes were not properly set/recomputed, especially re-invoicing, which is fixed by the current commit. Fixes #123675 closes odoo/odoo#124483 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
Mayurrajsinh Rathod authored
Before this commit: Duplicating the contact that is linked to an attendee of a course also creates a copy of an attendee as well. After this commit: It does not create duplicate attendee in course. Task-3253983 closes odoo/odoo#125148 X-original-commit: 13f03853 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Robin Lejeune (role) authored
The triangle pointing towards an option in the editor is pointing right. In a RTL setting, this does not make sense and should be mirrored. task-3284274 closes odoo/odoo#125076 X-original-commit: f65a9bff Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Eric Antones authored
This takes into account the option that allows to disable/enable the QR file generation Closes #85283 closes odoo/odoo#125038 X-original-commit: 7b433492 Signed-off-by:
John Laterre (jol) <jol@odoo.com>
-
David Monjoie authored
Those tests happened to fail nondeterministically for no apparent reason and with multiple different wrong tests results. Some of those wrong results were particularly striking like having completely empty contents, while others looked more like some kind of race condition. Aiming to kill two birds with one stone, I moved the html contents of the tests into their very own test file so that no asynchronous file loading on the server is done during testing at runtime anymore. closes odoo/odoo#125020 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Hamza (hisl) authored
Steps to reproduce the issue: Add a project and create a task with a timesheet in it set the allocated hours to 00:03 add a line in the timesheet with hours spent 00:03 Current Behaviour: The percentage calculated would be 96%, even though the time allocated and time spent are equal. Desired Behaviour: The percentage should be 100 as both values i.e. time spent and time allocated are equal. This is happening because effective_hours value is being rounded off to 2 decimal places, and is not accurate enough to compute the progress_hours. Here, I have used the same line, that is used to compute effective_hours, to compute the task_total_hours but without rounding off. This will make the calculate more precise and accurate. OPW-3270858 closes odoo/odoo#124892 X-original-commit: 3b1316e7 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
-
Andrea Grazioso (agr-odoo) authored
Have a product with internal reference Open POS session Create an order with the product Invoice Issue: Internal reference is shown twice on the invoice line opw-3343170 closes odoo/odoo#124620 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
Benoit Socias authored
*: account, event_booth, gamification, hr, project, website_event_track, website_slides HTML fields that appear in the front-end can be modified using the website editor. Some of them are sanitized in a way that breaks the behavior of snippets that can be dropped within them. This commit adapts the sanitization of those HTML fields so that the snippets behave as expected. opw-3267589 closes odoo/odoo#119543 Related: odoo/enterprise#40211 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Nguyen Viet Phuong authored
closes odoo/odoo#125132 Signed-off-by:
Brice Bartoletti (bib) <bib@odoo.com>
-
Valentin Vallaeys (vava) authored
In a Sale Order, it is possible to select an invoice address without a name. The partner of the transaction does not have a name, which leads to a traceback when trying to split the name. The idea is to force the name to be filled, with a fallback on the partner' parent name. OPW-3338406 closes odoo/odoo#124825 Signed-off-by:
Antoine Vandevenne (anv) <anv@odoo.com>
-
Saurabh Choraria authored
When notification type is set as sms we need to check whether the template which is referenced is coming from a correct model or not. Applying this commit will fix this issue. sentry-4195133685 closes odoo/odoo#122026 Related: odoo/enterprise#41322 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
arsi authored
For a `pos.payment.method`, it is possible to define an outstanding account, but if this account is not defined as an outstanding account in the company settings nor in the journal, the payment will not be considered in the bank reconciliation, nor in the bank reconciliation report. Steps to reproduce (demo-data with POS and Accounting installed): -go to 'Point of Sale/Configuration/Payment Methods'. -click on the "Bank" payment method. -add an 'Outstanding Account' which is not the default outstanding account of the company, nor an outstanding account of an `account.payment.method.line`. So for example "Liquidity Transfer". -then open a POS session, sell smth, pay with the Bank method, validate, then close the session. -If you go to 'Accounting/Customers/Payments', you can see that an `account.payment` has been created, with the outstanding account being "Liquidity Transfer". ->It is not possible to reconcile that payment with a `account.bank.statement.line`. If you go to the accounting dashboard, then click the reconcile button of the journal "Bank", then on a statement line with no partner, you will not see the outstanding line of that payment. ->If you open the 'Reconciliation Report' of the journal "Bank" (accessible from the journal dashboard, by clicking the options of the journal), the line will not show in the 'Outstanding Receipts' category. FIX: Override the `_get_journal_inbound_outstanding_payment_accounts` method of `account.journal`, to add the accounts from each `pos.payment.method` linked to the journal. Using the field `pos_payment_method_ids` from `account.journal`. opw-3271090 closes odoo/odoo#121158 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
Benjamin Vray authored
Steps to reproduce the bug: - Install the Website Slides module. - Got to the /slides page. - Click on a course. - Click on the "Add Content" button. - Choose "Web Page" in the modal. - Once in edit mode, drag and drop a "Table of Content" snippet onto the page. - Save the page. - Scroll the page and observe that the navbar items are updated as you scroll. - Click on the "Fullscreen" button. - Bug: When scrolling the page, the navbar items are no longer updated as you scroll. This commit fixes the issue by detecting the scrolling element by traversing up the ancestors from the 'table of content' snippet, instead of using the 'getScrollingElement' function, which always returned the '#wrapwrap' when a Website Slides page is in fullscreen. opw-3302118 closes odoo/odoo#124893 X-original-commit: 1ac274c3 Signed-off-by:
Romain Derie (rde) <rde@odoo.com> Signed-off-by:
Vray Benjamin (bvr) <bvr@odoo.com>
-
Benoit Socias authored
When the browser is zoomed, the value of the `border-width` CSS properties obtained through `getComputedStyle` are impacted by the zoom. Because of this, entering a "10px" border in a Chrome zoomed at 125% turns it into "9.6px" when leaving the input field. This commit neutralizes the zoom effect by rounding the value up. The rounding operation was empirically determined by observing values, see table below. When zoomed out this does not always work: e.g. at 50% zoom, a value of 11px becomes 10px. But zooming out is an unxpected use case, that situation is therefore not handled by this fix. Observed values of the border-width property: Set value => `getComputedStyle` ``` Value Chrome 125% Firefox 120% 1px 0.8px 0.83333px 2px 1.6px 1.66667px 3px 2.4px 2.50000px 4px 4.0px 3.33333px 5px 4.8px 5.00000px 6px 5.6px 5.83333px 7px 6.4px 6.66667px 8px 8.0px 7.50000px 9px 8.8px 8.33333px 10px 9.6px 10.00000px 11px 10.4px 10.83333px 12px 12.0px 11.66667px ``` Steps to reproduce: - Drop a "Text - Image" block. - Select the text column. - Zoom with ctrl+mouse wheel or ctrl-plus. - Set a 10px border. - Leave input field. => Border option field displayed a different size. task-3172235 closes odoo/odoo#125068 X-original-commit: 6398b0c7 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com> Signed-off-by:
Benoit Socias (bso) <bso@odoo.com>
-
Thomas Lefebvre (thle) authored
Issue: ------ When we have the link to the form to apply for a job, even if the job is not published, we can still apply. Solution: --------- Check that the job is published before the creation of the record in the `website_form_input_filter`. opw-3331717 closes odoo/odoo#124987 X-original-commit: 508f373f Signed-off-by:
Kevin Baptiste <kba@odoo.com> Signed-off-by:
Lefebvre Thomas (thle) <thle@odoo.com>
-
- Jun 14, 2023
-
-
Touati Djamel (otd) authored
Steps to reproduce the bug: - Install mrp_plm - Create a BoM with an analytic account - Create an ECO - Start the revision Problem: The new BoM version doesn't have the analytic account from the original one. opw-3329901 closes odoo/odoo#124841 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
Antoine Guenet authored
New rows added with TAB in a table were missing a <br> in each cell, making them appear less tall. task-2858455 for v16.0 task-3315657 for v15.0 closes odoo/odoo#121624 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Merel Geens (mege) authored
After creating a sales order for a product with cost 0, automatic inventory valuation and AVCO, and validating the delivery, no account move is created for the stock move. If an invoice is then created from the sales order, it will create 0 amount COGS lines. Automatic reconciliation of the invoice with the corresponding stock account move will fail because no such entry exists, resulting in unreconciled lines remaining in the invoices. This issue can be prevented by either creating a 0 amount journal entry for the stock move, or preventing the creation of the 0 amount COGS lines on the invoice. Not creating unnecessary COGS lines is preferable and this was also the solution used for the same problem with purchase order invoices: https://github.com/odoo/odoo/pull/106785 . So this fix does the same for sales order invoices. opw-3000320 closes odoo/odoo#125002 X-original-commit: 5de5023d Signed-off-by:
Brice Bartoletti (bib) <bib@odoo.com> Signed-off-by:
Merel Geens <mege@odoo.com>
-
Mehdi Bendali Hacine authored
closes odoo/odoo#123936 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Thomas Lefebvre (thle) authored
Steps to reproduce: ------------------- - activate "Count Extra Hours" in Attendances settings; - create attendances for an employee to create an overtime (select one day of the weekend for example); - create an Extra Hours type leave for this employee; - remove the attendance that creates extra hours; The extra hours of the employee is negative - refuse the leave created before; Issue: ------ A Validation Error occurs with the message: "The employee does not have enough extra hours to extend this leave.". Solution: --------- Refuse leave based on extra hours should not require any control because we are not trying to extend leave. opw-3342778 closes odoo/odoo#124219 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- Jun 13, 2023
-
-
Mehdi Bendali Hacine authored
The ZATCA edi has an onboarding process which happens per journal. A private key is generated for the company and with the data from the company and journal a CSR is made to get a certificate to sign the invoices. In that process that contains multiple steps (see account_journal.py), we also have to send the compliance files which are some example (simplified or not) invoices/debit and credit notes. We have a separate folder with those files and also use them in the tests. For the onboarding, they still need to be signed however. For the sending of the customer invoices themselves, UBL 2.1 is used, but with ZATCA style adaptations. That is why we inherit from that class to be able to add those specific adaptations. This UBL needs to be signed XadeS and in this case we need to do the hash with the sign information present but with empty tags. For ZATCA invoices, as is the case with Ticketbai, the previous hash is needed for the next invoice and is stored per journal. (so we have a chain of hashes) Tests written by Simon (smdc) closes odoo/odoo#106212 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Mehdi Bendali Hacine authored
For SA, we need to be able to filter on the taxes exported, as certain taxes should simply not be reported in the UBL. Part-of: odoo/odoo#106212
-
Mehdi Bendali Hacine authored
Part-of: odoo/odoo#106212
-
Mehdi Bendali Hacine authored
+ provide a better demo VAT number Part-of: odoo/odoo#106212
-
Walid authored
Steps to reproduce: 1) Have Barcode Installed and have Barcode Nomenclature set 2) edit 1st rule(Price Barcodes 2 Decimals) to type Quantity 3) Create a product with barcode 2380201000008 4) Open POS and scan barcode 2380201010007 Bug: error popup product not found because the callback for this rule is not set Fix: apply same callback as weight (set product quantity) opw-3213595 closes odoo/odoo#124705 X-original-commit: 36459d26 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com> Signed-off-by:
Walid Hanniche (waha) <waha@odoo.com>
-
Benoit Socias authored
During the forward port of [1] into [2], the call to the asynchronous version of `mode` inside `start` was lost. This commit restores that change. [1]: https://github.com/odoo/odoo/commit/2814c84e78e68e277973b44408a7ba7965f178ae [2]: https://github.com/odoo/odoo/commit/10779fe5911209d6b6a11c1690a212ab6e4e93f7 task-2990053 closes odoo/odoo#124699 Signed-off-by:
Arthur Detroux (ard) <ard@odoo.com>
-
Xavier Morel authored
odoo/odoo#122354 added this test but didn't handle that other models might trigger systray activities. On June 12th, the test started failing because calendar has a "Pricing Discussion" demo calendar event on the 12th of every month. It probably would have also failed on the 3rd and 22nd which both have demo meetings for the admin. Fix by looking up specifically activities of the test model we're concerned with. closes odoo/odoo#124600 X-original-commit: 54dce61e Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
Guillaume (gdi) authored
This commit changes the way the we-many2one and we-many2many fields work so that they check if the model they are attached to has a website_id field, if so, the data loaded from the model will be that related to the current website. After this commit, developers can get rid of the website_id field when they add a many2X field. The domain will be automatically computed. task-3316278 closes odoo/odoo#121107 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Javier Duran authored
We added a new method to identify if the current pos.order.line can be discounted in a global discount, fromt he pos_discount, module. This in order to be inherited from third ones. closes odoo/odoo#123208 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
nni-odoo authored
There are some inconsistencies in price between the original record and tax document due to rounding. This issue is now mitigated by having a more accurate decimal place rounding 3019692 closes odoo/odoo#110068 Signed-off-by:
Nicolas Viseur (vin) <vin@odoo.com>
-
- Jun 12, 2023
-
-
Thomas Lefebvre (thle) authored
Steps to reproduce: ------------------- Create leave for an employee on today's date with a type of leave that does not require a second approval. Approve the leave. Issue: ------ Employee is not absent today. Cause: ------ The filter waits until the `state` field is set to `validate1`. However, the leave has a `state` field with a value equals to `validate`. Solution: --------- The "Absent Today" filter must use `state` field equals to `validate`. opw-3339589 closes odoo/odoo#124639 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
bve-odoo authored
Steps to reproduce on fresh 15.0: Connected as Admin: 1. Install l10n_lu_peppol_id, 2. Modify the field 'edi_format_ids' on a journal (here will be on customer invoices) to the value 'Peppol BIS Billing 3.0' 3. Invoice a product using this journal and confirm it. > The XML will be generated and attached to the move. The mimetype of this attachement will be application/xml If you do the same step 3 with a user that does not have the write access right to the model ir_ui_view (see _check_contents in base), the attachment will be of type text/plain. The issue that this trigger, is that the email going out will have the wrong Content-Type for the attachments. Which will lead to incorrect management on other provider. We can bypass the security here as the XML is generated by Odoo. opw-3263542 closes odoo/odoo#124507 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Daniel Blanco authored
Description of the issue/feature this PR addresses: Before SII resolution 46 from 2022, the only documents for foreign vendors were 110 111, and 112. After that, SII and accountants are indicated as a practice to issue purchase invoices (Factura de compra 46) to foreign vendors in order to pay the vat taxes, mainly for digital services. Current behavior before PR: It is not allowed by validation restrictions to issue this document type to foreign vendors Desired behavior after PR is merged: the validation release the restriction for document type 46 closes odoo/odoo#124379 X-original-commit: ee2485fd Signed-off-by:
Josse Colpaert <jco@odoo.com> Co-authored-by:
Daniel Blanco <daniel@blancomartin.cl> Co-authored-by:
José Moreno Hanshing <jose@blancomartin.cl>
-
Guillaume (gdi) authored
This commit permits to enlarge the answer textarea in the forum. Steps to reproduce the "issue" resolved by this commit: - Go to /forum - Click on a thread - Click on "Answer" => The textarea is too small to write a long answer. task-2865782 closes odoo/odoo#124590 X-original-commit: https://github.com/odoo/odoo/commit/d5c985e8f2afcdac766e756a1f045c6229a59f1e Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by:
Dieleman Guillaume (gdi) <gdi@odoo.com>
-
Guillaume (gdi) authored
In the website forum, we checked that the post content is not empty before posting a post or an answer. Before this commit, it was just a verification that the content is not an empty string. Users are also able to post an image and we want to allow them to create a post or an answer with only an image. This commit changes the verification to check if the content is empty or if it only contains images. Steps to reproduce the issue resolved by this commit: - Go to the website forum - Create a new post - Set a title - Add an image as description - Click on "Post Your Question" => The post is not created because the content is considered as empty. task-2865782 X-original-commit: https://github.com/odoo/odoo/commit/2c409278a3d2d67efddebfe71b36a612b2ecb971 Part-of: odoo/odoo#124590
-
Yolann Sabaux authored
Steps to reproduce: 1. Create Indian Company Database 2. Install Accounting module, Install one more app " Indian - UPI " 3. Go to Setting > General Settings > Company information update > fill details in "UPI Id" field with 7874353637@paytm Issue Create and confirm vendor bill and Print the same at a bottom you will see QR code of our company UPI id. And we don't want the qr-code to be printed on a bill. opw-3284324 closes odoo/odoo#123859 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Stanislas Gueniffey authored
Previously, when copy-pasting HTML with styles on styleable tags, those styles could still be removed by the editor if they had a default value. This was supposed to be a way to keep the DOM clean and lighter. However, styles with default values still serve a purpose when overriding non-default values inherited by their parents. Therefore, removing them was a conceptual mistake. One example in the editor where this purpose can be served is in tables where spans can override the style of the cell or parent span. This commit ensures we no longer remove style attributes because of their default value. Task-3332955 closes odoo/odoo#121862 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Preksha Chouhan authored
When we create a journal and it gets one of the payment method's value as False and we input another payment method. it will give an error with the message - 'sequence item 0: expected str instance, bool found' Steps to Produce:- 1. Go to Accounting then configuration 2. Click on 'Journals' under Accounting 3. Create or click on exiting one 4. Input all required fields and select 'Type' as Cash or Bank 5. Delete value of one of either incoming payments or outgoing payments 6. Click on save 7. Remove name of one of the payment method and input other Trace-back will be generated. Applying these changes will resolve this issue. closes odoo/odoo#119787 Signed-off-by:
Laurent Smet <las@odoo.com>
-
Om Rabara authored
TypeError: expected string or bytes-like object This error occurs when the 'url_from' field is left empty during website rewrite To reproduce this issue, follow these steps: 1. go to website -> configuration -> redirects 2. create a new record -> select 308 redirect / rewrite in action 3. keep 'url from' empty and put any value in 'url to' such as '/' 4. Click on the save button, and this error message will be displayed. After applying this commit will fix this issue. task-3346588 sentry-4229658026 closes odoo/odoo#124510 X-original-commit: 26fa923f Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Denis Ledoux authored
The revision dd3f918c introduced a regression: it was no longer possible to set an icon in the import module, and if no icon is provided, the icon should fall back to the base module icon, which wasn't the case either. In this last case, it even leaded to a crash: ``` File "/home/odoo/src/14.0/odoo/odoo/addons/base/models/ir_module.py", line 251, in _get_icon_image with tools.file_open(path, 'rb') as image_file: File "/home/odoo/src/14.0/odoo/odoo/tools/misc.py", line 176, in file_open return _fileopen(name, mode=mode, basedir=base, pathinfo=pathinfo, basename=basename, filter_ext=filter_ext) File "/home/odoo/src/14.0/odoo/odoo/tools/misc.py", line 211, in _fileopen raise ValueError("Unknown path: %s" % name) Exception ValueError: Unknown path: /base/static/description/icon.png ``` opw-3340652 closes odoo/odoo#124471 X-original-commit: 77939849 Signed-off-by:
Denis Ledoux (dle) <dle@odoo.com>
-