Introduction This post was a result of a modification of the code of « wayne_f » which can be found here : https://www.prestashop.com/forums/topic/310945-how-to-ordersort-attribute-combination-names-alphabetically/ If you have a lot of attributes (color, style, pattern, size…) in your Prestashop website, you would like to sort them in the layered filter. We will describe a Lire la suite…
Install the account_cancel module. Go to file: sudo nano <odoo>/addons/account/account_invoice.py Comment the function unlink like:
#for invoice in self:
#if invoice.state not in ('draft', 'cancel'):
#raise UserError(_('You cannot delete an invoice which is not draft or cancelled. You should refund it instead.'))
#raise UserError(_('You cannot delete an invoice after it has been validated (and received a number). You can set it back to "Draft" state and modify its content, then re-confirm it.'))
return super(AccountInvoice, self).unlink()
Restart Odoo server. Go to the accounting view and remove the canceled invoice(s).