comprobante.py 413 Bytes
# -*- coding: utf-8 -*-
from odoo import models, fields, api, exceptions
from odoo.exceptions import UserError, ValidationError
from datetime import datetime

import odoo.addons.decimal_precision as dp
import math
import os

class asw_comprobante(models.Model):
    _inherit = 'asw.comprobante'

    def validarNotaD(self):
        self.validar()
        return {
        "type": "ir.actions.do_nothing",
    }