summaryrefslogtreecommitdiff
path: root/addons/note/data
diff options
context:
space:
mode:
authorAnkita Raval <anr@odoo.com>2020-02-27 08:33:29 +0000
committerPratima Gupta <pgu@odoo.com>2020-03-24 10:00:08 +0000
commit8d52edb2fa5d6eec4a9c67553ec14a1cfa6d3465 (patch)
treec04479fc76fcdbcd991fd2df445c3e450fad92cc /addons/note/data
parent81a5cc2e10164e1c006396fe24294f4ec834aedc (diff)
[IMP] repair: Prevent to Unlink Repair Orders if not draft
Before Commit: -Current Functionality doesn't Restrict Unlink of Order Based on States. -if we delete the invoice linked to repair order the state button of invoice still visible in reapir order and when we click on state button it open new draft invoice. After Commit: -Add Validation on Unlink the order based on State,link unlink order only on draft and cancel state. -Always show the "cancel" button on repair orders.When the orders have been cancelled, only allow to delete them if there is no invoice linked, or if the invoice which is linked can be deleted (is still draft and has never been posted). If we are not in one of those conditions, raise the following error "You cannot delete a repair order which is linked to an invoice which has been posted once." -Add wizard when cancelling a repair order which has a draft invoice linked. task-id: 2198997
Diffstat (limited to 'addons/note/data')
0 files changed, 0 insertions, 0 deletions