Nov 27, 2018

odoo manual hide validate movement when "double-post" initial demand operations.

odoo manual hide validate movement when "double-post" initial demand operations.



<script>
        if (odoo.session_info["is_superuser"]==false) {
        $(document).bind('DOMSubtreeModified', function () {
               $('.o_list_number').each(function() {
                   if ($(this).data('field')=="weigh_pcs"){
                       if ($(this).text()=="1,000") {
                           $('span:contains("Validate")').parent().addClass("o_form_invisible");
                           alert("Mohon di check ulang data yang double, lalu refresh sebelum  validate ");
                       }
                   }
        
               });
        });
        }
        </script>
Read more ...