protected function afterUpdate($object)
 {
     //--ERP informations
     // bind erp_supplier_order_detail to supply_order_detail
     if (Tools::isSubmit('id_erpip_supply_order_detail')) {
         $ids_erp_supply_order_detail = Tools::getValue('id_erpip_supply_order_detail');
         foreach ($ids_erp_supply_order_detail as $id_erpip_supply_order_detail => $id_supply_order_detail) {
             if ($id_supply_order_detail > 0 && $id_erpip_supply_order_detail > 0) {
                 $erp_supply_order_detail = new ErpSupplyOrderDetail((int) $id_erpip_supply_order_detail);
                 if (Validate::isLoadedObject($erp_supply_order_detail)) {
                     $erp_supply_order_detail->id_supply_order_detail = (int) $id_supply_order_detail;
                     $erp_supply_order_detail->save();
                 }
             }
         }
     }
     return parent::afterUpdate($object);
 }