Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.0][ADD] l10n_br_spec_mdfe #660

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions l10n_br_spec_mdfe/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
12 changes: 12 additions & 0 deletions l10n_br_spec_mdfe/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
'name': 'mdfe spec',
'version': '12.0.1.0.0',
'author': 'Akretion, Odoo Community Association (OCA)',
'license': 'LGPL-3',
'category': 'Accounting',
'summary': ' spec',
'depends': ['base'],
'data': ['security/v3_00/ir.model.access.csv'],
'installable': True,
'application': False,
}
1 change: 1 addition & 0 deletions l10n_br_spec_mdfe/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import v3_00
18 changes: 18 additions & 0 deletions l10n_br_spec_mdfe/models/spec_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from odoo import models, fields


class AbstractSpecMixin(models.AbstractModel):
_description = "Abstract Model"
_stack_path = ""
_name = 'abstract.spec.mixin'

currency_id = fields.Many2one(
comodel_name='res.currency',
string='Moeda',
compute='_compute_currency_id',
default=lambda self: self.env.ref('base.BRL').id,
)

def _compute_currency_id(self):
for item in self:
item.currency_id = self.env.ref('base.BRL').id
5 changes: 5 additions & 0 deletions l10n_br_spec_mdfe/models/v3_00/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from . import mdfeModalAereo
from . import mdfeModalAquaviario
from . import mdfeModalFerroviario
from . import mdfeModalRodoviario
from . import mdfe
Loading