Skip to content

Commit

Permalink
[FIX] Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mileo committed Apr 22, 2021
1 parent 74fe385 commit 105c907
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion l10n_br_fiscal/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ def create(self, values):
@api.multi
def unlink(self):
if self.env.ref('l10n_br_fiscal.fiscal_document_dummy') in self:
return
raise UserError(_("You cannot unlink Fiscal Document Dummy !"))
return super().unlink()

Expand Down
1 change: 0 additions & 1 deletion l10n_br_fiscal/models/document_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def _operation_domain(self):
@api.multi
def unlink(self):
if self.env.ref('l10n_br_fiscal.fiscal_document_line_dummy') in self:
return
raise UserError(
_("You cannot unlink Fiscal Document Line Dummy !"))
return super().unlink()
2 changes: 1 addition & 1 deletion l10n_br_fiscal/tests/test_fiscal_closing.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_event_to_fiscal_close(self):
environment='prod',
event_type="0",
xml_file=xml_file,
document_id=self.nfe_export.id,
document_id=self.nfe_export,
)
self.nfe_export._onchange_company_id()
event_id.set_done(xml_file)
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_nfe/views/nfe_document_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<field name="name">l10n_br_nfe.document.tree</field>
<field name="model">l10n_br_fiscal.document</field>
<field name="arch" type="xml">
<tree string="NF-e">
<tree>
<field name="number"/>
<field name="date"/>
<field name="fiscal_operation_id"/>
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_nfse/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"l10n_br_nfse_res_partner_user","Partner for User","model_res_partner","base.group_user",1,0,0,0
"l10n_br_nfse_res_partner_user","Partner for User","model_res_partner","base.group_user",1,0,0,0

0 comments on commit 105c907

Please sign in to comment.