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…

Décompression/Compression sous Linux

Introduction Je vais essayer de lister le maximum de commande pour la compression et la décompression de fichier sous linux, en fonction du type de fichier. Fichier .zip Décompression unzip <nom_archive>.zip -d <dossier_de_destination> Compression zip -r <nom_archive>.zip <repertoire_ou_fichier> Fichier .tar.bz2 Décompression tar -xjf <nom_archive>.tar.bz2 Compression tar -cjvf <nom_archive>.tar.bz2 <repertoire_ou_fichier> Fichier .tar.gz Lire la suite…