comprobante.py
444 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.comp_fecha_validacion = datetime.today()
return {
"type": "ir.actions.do_nothing",
}