comprobante.py
562 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",
}
def cancelarNotaD(self):
self.cancelar()
self.comp_estado = 'c'
return {
"type": "ir.actions.do_nothing",
}