- Jun 16, 2023
-
-
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#125178 X-original-commit: c002e6bf Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com> Signed-off-by:
Arnaud-Sibille (arsi) <arsi@odoo.com>
-
Stanislas Gueniffey authored
Most e-mail clients do not support CSS rules for hover effects. Previously, the mass_mailing application allowed to add buttons with such effects. This was confusing to some and introduced discrepancies between the editor preview and the actual e-mails. This commit removes such hover effects from buttons in the context of mass mailing. Task-2936682 closes odoo/odoo#125268 X-original-commit: 55aff2dcdf5537e16bdaf01ee68d776510572171 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Hubert Van de Walle (huvw) authored
Steps to reproduce ================== - Switch to arabic - Open a datepicker - Select the month The month are displayed twice in two different arabic namings. Cause of the issue ================== There is an issue in the moment locale files since [0]. It has been made apparent since [1]. Solution ======== Cherry pick a fix from the moment repo [2]. Revert the ar.js locale from before [0] [0]: 11f3e735 [1]: 6a1183f4 [2]: https://github.com/moment/moment/commit/251fba65cca5d5b2cf79f1f51a9d413c5e0cb161 opw-3349560 closes odoo/odoo#125241 Signed-off-by:
Julien Mougenot (jum) <jum@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#125236 X-original-commit: 505109d4 Signed-off-by:
Antoine Vandevenne (anv) <anv@odoo.com> Signed-off-by:
Vallaeys Valentin (vava) <vava@odoo.com>
-
Bert Stomphorst authored
closes odoo/odoo#125192 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Julien Mougenot authored
With [1], the enforced black and white CSS values set on the :root were not interpolated and rendered as the variable names instead of their values. This commit fixes that. [1]: https://github.com/odoo/odoo/commit/e406b084815b19a43e0d92d0f2bf119db230d7f6 closes odoo/odoo#125176 Signed-off-by:
Quentin Smetz (qsm) <qsm@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#125141 X-original-commit: 547355a5 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Robin Lejeune (role) authored
The triangle pointing towards an option in the editor is pointing right and the symbol └ is used to show a sub option in the editor panel. In a RTL setting, this does not make sense and should be mirrored. task-3284274 closes odoo/odoo#125091 X-original-commit: f65a9bff Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Rodolpho Lima authored
Before this commit, when viewing the content of an html field in readonly mode, internal links (same origin or relative links) that did not have the target attribute set to "_blank" would be opened in the same browser tab. This is undesired, and particularly disturbing when the content is inside an iframe. This commit ensures that, in readonly mode, all links are opened in a new tab. task-3323602 closes odoo/odoo#125024 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#124914 X-original-commit: 3b1316e7 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
-
xO-Tx authored
Steps to reproduce: - Open base runbot with no installations > Install Account > Check an invoice preview. - Install Website > Check invoice preview > It looks narrow and does not fill the available width. Starting from [1], the code that sets the `container-fluid` class on HTML web reports was replaced with the Owl version on the `ReportAction` [2] but since some reports are not using this system, the code was restored in a separate JS module. [1]: https://github.com/odoo/odoo/commit/feef532b417828905ce09675043b55b2b3736e43 [2]: https://github.com/odoo/odoo/commit/feef532b417828905ce09675043b55b2b3736e43#diff-ed0708a6c1a18e945a7829b2f8b17df7a2fbe4ab83e27fe6140dba79465c2832R39-R43 opw-3209231 closes odoo/odoo#124742 Signed-off-by:
Romain Derie (rde) <rde@odoo.com>
-
Thomas Lefebvre (thle) authored
Issue: ------ When a cart is created via ecommerce, an email is sent to the salesperson (defined in Settings/Website/Assignment). This email contains a subtitle with the amount of the sale order. This price is always 0.00. Cause: ------ The email is sent during the creation of the sale order and not after it has been updated with the product information. Solution: --------- Use a key in the context to prevent sending the price of a sale order. Remark: The email sent in this case is an assignment email only. Mentioning the price in this case would not be relevant if the customer subsequently updates their cart. opw-3329722 closes odoo/odoo#123916 Signed-off-by:
Lefebvre Thomas (thle) <thle@odoo.com> Co-authored-by:
Feyensv <vfe@odoo.com>
-
Prakash Prajapati authored
When the hr_timesheet module is not installed and a customer uses the action_project_timesheets action through customization, a traceback will occur because he will not get the action of hr_timesheet. closes odoo/odoo#123214 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
-
- Jun 15, 2023
-
-
Ali Alfie (alal) authored
Before: when using the quick encoding feature on an invoice or bill with payment term containing an early payment discount and the company's epd computation is set to "Always (upon invoice)", the calculation was done incorrectly. Example: if you invoice a 100€ product with a 21% tax with a 2% cash discount, the total of the invoice will be 120.58 (the 21% is calculated on 98€ (100€*2%) which is 20.28€). In our case, if you tried to calculate suggestions from a quick encoding value of 120.58, the calculation would calculate the untaxed amount from the 120.58 based on the 21% tax without applying the 2% discount. After: when calculating the suggestions check if an early discount is set on the payment term and the company's epd computation is set to "mixed" ("Always (upon invoice)") and if so, apply the discount to the tax before calculating the untaxed amount from the total. task-3339223 closes odoo/odoo#123748 Signed-off-by:
Laurent Smet <las@odoo.com>
-
Prakash Prajapati authored
task-3345839 closes odoo/odoo#123212 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
-
Harsh Bhatt (habh) authored
When user changes the default_account_id on a journal and tries to open a statement line, they will get the traceback. Note: This is reproduceable by using account_accountant only. Steps to reproduce: 1) open configuration of bank journal 2) change default_account_id (bank account) from bank to cash 3) open bank statement 4) open any statement line 5) by following these steps, traceback occurs. This commit will prevent the above traceback. sentry - 4059226840 closes odoo/odoo#122428 Related: odoo/enterprise#42232 Signed-off-by:
Laurent Smet <las@odoo.com>
-
roen-odoo authored
Current behavior: When computing the discountable values of an order, the discount of the program where not taken into account if you used specific discountable products. Steps to reproduce: - Create products A and B with a price of 20$ - Create a loyalty program - Rule: - Minimum qty : 2 - Apply on specific products : Product A and Product B - Reward : 5 points per order - Reward: - 10$ per order - In exchange of 2 points - Apply on specific products : Product A and Product B - Open PoS and add Product A and Product B to the order - A reward should be added automatically with a value of -10$ - Click on the reward button, another reward should be added but it has the wrong value. It should be -10$ but it is not. opw-3232565 closes odoo/odoo#121209 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
hote authored
Before this commit the reports in sales and associated app suffered from a confusion between multiplicative and divisive rates for currency conversion. After this commit this will no longer be the case. There are several models with their own currencies that are involved in computing the amount of a sale order: - the order's company currency `order.company_id.currency_id` - the order's pricelist currency `order.pricelist_id.currency_id` - the product's currency for each product in the sale order `product.currency_id` In the case of a report we need also to take into account the current user's company currency: `self.env.company.currency_id`. The `sale_order.currency_rate` is the **multiplicative <u>rate</u>** to convert from the company currency into the SO currency. Any product added to a sale order follow the next conversion. Let `conversion_rate` be the conversion rate between the product's currency and the order's company currency, then: ```python product_amount_converted = product.list_price / conversion_rate order.amount_total += product_amount_converted * order.currency_rate ``` The rates returned by `_get_query_currency_table()`, on the other hand, are computed as the **multiplicative <u>ratio</u>** to convert from each company currency into the current user's company currency. Any order that is to be analysed on a *report* follow the next conversion. Let `current_company_currency_rate` be the conversion rate between the order's company currency and the current user's company, then: ```python order_amount_in_cmp_currency = order.amount_total / order.currency_rate report.order_id.price_total = order_amount_in_cmp_currency * current_company_currency_rate ``` What follow is a numerical example. Suppose you have the following multi-company and multi-currency environment. |order.id|order.company |line.subtotal|order.currency|order.currency_rate| | ------ | ----------- | ----------- | ------------ | ----------------- | |1 |BE Company (EUR)|1000 |INR |89.46 | |2 |BE Company (EUR)|2000 |USD |1.09 | |3 |BE Company (EUR)|3000 |EUR |1.0 | |4 |US Company (USD)|4000 |USD |1.0 | If we try to convert all of this for reporting in the US company, the currency table returned by `_get_query_currency_table()` will give this (company currencies vs USD): |currency_table.company|currency_table.rate| | -------------------- | ------------------ | |BE Company (EUR) |1.09 | |US Company (USD) |1.0 | Finally, in order to convert each amount into USD, applying the formulae listed above should give the following result: |order.id|order.company|display_price_usd | | ------ | ----------- | -------------------------- | |1 |BE Company |1000 / 89.46 * 1.09 = 12.18 | |2 |BE Company |2000 / 1.09 * 1.09 = 2000.00| |3 |BE Company |3000 / 1.0 * 1.09 = 3270.00 | |4 |US Company |4000 / 1.0 * 1.0 = 4000.00 | |Total (USD): 9282.18| Task - 3277006 closes odoo/odoo#119608 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
Martin Trigaux authored
closes odoo/odoo#125182 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Kartik Chavda authored
Steps: - Install studio. - Open studio. - Click on reset default view. Issue: - Confirmation dialog body display in single line instead in multiple lines same thing happens in pos confirmation dialog also in new friendly message task we need to display error message in multiple line. Cause: - There is a style missing on body of that dialog to preserve white spaces also need to use other tag then <t> to apply proper style Fix: - Use <p> tag instead <t> tag and add `white-space:pre-wrap;` to preserve space in that dialogs. task-3356114 closes odoo/odoo#124953 Signed-off-by:
Pierre Paridans (app) <app@odoo.com>
-
Andrea Grazioso (agr-odoo) authored
Have an Egyptian company setup Go to Currencies > USD Add a new entry with Unit per EGP 0.03232062055591467 Issue: Warning will raise "Please make sure that the EGP per unit is within 5 decimal accuracy. Higher decimal accuracy might lead to inconsistency with the ETA invoicing portal!" Even if the shown EGP per Unit is 30.940000000000 it is actually 30.940000000000005 and it will fail the equal-to-rounding test opw-3333395 closes odoo/odoo#124812 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
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#125094 X-original-commit: 02109800 Signed-off-by:
William Henrotin (whe) <whe@odoo.com> Signed-off-by:
Djamel Touati (otd) <otd@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#125021 Signed-off-by:
Brice Bartoletti (bib) <bib@odoo.com> Signed-off-by:
Merel Geens <mege@odoo.com>
-
Jurgen (jugj) authored
Following an FP-Request, this PR aims to ease the life of the user by indicating the full name of the elements that are truncated due to their length as a tooltip. task-3332648 closes odoo/odoo#121963 Signed-off-by:
Kevin Baptiste <kba@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#125087 X-original-commit: 6398b0c7 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com> Signed-off-by:
Benoit Socias (bso) <bso@odoo.com>
-
Tom De Caluwé authored
Identifiers (including column names) that are not double-quoted are folded to lowercase in PostgreSQL. Before this commit, this resulted in errors when updating translations for translatable fields, because the query did not correctly quote all identifiers. opw-3287428 closes odoo/odoo#124500 Signed-off-by:
Julien Castiaux (juc) <juc@odoo.com>
-
Jay Savaliya authored
When user will open the video in any course, it will be marked as completed directly which behaves like any other content(pdf, image). This behavior was introduced when 'slide_view' was modified in https://github.com/odoo/odoo/commit/4c291fe30468dab7cef9d2e5a0377c78484f5045 , but in the case of video, it must not be marked as completed before the video is watched up until(near) the end, as per the previous behavior. Task-3346507 closes odoo/odoo#124123 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Touati Djamel (otd) authored
Steps to reproduce the bug: - create a new transfer - Click on new line but leave it empty - Change operation type Problem: A traceback is triggered, because the onchange of picking_type is triggered, so we try to get the description of each product in each move. However, since the move does not have a product set, an error is thrown: https://github.com/odoo/odoo/blob/16.0/addons/stock/models/product.py#L235-L239 opw-3349646 closes odoo/odoo#125010 Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
-
- Jun 14, 2023
-
-
Julien Carion (juca) authored
This commit fixes the object reference issue which was linked to the TaxTotals Component computations. The issue was that discarding changes on the tax field of a vendor bill wouldn't roll back the field's value visually while the record would still have correctly updated values. This issue originates from the fact that operations were made to compute the taxes in the component but these would affect the server data as well since the object reference between the local data and the server data was the same. This means that the discard operation would bring the displayed value back to the server data's one which has been modified by the computations so it would not work. The reference to the server data is now separated from the local one so that the bug won't appear anymore. opw-3285209 closes odoo/odoo#123278 Signed-off-by:
Mathieu Duckerts-Antoine <dam@odoo.com>
-
Jurgen (jugj) authored
task-3332640 closes odoo/odoo#122436 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Rodolpho Lima authored
Before this commit, when using the LinkTools (website, mass_mailing), if an http URL contained a "@" (ex: https://www.youtube.com/@iRopes ), it got incorrectly recognized as an e-mail URL and the option to open the link in a new windown was hidden from the UI. This commit fixes the issue by making the test for e-mail URL slightly more robust than just checking for the presence of a "@". task-3356685 opw-3349704 closes odoo/odoo#124110 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
pedrambiria authored
Before this commit, purchasing a gift card along with applying a free product promotion in the same order resulted in the gift card balance being decreased by the free product price. Steps to reproduce: 1. Create a buy x get y promo program. 2. Open the POS and use this program and sell a gift card in the same transaction. 3. Activate the promo program and complete the transaction. The promo program discount will take money of the gift card amount. Also there is another issue with Loyalty Cards points: When the reward's product in not valid of the rule, it will decrease the point when you add the reward. opw-3284636 closes odoo/odoo#121962 Signed-off-by:
Joseph Caburnay (jcb) <jcb@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#124709 X-original-commit: 9ae7fdb8 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Chintan Panchal (can) authored
Before this commit, `o_grid_item_image` was not handling videos but image-only. This commit adds support for `.media_iframe_video` in addition to `img` to ensure consistent styling across both images and videos within the grid items. task-3103775 closes odoo/odoo#121266 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Louis (loco) authored
Steps to reproduce the problem: - Drop a popup snippet in a page. - On another language, click on translate. - Problem -> It is impossible to translate the popup. To resolve this problem, the function `_updateInvisibleDOM` is called even in translation mode. Thanks to this function, the invisible snippets are now filled in the edit bar and the user has the opportunity to display them or to hide them. task-3098517 opw-3268592 opw-3283140 closes odoo/odoo#121219 X-original-commit: 04409af0 Signed-off-by:
Quentin Smetz (qsm) <qsm@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#124959 X-original-commit: b86afb9f Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Gauthier Wala (gawa) authored
To reproduce: - Activate analytic accounting - Create an analytic plan - Click on Subplans - Create a Subplan - Come back to the list view of subplans (with the breadcrumb) => The new plan does not appear The children_ids are not recomputed, so we inverse the logic. task-3359643 closes odoo/odoo#124404 Signed-off-by:
William André (wan) <wan@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#124773 X-original-commit: 4a33669e Signed-off-by:
Nicolas Viseur (vin) <vin@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#124913 X-original-commit: 1ac274c3 Signed-off-by:
Romain Derie (rde) <rde@odoo.com> Signed-off-by:
Vray Benjamin (bvr) <bvr@odoo.com>
-
yhu-odoo authored
To reproduce: 1. Create a storable product with ordered quantities policy for purchase and with a category set as FIFO automated 2. Create a purchase order in a different currency and set quantities for partial deliveries 3. Create a partial delivery 4. Fully invoice the purchase order 5. Create the delivery of the complementary units 6. Check the stock valuation layer The valuation of backorder is wrong. The value on valuation layer is in company's currency, while the value on invoice line is in the PO's currency. When create valuation line for backorder, we didn't convert them to same currency. opw-3300266 closes odoo/odoo#123118 Signed-off-by:
Arnold Moyaux (arm) <arm@odoo.com>
-