(self)
return super().button_confirm()
Check that the manual 303 results match the report.
Check that the manual 303 results match the report.
Check that the manual 303 results match the report .
def button_confirm(self):
        """Check that the manual 303 results match the report."""
        self.ensure_one()
        summary = self.casilla_95 - self.casilla_97 - self.casilla_98
        if float_compare(summary, self.casilla_86, precision_digits=2) != 0:
            raise exceptions.UserError(
                _(
                    "The result of the manual 303 summary (fields [95], [97] and "
                    "[98] in the page '9. Resultado liquidaciones') doesn't match "
                    "the field [86]. Please check if you have filled such fields."
                )
            )
        return super().button_confirm()
def button_confirm ( self ) : self . ensure_one ( ) summary = self . casilla_95 - self . casilla_97 - self . casilla_98 if float_compare ( summary , self . casilla_86 , precision_digits = 2 ) != 0 : raise exceptions . UserError ( _ ( "The result of the manual 303 summary (fields [95], [97] and " "[98] in the page '9. Resultado liquidaciones') doesn't match " "the field [86]. Please check if you have filled such fields." ) ) return super ( ) . button_confirm ( )