Commit 4179f802 by Maria Agustina

687 base

1 parent f4e17dc3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from . import controllers
from . import models from . import models
\ No newline at end of file \ No newline at end of file
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
{ {
'name': "my_module", 'name': "tpv_correcciones",
'summary': """ 'summary': """
Short (1 phrase/line) summary of the module's purpose, used as Módulo para adaptar facturas""",
subtitle on modules listing or apps.openerp.com""",
'description': """ 'description': """
Long description of module's purpose Módulo para adaptar facturas
""", """,
'author': "My Company", 'author': 'ANACSOFT',
'website': "http://www.yourcompany.com",
# Categories can be used to filter modules in modules listing # Categories can be used to filter modules in modules listing
# Check https://github.com/odoo/odoo/blob/master/odoo/addons/base/module/module_data.xml # Check https://github.com/odoo/odoo/blob/master/odoo/addons/base/module/module_data.xml
# for the full list # for the full list
'category': 'Uncategorized', 'category': 'Localization/Argentina',
'version': '0.1', 'version': '0.08.02.21',
# any module necessary for this one to work correctly # any module necessary for this one to work correctly
'depends': ['base'], 'depends': ['base',
'asw_tpv',
'asw_afipws_fe',
],
# always loaded # always loaded
'data': [ 'data': [
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from . import models
\ No newline at end of file \ No newline at end of file
from . import comprobante
from . import referencias
\ No newline at end of file \ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
# -*- coding: utf-8 -*-
from odoo import models, fields, api, exceptions
class asw_comprobante(models.Model):
_inherit = 'asw.comprobante'
agrupaciones = fields.Char(
string="Grupo",
)
referencia = fields.One2many(
string=u'Referencia',
comodel_name='asw.referencias',
inverse_name='factura',
)
qr = fields.Binary(
string=u'QR',
)
# -*- coding: utf-8 -*-
from odoo import models, fields, api
# class my_module(models.Model):
# _name = 'my_module.my_module'
# name = fields.Char()
# value = fields.Integer()
# value2 = fields.Float(compute="_value_pc", store=True)
# description = fields.Text()
#
# @api.depends('value')
# def _value_pc(self):
# self.value2 = float(self.value) / 100
\ No newline at end of file \ No newline at end of file
# -*- coding: utf-8 -*-
from odoo import models, fields, api, exceptions
class asw_referencias(models.Model):
_name='asw.referencias'
name = fields.Char(
string="Nombre",
)
descripcion = fields.Text(
string=u"Descripción",
)
habilitada = fields.Boolean(
string="Habilitada"
)
factura = fields.Many2one(
string=u'Factura',
comodel_name='asw.comprobante',
ondelete='set null',
)
\ No newline at end of file \ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!