Friday, October 20, 2023
28 changes
Miscellaneous changes
The commit(6b5eb6961bccd76c6e25948275499bece2f0075c) that creates a support ticket for the user directly has the side effect that user creates too much tickets for the same issue. After discussion with support team and POs, we decide to add the client id in the support ticket title to allow the support finding duplicate tickets. It's clearly not the best solution, but it will do the job in a short term. no task id Forward-Port-Of: odoo/enterprise#49206
Original PR description
The commit(6b5eb6961bccd76c6e25948275499bece2f0075c) that creates a support ticket for the user directly has the side effect that user creates too much tickets for the same issue. After discussion with support team and POs, we decide to add the client id in the support ticket title to allow the support finding duplicate tickets. It's clearly not the best solution, but it will do the job in a short term. no task id Forward-Port-Of: odoo/enterprise#49206
**Steps to reproduce the bug:** - Activate the packages and lot tracking - Create a new storable product tracked by lot - Add some stock for this product and give a lot and package number - Print the lot (or package) barcode - Open the barcode app and start a new inventory adjustment - Try to create a new line by scanning the lot (or package) barcode **Problem:** A traceback is triggered: “psycopg2.ProgrammingError: can't adapt type 'dict'” When scanning a lot, the function `_proce
Original PR description
**Steps to reproduce the bug:** - Activate the packages and lot tracking - Create a new storable product tracked by lot - Add some stock for this product and give a lot and package number - Print the…
**Steps to reproduce the bug:** - Activate the packages and lot tracking - Create a new storable product tracked by lot - Add some stock for this product and give a lot and package number - Print the lot (or package) barcode - Open the barcode app and start a new inventory adjustment - Try to create a new line by scanning the lot (or package) barcode **Problem:** A traceback is triggered: “psycopg2.ProgrammingError: can't adapt type 'dict'” When scanning a lot, the function `_processBarcode` is called: https://github.com/odoo/enterprise/blob/c0151bce3c60c69e7cadeb719a81c4a702b71c34/stock_barcode/static/src/models/barcode_model.js#L864 In this function, we check if a package has been scanned. If it is the case, then the function `_processPackage` is triggered. Inside this function, we call `_createNewLine` with the package ID, which allows us to use it in the domain, and everything works perfectly: https://github.com/odoo/enterprise/blob/c0151bce3c60c69e7cadeb719a81c4a702b71c34/stock_barcode/static/src/models/barcode_model.js#L891 https://github.com/odoo/enterprise/blob/c0151bce3c60c69e7cadeb719a81c4a702b71c34/stock_barcode/static/src/models/barcode_quant_model.js#L123 However, in this case, when scanning the lot, we have to check if the package has been set, and if so, we are retrieving all the package information into a dictionary instead of just adding his ID to the barcodeData: https://github.com/odoo/enterprise/blob/c0151bce3c60c69e7cadeb719a81c4a702b71c34/stock_barcode/static/src/models/barcode_model.js#L976 As a result, when the function `_createNewLine` is called, we try to use all the package information (dict) into the domain, which generates an error. opw-3439193 Forward-Port-Of: odoo/enterprise#48087 Forward-Port-Of: odoo/enterprise#44580
This is the only place where disabled != deactivated Forward-Port-Of: odoo/enterprise#49177
Original PR description
This is the only place where disabled != deactivated Forward-Port-Of: odoo/enterprise#49177