Skip to content

Commit

Permalink
wip2
Browse files Browse the repository at this point in the history
  • Loading branch information
zaoral committed Aug 13, 2024
1 parent ec826ee commit aa03969
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
11 changes: 4 additions & 7 deletions l10n_uy_edi_stock/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,20 @@
"name": """Uruguay - E-Remitos""",
'version': "17.0.1.0.0",
'category': 'Accounting/Localizations/EDI',
'countries': ['uy'],
'sequence': 12,
'author': 'Adhoc',
'summary': """
Este modulo permite a los usuarios hacer e-remitos en el sistemas que son
reportados a la DGI
""",
'depends': [
'l10n_uy_edi_ux', # TODO no recuerdo. porque no directo l10n_uy_ux
'l10n_uy_edi',
'stock_account',
'sale_stock',
# 'sale_stock',
],
'data': [
'data/l10n_latam.document.type.csv',
'views/cfe_template.xml',
'views/stock_picking_views.xml',
],
'installable': False,
'installable': True,
'auto_install': False,
'application': False,
'license': 'LGPL-3',
Expand Down
2 changes: 1 addition & 1 deletion l10n_uy_edi_stock/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from . import stock_picking
from . import l10n_latam_document_type
from . import l10n_uy_addenda
from . import l10n_uy_edi_document
from . import stock_picking
4 changes: 3 additions & 1 deletion l10n_uy_edi_stock/models/l10n_latam_document_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ class L10nAccountDocumentType(models.Model):

_inherit = 'l10n_latam.document.type'

internal_type = fields.Selection(selection_add=[('stock_picking', 'Remito')])
internal_type = fields.Selection(selection_add=[
('stock_picking', 'Remito'),
])
4 changes: 3 additions & 1 deletion l10n_uy_edi_stock/models/l10n_uy_addenda.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ class L10nUyAddenda(models.Model):
_inherit = "l10n_uy_edi.addenda"

apply_on = fields.Selection(selection_add=[
('stock.picking', 'Delivery Guide'), ('all', 'All CFE')])
('stock.picking', 'Delivery Guide'),
('all', 'All CFE'),
])
6 changes: 3 additions & 3 deletions l10n_uy_edi_stock/views/cfe_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<odoo>
<!-- to implement in future: eRem_Exp -->

<template id="cfe_template" inherit="l10n_uy_edi.cfe_template">
<FchEmis position="after"/>
<template id="cfe_template" inherit_id="l10n_uy_edi.cfe_template">
<FchEmis position="after">
<LugarDestEnt t-out="IdDoc['TipoTraslado']"/>
</FchEmis>
<InfoAdicional position="after"/>
<InfoAdicional position="after">
<LugarDestEnt t-out="receptor.get('LugarDestEnt')"/>
</InfoAdicional>
</template>
Expand Down

0 comments on commit aa03969

Please sign in to comment.