Saturday, February 1, 2020
5 changes · master
Miscellaneous changes
Stock moves records can be unlinked in some cases, for example when confirming a move containing a kit, the original move is unlinked and replaced by the moves of the components of the kit. This commit adds two indices to accelerate the unlink of stock move records. The fields were the indices are added are foreign key on stock move, and postgres checks the foreign keys of the rows before deleting them. Description of the issue/feature this PR addresses: Current behavior before PR:
Original PR description
Stock moves records can be unlinked in some cases, for example when confirming a move containing a kit, the original move is unlinked and replaced by the moves of the components of the kit. This commit adds two indices to accelerate the unlink of stock move records. The fields were the indices are added are foreign key on stock move, and postgres checks the foreign keys of the rows before deleting them. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#44337
When the multi-location is enabled, in the stock picking form, when the picking is unlocked, we can't modify the move line in the wizard, due to a bad readonly attribute which doesn't take in account 'is_locked' field. Forward-Port-Of: odoo/odoo#44273
Original PR description
When the multi-location is enabled, in the stock picking form, when the picking is unlocked, we can't modify the move line in the wizard, due to a bad readonly attribute which doesn't take in account 'is_locked' field. Forward-Port-Of: odoo/odoo#44273
When having a tax with 2 children, it was not computed correctly during the automatically creation of the vat closing entry. Forward-Port-Of: odoo/enterprise#8074
Original PR description
When having a tax with 2 children, it was not computed correctly during the automatically creation of the vat closing entry. Forward-Port-Of: odoo/enterprise#8074
Usecase to reproduce: - Set show details operation on a picking type. - Connect as demo user - Create an immediate transfer and add a line with quantity_done - Save It will raise an access error since you are not allowed to write on product.product. However it's not the case we only created a move line and we won't write any information on product. It's due to a related field product_barcode on stock.move.line that is set as readonly=False. So when the move line is created it will t
Original PR description
Usecase to reproduce: - Set show details operation on a picking type. - Connect as demo user - Create an immediate transfer and add a line with quantity_done - Save It will raise an access error since you are not allowed to write on product.product. However it's not the case we only created a move line and we won't write any information on product. It's due to a related field product_barcode on stock.move.line that is set as readonly=False. So when the move line is created it will try to write the barcode on the product. Forward-Port-Of: odoo/enterprise#8069
Task: 2186360 Forward-Port-Of: odoo/enterprise#8078
Original PR description
Task: 2186360 Forward-Port-Of: odoo/enterprise#8078