How to order/sort attribute combination names alphabetically in Prestashop 1.6

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…

Delete an invoice after validation? (Odoo 8)

Install the account_cancel module. Go to file: sudo nano <odoo>/addons/account/account_invoice.py  Comment the function unlink like: &nbsp; &nbsp; @api.multi def unlink(self): #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.’)) #elif invoice.move_name: #raise Lire la suite…