Daily updates from Odoo
Friday, March 3, 2017
2 changes · master
Resolved issues and error corrections
This update fixes an error that could occur when a Point of Sale user tried to access a POS session. It improves day-to-day reliability for POS users by ensuring the right access permissions are in place.
Original PR description
Task : https://www.odoo.com/web#id=710186&view_type=form&model=project.issue&action=609&menu_id=4720 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
This fix stops users from deleting journal entries that are still linked to employee expenses. It helps keep expenses and accounting records consistent by requiring the expense to be removed first.
Original PR description
Description of the issue/feature this PR addresses: After the idea of @mart-e https://github.com/odoo/odoo/pull/15646 : Add ondelete='restrict' on many2one 'account.move 'field , like in account.invoice. https://github.com/odoo/odoo/blob/10.0/addons/account/models/account_invoice.py#L268 Current behavior before PR: You can unlink an journal entrie linked to an expense. After unlink, the state of expense is still "Posted", and you can not generate a new expense. Desired behavior after PR is merged: Impossible to unlink the journal entries, you need to unlink the expense before. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr