- Aug 31, 2023
-
-
Julien Van Roy authored
In Saudi Arabia, the InvoiceLine/ID should not be greater than 6 digits. Using the move.line_id, this limit can be exceeded. Simply count the invoice line ids starting from 1 instead. In master, add a parameter `line_id` to `_get_invoice_line_vals`. closes odoo/odoo#133675 X-original-commit: 94aac2ed Signed-off-by:
Josse Colpaert <jco@odoo.com> Signed-off-by:
Julien Van Roy (juvr) <juvr@odoo.com>
-
Pedram (PEBR) authored
Previously, when creating a new customer from the POS interface, if the default language was not changed in the form, an empty string would be sent to the backend. This resulted in the new customer not having a language set. This commit establishes the default language selection as the user's selected language when creating a new customer within the POS system. opw-3466525 closes odoo/odoo#133020 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
Victor Piryns (pivi) authored
Issue: In the project's portal view, if the user is previewing his tasks of a project with a specific order that is not date or name, and then goes back to the project list view via the breadcrumb, he is met with an error 500. Steps to reproduce: - Install Project - With the portal user, go to Project - Click on a project and sort the task by 'project' - Go back to the project view via the breadcrumbs. - Error 500 Cause: Due to the definition of the url of the breadcrumbs which is set with `keep_query` which keeps the arguments of the url. The issue with that is that for the project list view, some of the sort arguments are not defined, as they are only present in the task view. So if we sort based on 'project' there is a `KeyError` in the controller of the project portal view. Fix: If the `sortby` is not one of the valid keys, we fallback on 'date' sorting, which is the behaviour in case when there is no `sortby` argument in the url. This will keep the `sortby` in the arguments of the URL, but just ignoring it. This is better UX than having a hard redirection, because if the user decides to click on a project, the tasks will be sorted with his previous order specified, which is usually the wanted behaviour. Affected versions: 15.0 -> 16.0 opw-3425342 closes odoo/odoo#133642 X-original-commit: 00126875 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com> Signed-off-by:
Piryns Victor (pivi) <pivi@odoo.com>
-
Levi Siuzdak (sile) authored
Versions: --------- - 16.0 - saas-16.1 - saas-16.2 - saas-16.3 - saas-16.4 Steps to reproduce: ------------------- 1. install the purchase and account_accountant modules 2. create a purchase order using a non-default currency; 3. create bill; 4. switch to a journal without set currency. Issue: ------ Currency of bill automatically changes from the one used by the order to the company default. Cause: ------ The `account.move` model only looks at bank statements, journal, and the company default when computing currency, ignoring any value that might already be present in the invoice: ``` def _compute_currency_id(self): for invoice in self: currency = ( invoice.statement_line_id.foreign_currency_id or invoice.journal_id.currency_id or invoice.journal_id.company_id.currency_id ) invoice.currency_id = currency ``` Solution: --------- Try to retrieve currency from `invoice.currency_id` before falling back on the company default. opw-3434518 closes odoo/odoo#131366 Signed-off-by:
Levi Siuzdak (sile) <sile@odoo.com> Signed-off-by:
William André (wan) <wan@odoo.com>
-
- Aug 30, 2023
-
-
Guillaume (gdi) authored
Since [this commit], it's now possible to edit a media when it's in a parent that is not editable thanks to `o_editable_media` class. Unfortunately, these changes make the new class bypass the potential `data-exclude` defined in the XML option declaration. So if the target looks like that: ```html <img class="o_editable_media odoo"/> ``` and the XML option declaration has a `data-exclude=".odoo"`, the option will still be displayed. This commit corrects the way the `o_editable_media` class works, so that it only bypasses the `.o_not_editable` but not the entire exclude. [this commit]: https://github.com/odoo/odoo/commit/580f1b77ce0b96b7efbf83a0ccdf6979bbf0e904 task-3476644 closes odoo/odoo#133594 X-original-commit: f73734557116a348ac14b2724e1380546192ca12 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com> Signed-off-by:
Guillaume Dieleman (gdi) <gdi@odoo.com>
-
MerlinGuillaume authored
The inherited field of a custom field cannot be deleted Steps to reproduce: 1. Install Contacts and Studio 2. Go to Contacts and open any contact 3. Toggle Studio 4. Add a field of any type in the view, remove it and close Studio 5. Go to Settings > Technical > Database Structure > Fields and search for `x_studio` Solution: Mark the inherited field as manual if its parent field is manual and allow the deletion of inherited custom field if we also delete its dependency Problem: The inherited field was not marked as custom so it was impossible to delete it opw-3093581 closes odoo/odoo#133562 X-original-commit: b700c3c6 Signed-off-by:
Raphael Collet <rco@odoo.com> Signed-off-by:
Guillaume Merlin (megu) <megu@odoo.com>
-
Ricardo Gomes Rodrigues (rigr) authored
Currently, the user has access to a "Switch into credit note/refund" but not the reverse button to go from a credit note/refund to an invoice/bill. This is now the case. This is a partial backport of odoo#103427 task-id 3102251 closes odoo/odoo#133497 X-original-commit: 6f9593a Related: odoo/enterprise#46492 Signed-off-by:
Florian Gilbert (flg) <flg@odoo.com> Signed-off-by:
Louis Baudoux (lba) <lba@odoo.com>
-
Romain Estievenart authored
When we changed the display of the form in v16, we forgot to adapt the python framework default form view layout (used when the form view of the model isn't defined). This provided a weird layout in these case on Odoo 16.+. To fix this bad behavior, we adapt the algorithm used to build the default view form. Steps to reproduce: Create a model without a form view and edit it (like we do when you follow the rd training). closes odoo/odoo#132228 Signed-off-by:
Pierre Paridans (app) <app@odoo.com>
-
Andrea authored
Add IRPF taxes to Spain 35% and 19% closes odoo/odoo#130728 Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
Walid HANNICHE (waha) authored
Steps to reproduce: - Create a product in KIT - The product and components must be AVCO rated. - Sell product, confirm delivery and post the invoice Bug: the journal entries are not reconciled. the lines are gouped by product but in this case the products don't match on the stock side it's the components and on the invoice it's the kit Fix: match components stock moves of kits to the kit product opw-3208169 closes odoo/odoo#133200 X-original-commit: bd082d90d00d62ed9c72b053dae3d9c1f2582088 Signed-off-by:
Adrien Widart (awt) <awt@odoo.com> Signed-off-by:
Walid Hanniche (waha) <waha@odoo.com>
-
Benoit Socias authored
Since the website page preview is within an iframe, the selector used to neutralize some events during edition of blog pages were not targetting the elements anymore. This commit makes the elements looked up within the iframe. opw-3450880 closes odoo/odoo#133052 Signed-off-by:
Romain Derie (rde) <rde@odoo.com> Signed-off-by:
Benoit Socias (bso) <bso@odoo.com>
-
Benoit Socias authored
Steps to reproduce: - Go to `/blog`. - Enable "Show Sidebar" in the "Customize" menu. - Edit the page. - Click on an icon of the "Follow Us" section of the sidebar. - Click on the "Link" icon of the editor toolbar. => An error popup appears. In further versions, the link parameters can be edited - but they are lost upon save. The social media links sections of the blog and blog post pages is generated and is not supposed to be editable. This commits makes these social media links sections non editable. If a user needs to configure such a content specifically, it can be done inside the "About Us" section of the sidebar above. E.g.: - Deactivate the "Follow Us" section from the "Customize" menu. - You can use copy/paste to duplicate the existing style of the "About Us" section if you want. - Click on the "File / Image" icon of the editor toolbar (or type "/image" to use the Power Box as of 15.0). - Select a pictogram. - Click on the "Shape: Circle" icon of the editor toolbar. - Select the "Font Color" from the editor toolbar. - Click on the "Link" icon of the editor toolbar to specify an URL. opw-3450880 X-original-commit: 27d8633c Part-of: odoo/odoo#133052
-
jort-aardug authored
closes odoo/odoo#127527 Signed-off-by:
William André (wan) <wan@odoo.com>
-
jorttd authored
Part-of: odoo/odoo#127527
-
jorttd authored
Part-of: odoo/odoo#127527
-
lejeune quentin authored
With the latest iot 23_07 image update the wifi connection was unusable. We correct the activation of the wifi hardware of the raspberry with rfkill unblock all closes odoo/odoo#133566 Signed-off-by:
Quentin Lejeune (qle) <qle@odoo.com>
-
Sébastien Geelen (sge) authored
Before this commit: * A delete at the end of an empty block just before a table (unbreakable), nothing happened. After this commit: * A delete at the end of an empty block just before an unbreakable block, the empty paragraph should be removed and the selection put at the beginning of the unbreakable block. task-3186679 task-3252775 closes odoo/odoo#125211 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Sébastien Geelen (sge) authored
Before this commit: * A backspace at the beginning of a List Item (LI), the indentation of the list item was reduced by 1 unit. If not possible, the current LI was merge with the previous LI. * A delete at the end of a LI, first we remove one unit of indentation from the next LI, only when not possible anymore we merge next LI in the current LI. After this commit: * A backspace at the beginning toggle off the current LI ( the LI tag is remove and popped out of the List ) The parent List is splitted if needed. * A delete at the end of a LI directly merge next element inside the current LI. task-3186679 Part-of: odoo/odoo#125211 Co-authored-by:
Aashish Thakur <aath@odoo.com>
-
Sébastien Geelen (sge) authored
Before this commit: On backspace current node is removed and it's content were moved to it's preceding node. After this commit: Now keeping the current node it removes preceding node if empty and if not empty then merge current node to previous node. Task-2909314 task-3186679 Part-of: odoo/odoo#125211 Co-authored-by:
Sanjay Sharma <shsa@odoo.com>
-
- Aug 29, 2023
-
-
Louis Wicket (wil) authored
Some strings are missing in the pot file and are therefore not translated. This commit updates the pot file to the latest changes. closes odoo/odoo#133495 Signed-off-by:
Louis Wicket (wil) <wil@odoo.com>
-
hupo-odoo authored
The following commit https://github.com/odoo/odoo/commit/0015662d166f5e07bcbd6c5e9e14f8837ffa58a3 was incorrectly done because the records are already limited to a 100 in the search query. We therefore remove redundant loop. We also moved up all possible UserError in the _post() method before the soft computation such that if any UserError is raised (with the autopost cron for example), the soft computation will not be executed. task-3482939 closes odoo/odoo#133485 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Nicolas Bayet authored
In order to fix wrong url recognition, improve the url REGEX by: - Recognize an url with a dot at the end in the string `www.google.be.`. It was not recognized before this commit. - Do not allow a special character after an url that is not separated by "/", "?", or "#". Before this commit, the content `www.google.be!` would have been recognized the url as `www.google.be!` instead of `www.google.be`. - Do not include in the url some character if they appear at the end. The chars are: - . - , - } - ) - ] - ' - " task-3373367 closes odoo/odoo#125217 Signed-off-by:
David Monjoie (dmo) <dmo@odoo.com>
-
Gabriel de Paula Felix (gdpf) authored
Now it is possible to delete future_events of recurrences when they are not synced with Outlook. Also fixes sync problems of Google events when Outlook sync is active. Next step: divide by modules and squash commits. closes odoo/odoo#132519 Task-id: 3473180 Signed-off-by:
Arnaud Joset (arj) <arj@odoo.com>
-
Gabriel de Paula Felix (gdpf) authored
Deletion flow working alright now. Task-id: 3473180 Part-of: odoo/odoo#132519
-
Gabriel de Paula Felix (gdpf) authored
Before this commit, trying to delete a recurrent event that was already synced with Google Calendar or Microsoft Calendar was raising a traceback and not showing the User Error which forbids this action to be done. After this commit, the traceback is not shown anymore and the User Error is correctly presented to the user while trying to delete a recurrent event (with Microsoft synchronization active). Traceback snippet: result = _call_kw_multi(method, model, args, kwargs) File '/data/build/odoo/odoo/api.py', line 448, in _call_kw_multi result = method(recs, *args, **kwargs) File '/data/build/odoo/addons/microsoft_calendar/models/calendar.py', line 168, in action_mass_archive if self._check_microsoft_sync_status() and any(self.microsoft_id): TypeError: 'bool' object is not iterable The above server error caused the following client error: RPC_ERROR: Odoo Server Error Issue: 3468190 Task-id: 3473180 Part-of: odoo/odoo#132519
-
Theo VINCENT (thvi) authored
The closing session popup input for bank payment methods throws an error when no cash payment method is configured. Steps to reproduce: - Configure a shop without any cash payment method and with at least one bank payment method - Open a session for that shop - Click on the button to display the closing session popup - In the popup, change the amount of the bank payment method An error is thrown. The fix simply consists in correctly checking if there is a cash payment method. closes odoo/odoo#133425 Task-id: 3468828 X-original-commit: b1dca1d0 Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
-
Christophe Simonis authored
Don't do it only at install. closes odoo/odoo#133385 X-original-commit: 5add840b Signed-off-by:
Nicolas Seinlet (nse) <nse@odoo.com> Signed-off-by:
Christophe Simonis (chs) <chs@odoo.com>
-
Mahdi Cheikh Rouhou (macr) authored
Issue: ====== When selecting a domain in a list displayed with a groupby(vendor for example) and then apply action -> deleted , it will only delete the unfolded record. Steps to reproduce the error: ============================= - Create multiple purchase orders with different vendors - Go to purchase and groupby vendor - Unfold only one vendor and select all items - Select all will appear on the top -> click on it - action -> delete - it will only remove the unfolded records Problem: ========= `isDomainSelected`is true in `DynamicGroupList` but it's `list` list will not have the same thing because it's not propagated to it. Also there is no reload after the deleted so the groups will stay on the list as empty groups which is not expected. Solution: ========= I overrided the `selectDomain` function to propagate `isDomainSelected` and added `load`after the delete operations to update the aggregate and remove the fully removed groups. opw-3461732 closes odoo/odoo#132001 Signed-off-by:
Julien Mougenot (jum) <jum@odoo.com>
-
Jurgen (jugj) authored
closes odoo/odoo#133170 X-original-commit: 7bdb6e66 Related: odoo/enterprise#46305 Signed-off-by:
Sofie Gvaladze (sgv) <sgv@odoo.com> Signed-off-by:
Jurgen Gjini (jugj) <jugj@odoo.com>
-
Lucas Lefèvre (lul) authored
closes odoo/odoo#132722 Signed-off-by:
Lucas Lefèvre (lul) <lul@odoo.com>
-
Victor Piryns (pivi) authored
Issue: In project profitability, `account.move.line` from invoices without the corresponding sales order with negative amounts where not taking into account for the computation of the profit margins. Steps to reproduce: - Install Sales, Accounting, Project, Inventory - Create 3 products: - 1 service (S1), fixed price, creates project on confirm - 1 service (S2), fixed price, creates nothing - 1 storable (P), a lot of quantity on hand, invoiced when delivered - Create an SO with SOL: - S1 with price 0 (1 qty) - S2 with price -320 (1 qty) - P with price 320 (1 qty) - Confirm SO, deliver P, create invoice - Confirm invoice > Duplicate > confirm - Go to the proj.profitability of the SO, notice that the negative lines were not taken into account, leading to the addition of the "Other Revenues" section with a positive 320 margin. Cause: The domain for the `account.move.line` was excluding lines whos subtotal was not > 0. Fix: Change that domain leaf to be != 0. Affected versions: 16.0 up to master Reference: opw-3389670 closes odoo/odoo#130992 Signed-off-by:
Xavier Bol (xbo) <xbo@odoo.com>
-
Roy Le authored
closes odoo/odoo#133408 Signed-off-by:
William André (wan) <wan@odoo.com>
-
dinolew authored
closes odoo/odoo#133066 X-original-commit: 854923b8 Signed-off-by:
Quentin De Paoli <qdp@odoo.com> Signed-off-by:
Josse Colpaert <jco@odoo.com>
-
std-odoo authored
Bug === The labels of the properties and their names are always required, the check was wrongly done and still used the historical name "id" instead of "name". If a property value is missing, the color of the label is marked in red. But the datepicker and dropdown are also in read which we don't want (only the label). Task-3188915 closes odoo/odoo#123640 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Benjamin Vray authored
After this commit, we prevent the slideshow from appearing when clicking on an "Images Wall" snippet image that has been set as a link. Steps to reproduce the bug: - Drag and drop an "Images Wall" snippet onto the page. - Add some images in the snippet. - Click on an image within the snippet. - In the editor text toolbar, click on the "Link" button. - Set the URL of the link to "/contactus". - Click on the "Save" button in the modal. - Save the page. - Click on the image with the link. - Bug: The slideshow briefly appears before redirecting to the "contact us" page. task-3425624 closes odoo/odoo#133347 X-original-commit: 8b29eabb Signed-off-by:
Colin Louis (loco) <loco@odoo.com>
-
Nshimiyimana Séna authored
A customer has a gift card product linked to a specific income account. When sold, the income account associated with the gift card product is credited correctly. The issue arises when the gift card is consumed within a sales order. An order line is added using a "dummy product" to indicate the gift card's usage (one dummy product is created for each loyalty program). Due to this, when an account move is created from the sale order, the income account defined on the dummy product is used instead of the one on the gift card product. This leads to the wrong income account being debited, causing unbalanced accounting entries. There's currently no way to link back to the original gift card product from a `loyalty.card` record. Because of this, the system cannot identify the correct income account to debit. Fixing this would require adding a new field, which we can't do in stable. A potential workaround is to find the dummy product and set the income account to the same as the gift card product. However, with one dummy product for each `loyalty.program`, all named "Gift Card", finding the right dummy product is difficult. This commit aims to simplify the workaround by adding a link to the associated dummy product on the `loyalty.program` form view. This change should ease the process of finding and modifying the correct dummy product, thus mitigating the issue in the current stable version. opw-3239720 opw-3373287 closes odoo/odoo#132857 Signed-off-by:
Séna Serge Nshimiyimana (sesn) <sesn@odoo.com>
-
- Aug 28, 2023
-
-
Merel Geens (mege) authored
A check was added to prevent importing records with prefixes of existing modules: https://github.com/odoo/odoo/pull/130825 . This queries the known modules, but non-admin users don't have access to that by default, causing the import to fail for them. Allow the module query regardless of access rights. closes odoo/odoo#133351 X-original-commit: e1dcf886 Signed-off-by:
Raphael Collet <rco@odoo.com> Signed-off-by:
Merel Geens <mege@odoo.com>
-
Mahdi Cheikh Rouhou (macr) authored
Issue : When you try to import a big file it will display a blank error. Steps to reproduce the error : 1-install inventory and e-commerce 2-go to products and import records 3-upload the file attached the ticket Reason : Before, there was a type included in the `reason` but now it seems that the error has no type neither a message. Fix: I tried to just output a general error. opw-3410954 closes odoo/odoo#133329 X-original-commit: 26a1c91e Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com> Signed-off-by:
Mahdi Cheikh Rouhou (macr) <macr@odoo.com>
-
luvi authored
This commit fixes the behavior of those customized buttons, used in form view footers, aiming at saving/discarding the changes. The expected behavior is that the dialog closes itself when those buttons are pressed, which was no longer applied since the rewrite of views in Owl. Also, the newly created value was not selected after saving the record. Now, it selects it immediately if a button with special="save" has been pressed. A test has been added to verify that dialogs behaves correctly and close themselves when clicking such buttons. task-3254368 closes odoo/odoo#128244 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-