- Sep 14, 2021
-
-
oco-odoo authored
[FIX] account: Don't generate pdf at all when trying to print a misc operation from the 'print invoices' actions Before, clicking on 'print invoices' or 'print invoices without payment' on a posted misc operation raised an error message saying that only invoices could be printed. However, the pdf file still got generated and could be found as attachement on the move. With this commit, we don't generate the file anymore in this case. closes odoo/odoo#76419 Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
-
- Sep 13, 2021
-
-
Nathan Marotte (nama) authored
Issue: When viewing a pdf in a website_slide, in certain conditions ( odoo detect the slide is externally embedded), a <iframe> code block is displayed on the pdf rendering it really hard to read. As a work around, one could click on the "<\> Embed" button to make it disapear Steps to reproduce : 1) Run a local odoo server with the website_slides module 2) Set up a ngrox tunneling service to your localhost and good port 3) Find or create a **document** slide and get its id (<slide_id>) 4) Access the slide via the website url on the slide 5) Go down the page in the Share tab and copy the iframe -Replace http by https in the src attribute of the iframe if necessary 6) go back to the dashboard, open the inspector and add the iframe in the body of the webpage -> The slide is correctly detected as non embed 7) Access your Odoo database with the ngrox https forward (example : https://0dfc-2a02-a03f-6b9b-b300-bd6c-8048-90f1-3f25.eu.ngrok.io) 8) Repeat step 3 to 6 included -> The slide is detected as embed, so a <iframe> text area appears and make the pdf hard to read Alternative steps to reproduce : 1) Run a local odoo server with the website_slides module 2) Go to the usual http://localhost:8069/ to access your database and navigate to a PDF slide in eLearning 3) Change the localhost in the URL to 127.0.0.1 (Example http://localhost:8069/slides/slide/gardening-the-know-how-1 becomes http://127.0.0.1:8069/slides/slide/gardening-the-know-how-1 ) and press Enter to go to the new URL 4) Change back the 127.0.0.1 to localhost and press Enter to go to the new URL 5) You might have to repeat the back and forth between the two domains -> The slide is detected as embed, so a <iframe> text area appears and make the pdf hard to read Why is that a bug: It makes the PDF unreadable unless we know that we must click on that button, it really shouldn't be like that opw-2499110 closes odoo/odoo#76277 Signed-off-by:
Nathan Marotte <nmarotte@users.noreply.github.com>
-
Nasreddin Boulif (bon) authored
Issue: When trying to print a Suisse QR bill, if multiple images are presents in document and they have a url as src, some pictures will not be displayed. (Same issue may occur with simple QR code) Cause: It's a known issue with wkhtmltopdf: https://github.com/odoo/odoo/commit/2949138a7d84cd6c925ea1745d62f25ef077bb8b Also, adding css class to body by js break wkhtmltopdf. Solution: Replace link by base64 image value (use a function to retrieve base64 image instead of image_url). Remove class 'l10n_ch_qr' added by js (no need since CSS file didacted to this report). extra: Alter some css for better rendering. opw-2620082 closes odoo/odoo#76235 X-original-commit: e0d5f63710c6d331c3cf7ab3fab5a0ce8e5e1b20 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com> Signed-off-by:
bon-odoo <nboulif@users.noreply.github.com>
-
mreficent authored
Currently, the _recompute_tax_lines method is too long and there is no way to customize the taxes_map before move line creation. This commit adds a hook to be able to customize the tax dict values. closes odoo/odoo#76107 Signed-off-by:
oco-odoo <oco-odoo@users.noreply.github.com>
-
- Sep 12, 2021
-
-
Odoo Translation Bot authored
-
- Sep 10, 2021
-
-
Denis Ledoux authored
When a product is configured with 2 different boms kit using the same sequence, the bom chosen could change randomly, therefore randomly changing the available quantity. This has been detected during an upgrade, With the unit test checking the quantities of the products doesn't change before and after the upgrade, and in this case, the bom chosen before upgrade was different than the bom chosen after upgrade, therefore changing the available quantity of this product before and after upgrade. ``` Traceback (most recent call last): File "/tmp/tmp659zn85u/migrations/testing.py", line 208, in test_check self.check(value) File "/tmp/tmp659zn85u/migrations/stock/tests/test_on_hand_quantity.py", line 20, in check self.assertEqual(before_results, self.convert_check(after_results), self.message) AssertionError: Lists differ: [[262[3108 chars], '-107'], [3879, '-36'], [3983, '-39'], [3984[5666 chars]14']] != [[262[3108 chars], '-150'], [3879, '-36'], [3983, '-39'], [3984[5666 chars]14']] First differing element 209: [3878, '-107'] [3878, '-150'] Diff is 10670 characters long. Set self.maxDiff to None to see it. : Invariant check fail ``` upg-27353 closes odoo/odoo#76358 Signed-off-by:
Rémy Voet <ryv-odoo@users.noreply.github.com>
-
Achraf (abz) authored
When a user clicks on the link in the verification email to verify his email while being disconnected there is an error specifying that the sender is not defined This pr defines the `email_from` field via the `User: New rank reached` template opw-2469306 closes odoo/odoo#75775 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Xavier ALT authored
Since commit bbb1a8f1, module's upgrade script can also be added into special 'upgrades' folder as an alternative to the old 'migrations' folder. As those upgrade scripts are not maintained from version to version, we should not count them as maintenance. OPW-2536046 closes odoo/odoo#76184 Signed-off-by:
Xavier Alt (xal) <xal@odoo.com>
-
Nils Hamerlinck authored
- Up to odoo 10.0, feedparser dependency was optionally used in the cli of vendored html2text.py (see https://github.com/odoo/odoo/blob/10.0/addons/mail/models/html2text.py#L437) - Since 11.0 (67c17cb3), vendored html2text.py has been removed in favor of maintained package - Turns out the feedparser part in html2text was dead code for a long time anyway (see https://github.com/Alir3z4/html2text/issues/220 ) - So we can safely drop this dependency closes odoo/odoo#76259 X-original-commit: 271b9468 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
- Sep 09, 2021
-
-
Roy Le authored
The method '_company_default_get' on res.company is deprecated and shouldn't be used anymore. closes odoo/odoo#76186 Signed-off-by:
Victor Feyens (vfe) <vfe@odoo.com>
-
François (FRC) authored
Tests now check for the 'error' field in Pingen repsonse snailmail_external_layout.js now targets the right div closes odoo/odoo#76246 Task: 2588145 & 2583718 Signed-off-by:
Florian Daloze (fda) <fda@odoo.com>
-
Anh Thao Pham (pta) authored
- Create a product with Category configured with: * Costing Method: First In First Out (FIFO) * Inventory Valuation: Automated - Create a PO to buy 1 unit and receive the product - Create a SO to sell 1 unit and deliver the product - Return the product - Re-deliver the product - Create invoice for SO but don't post it - Connect with an user with "Accounting: Accountant" rights only - Post the invoice An access error will be triggered when trying to access stock valuation layer. opw-2623376 closes odoo/odoo#75507 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
Anh Thao Pham (pta) authored
- Go to any graph view (i.e. in CRM) - Change "Group By" 2 times very very quickly (In Chrome, you can set Throttling to "Slow 3G" in Network tab of devtools) Data from first groupby will be mixed with data from the second one. A graph reload is performing the following steps: * clean previous data * fetch data * set data The issue happens when a second reload is performed while the previous one has not set its data yet and the cleaning step of the second one is performed before the setting step of the first one. The solution will be to ignore the setting step of all previous reloads if there is a more recent one. opw-2460145 closes odoo/odoo#75307 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Nathan Marotte (nama) authored
Issue: When two Odoo webpage are open on a Manufacturing order, it is possible to mark the MO as todo twice, then when trying to record the production, there will be a traceback Expected Singleton Steps to reproduce: 1) Install MRP 2) Create a Manufacturing order for a Product with a BO 3) Save, open a new odoo webclient and go to the same MO 4) Mark as todo on each webclient 5) Check availability on each webclient 6) Produce on each webclient, and save the wizard -> Traceback Expected Singleton opw-2636556 closes odoo/odoo#76210 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
Adrien Widart authored
In a POS session, when using the scanner, if the seller changes the customer, the prices may become incorrect To reproduce the issue 1. Create a product P: - Sales Price: 38 - Barcode: 2312345000002 - Available in POS: True 2. Start a POS session (with debug Window) 3. Scan 2312345010001 - This is product P with price $10 4. Set a Customer Error: The price is now $38 Because the price has not been set manually, when changing the customer, the pricelist is updated and so does the price. When scanning a barcode that includes a price, the latter should be considered as manually set. OPW-2618934 closes odoo/odoo#76074 X-original-commit: e6672427 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com> Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
- Sep 06, 2021
-
-
Adrien Widart authored
When changing the pricelist on the shop, if the new one has a different currency and if the cart already contains some products, the purchase price of each product should be updated To reproduce the error: 1. Select Public Pricelist 2. Add the Customizable Desk (Steel, White) 3. Back to shop, select EUR pricelist Error: Consulting the SO on back-end, the purchase price is not converted (and therefore the margin is incorrect) Changing the pricelist on a SO that already contains some lines is not a valid flow. Therefore, the fix must only concern the web-shop. When setting a new pricelist, the request gets the current carte and forces the new pricelist. Therefore, the cart is updated and several values are computed again: https://github.com/odoo/odoo/blob/379f1490c93dc599a74add2d678c18fbba1efa62/addons/website_sale/models/sale_order.py#L142-L149 In the above dictionary, the price unit is based on the new pricelist (new discount, new currency...). When the module `sale_margin` is installed, this dictionary should include the new value of `purchase_price`. By doing this, the `margin` will also have a correct value: https://github.com/odoo/odoo/blob/194ce17436929b74fc3d4c2744853d32bd9d2567/addons/sale_margin/models/sale_order.py#L64-L67 OPW-2585376 closes odoo/odoo#76008 X-original-commit: 8fffa06e Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com> Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
Denis Ledoux authored
In case there is a `product_qty` column added by a custom module, `product_qty`, without specifying from which table to take it from in the view definition, can lead to an ambiguous definition. ``` 2021-08-25 12:25:31,624 1145 ERROR db_23001 odoo.modules.registry: Failed to load registry Traceback (most recent call last): File "/home/odoo/src/odoo/13.0/odoo/modules/registry.py", line 86, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/home/odoo/src/odoo/13.0/odoo/modules/loading.py", line 424, in load_modules force, status, report, loaded_modules, update_module, models_to_check) File "/home/odoo/src/odoo/13.0/odoo/modules/loading.py", line 315, in load_marked_modules perform_checks=perform_checks, models_to_check=models_to_check File "/home/odoo/src/odoo/13.0/odoo/modules/loading.py", line 202, in load_module_graph registry.init_models(cr, model_names, {'module': package.name}, new_install) File "/home/odoo/src/odoo/13.0/odoo/modules/registry.py", line 370, in init_models model.init() File "/home/odoo/src/odoo/13.0/addons/stock/report/report_stock_quantity.py", line 126, in init self.env.cr.execute(query) File "/home/odoo/src/odoo/13.0/odoo/sql_db.py", line 173, in wrapper return f(self, *args, **kwargs) File "/home/odoo/src/odoo/13.0/odoo/sql_db.py", line 250, in execute res = self._obj.execute(query, params) psycopg2.errors.AmbiguousColumn: column reference "product_qty" is ambiguous LINE 21: ...AND whd.id IS NULL) OR ls.usage = 'transit' THEN -product_qt... ``` upg-23001 closes odoo/odoo#75998 Signed-off-by:
Denis Ledoux (dle) <dle@odoo.com>
-
Hubert Van de Walle (huvw) authored
Bad debt accounts should be of expenses type like the ones in the l10n_de_skr03 addon opw-2512526 closes odoo/odoo#75772 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Goffin Simon authored
Steps to reproduce the issue: - Let's log in Odoo with a user U1 - Create a lead with user U2 as salesperson - Click on New quotation Bug: A SO was suggested with U1 as salesperson instead of U2 opw:2520827 closes odoo/odoo#75787 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Adrien Widart authored
Considering the field declaration: https://github.com/odoo/odoo/blob/fe5deb4ee4c8e07aed2f2cff6210271bfaa61476/addons/point_of_sale/models/pos_order.py#L1121 `discount` is a rate, not an amount. Therefore, suppose a discount of 10%, when opening a POS-generated SO, the discount shouldn't be "$10". OPW-2629493 closes odoo/odoo#75907 X-original-commit: 666955cb Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com> Signed-off-by:
Adrien Widart <adwid@users.noreply.github.com>
-
ijas ahammed authored
Currently, when we try to shorten the links from content with help of `_convert_links_text` method, it throws traceback if the body(content) we pass is `False`(might happen when we directly pass a model field of textual type but the field doesn't have a value yet). It's because the `re` expects the content to be string / bytestring. This commit fixes the issue by adding a check in this method, which will simply return `False` if there's no body. Task-2628586 closes odoo/odoo#75920 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Ivan Yelizariev authored
To reproduce performance problem one can use following scenario: * Use Enterprise v13 * go to Accounting / Assets, select the chair and click on "Set To Running" * Click "Modify Deprecation" and enter the following values: Reason: x Number of Deprecations: 1000 Months Deprecation Amount: 1000 Account Asset Counterpart: 101000 Current Assets * click on "Modify" --- opw-2621292 closes odoo/odoo#75919 Signed-off-by:
William André (wan) <wan@odoo.com>
-
fja-odoo authored
Rounding in purchase order is 'UP' which is causing issue when doing receipt in a different uom than the purchase. Rounding should be 'HALF-UP' Added test in purchase and sales to ensure this issue is detected in the future. closes odoo/odoo#75792 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
Olivier Dony authored
This should avoid disrupting layouts. closes odoo/odoo#75957 X-original-commit: baca6bd7 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
- Sep 05, 2021
-
-
Odoo Translation Bot authored
-
- Sep 02, 2021
-
-
Bruno Zanotti authored
In the method _get_vat(), used to inform AFIP about the vat taxes of an invoice, we were assuming that in the journal items of the invoices there is always one line per tax group, but if the user enables the option "Include in Analytic Cost" of the tax, then it could create more than one line per tax so it will return an error if you try to validate the invoice in AFIP or upload the vat book. closes odoo/odoo#75802 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Tiffany Chang (tic) authored
We fix 2 related UoM issues: 1. Fix quant inconsistency from changing the UoM of Done stock.move.lines Steps to reproduce: - Enable "Storage Locations" setting - Create a new "Storable Product" and create a receipt for 1 unit of it - Validate the 1 unit receieved - Open "Detailed Operations" of the move and change the stock.move.line UoM to dozen. Expected result: 13 on hand Actual result: 1 on hand To fix this: - prevent users from editing the UoM after the picking is done (i.e. unless adding a new stock.move.line and not saving). - update the write on done logic so stock.move.line UoM changes are considering and will update the quant correctly (in case of RPC or direct write). 2. Prevent changing UoM of Done stock.move to prevent inconsistent field values within stock.move and confusion for users Steps to reproduce: - Complete a picking (incoming is easiest to see) with a new product (i.e. 0 qty) having 1 unit done. - Unlock picking and add a new stock.move with 1 unit done and save. - Edit the just added stock.move's UoM from Units to Dozen. - Check the quantity on hand / Done qty of stock.move after leaving and returning to form. Expected result: 13 On Hand Actual Result: 2 On Hand and the "Done" qty in the picking is 0.0083 (i.e. 1/12 of a dozen) To fix this: - prevent users from editing the UoM after the picking is done (unless adding a new stock.move and not saving) - if a Done stock.move UoM is uodated, a UserError occurs because there is no straightforward way to ensure the quant is updated correctly since is handled within the move.line (i.e. has no visibility to its move's uom change => changing only UoM and not qty done will result in no quant update) closes odoo/odoo#75823 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
- Sep 01, 2021
-
-
Achraf (abz) authored
When a sale.order containing a slide.channel registration product is confirmed by a person that does not have rights on slide.channel (typically a salesman), the system will throw an error. This commit forces the addition of members by using a sudo on the "_action_add_members" method. We assume that when confirming a sale.order, we want to add the members and enable their access to the course even if the person confirming the sale.order does not have e-learning privileges. OPW-2580128 closes odoo/odoo#75824 Signed-off-by:
Achraf <abz-odoo@users.noreply.github.com>
-
Guillaume (guva) authored
This commit is related to 01fa18b, which introduced an issue : the test flow needed a mrp.bom instance, which is not a dependency of stock_dropshipping. This commit move the test to mrp_subcontracting_dropshipping whiwh depends of mrp. closes odoo/odoo#75845 Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
Wolfgang Taferner authored
Without this, the warning isn't very actionable. closes odoo/odoo#74428 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
- Aug 31, 2021
-
-
Sébastien Mottet (oms) authored
*: website_slides A function allowing to convert a SVG to a PNG has been added as an utility function in website.utils and is used for the upload of document in website_slides. This function add support for a specific case which was not supported by the previous conversion function used for the document upload in website_slides: SVG without width and height attributes on Firefox. Note: this should be simplified in master, the fix here is done the most stable way possible. Related to task-2602521 closes odoo/odoo#75741 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by:
qsm-odoo <qsm@odoo.com>
-
Pierre Paridans authored
Before this commit, when loading a view containing a searchbar on a tablet, the device's keyboard is appearing once the searchbar's field is autofocused. Thanks to the backport of the mobile OS detection (see PR odoo/odoo#75455 ), we are now able to properly target mobile OS (independent of the screen's resolution) instead of only small screens. closes odoo/odoo#75781 Signed-off-by:
Adrien Dieudonné (adr) <adr@odoo.com>
-
Jacky (trj) authored
The `letterRendering` option from the html2canvas broke the receipt's characters of some localizations/languages such as the arabic one. With this commit, we can simply override the `htmlToImgLetterRendering()` method from the `PosModel` when needed. closes odoo/odoo#75777 Related: odoo/enterprise#20520 Signed-off-by:
pimodoo <pimodoo@users.noreply.github.com>
-
std-odoo authored
Bug === The arguments model and res_id were declared on the method but never used. This method was supposed to be callable from the model and not from the records with those 2 parameters. Make this possible. Task-2599676 closes odoo/odoo#75497 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Sébastien Alix authored
The `update_db_index` method is called even if the field has no index (the check on `index` field attribute is here on purpose). Before 13f02a60 was applied, the call of `sql.drop_index` was taking care of the index existence if a `IF EXISTS` SQL statement, so even if the field had no index it wasn't causing any issue. With 13f02a60 applied, the log 'Keep unexpected index' is spam even if the field has actually no index at all in the database. This commit ensures to check the existence of the index before logging. closes odoo/odoo#75748 X-original-commit: 57f078b6 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Aug 30, 2021
-
-
Denis Ledoux authored
This revision has a similar goal than the previous revision 62c5b8d9 but this times, it's a kit/phantom bom which is nested in another kit/phantom bom, and their computation is asked in the same time. ``` 2021-08-20 11:29:54,835 1689 ERROR db_22687 odoo.upgrade.stock.tests.test_on_hand_quantity: FAIL: TestOnHandQuantityUnchanged.test_check Traceback (most recent call last): File "/tmp/tmpv3ujv2vr/migrations/testing.py", line 208, in test_check self.check(value) File "/tmp/tmpv3ujv2vr/migrations/stock/tests/test_on_hand_quantity.py", line 20, in check self.assertEqual(before_results, self.convert_check(after_results), self.message) AssertionError: Lists differ: [[551[14585 chars] [8988, '137'], [8989, '137'], [8990, '20'], [[1793 chars]91']] != [[551[14585 chars] [8989, '137'], [8990, '20'], [8991, '126'], [[1778 chars]91']] First differing element 1007: [8988, '137'] [8989, '137' ``` ``` SELECT b.id, b.type, p.id as kit_product_id, b.product_tmpl_id as kit_product_tmpl_id, pt.name as kit_product_name FROM mrp_bom b JOIN product_template pt ON pt.id = b.product_tmpl_id JOIN product_product p ON p.pr oduct_tmpl_id = pt.id WHERE p.id = 8988; -[ RECORD 1 ]-------+----------------- id | 2208 type | phantom kit_product_id | 8988 kit_product_tmpl_id | 9049 kit_product_name | KIT Poulie AR G4 ``` ``` SELECT b.id, p.id as kit_product_id, b.product_tmpl_id as kit_product_tmpl_id, pt.name as kit_product_name, l.product_id as component_product_id, component_t.name as component_name FROM mrp_bom_line l JOIN mrp_bom b ON l.bom_id = b.id JOIN product_product p ON p.product_tmpl_id = b.product_tmpl_id JOIN product_template pt ON pt.id = b.product_tmpl_id JOIN product_product component ON component.id = l.product_id JOIN product_template component_t ON component_t.id = component.product_tmpl_id WHERE l.product_id = 8988; -[ RECORD 1 ]--------+--------------------- id | 2213 kit_product_id | 8761 kit_product_tmpl_id | 8879 kit_product_name | VEL BP KIT direction component_product_id | 8988 component_name | KIT Poulie AR G4 ``` upg-22687 closes odoo/odoo#75654 Signed-off-by:
Denis Ledoux (dle) <dle@odoo.com>
-
- Aug 29, 2021
-
-
Odoo Translation Bot authored
-
- Aug 27, 2021
-
-
Andrea Grazioso (agr-odoo) authored
After 0411dda6 the associated test fail in certain time frame due to the datetime check closes odoo/odoo#75695 X-original-commit: 55fac5d3 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
Víctor Martínez authored
[FIX] hr_holidays: Set domain correctly according to company_ids from Leave Allocations: multi company global rule closes odoo/odoo#75397 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
- Aug 26, 2021
-
-
Jérémy Hennecart authored
This commit fixes a behavior when we send a batch of mailings with no recipients. When there is no recipients passed down, each mailing should use it's own recipients and not the recipients of the first mailing. closes odoo/odoo#75391 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-