Skip to content

Commit

Permalink
[MIG] edi_account_oca: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
OriolMForgeFlow committed Oct 4, 2023
1 parent c50b174 commit 2c07748
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion edi_account_oca/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Edi Account",
"summary": """
Define EDI Configuration for Account Moves""",
"version": "15.0.1.0.1",
"version": "16.0.1.0.0",
"license": "LGPL-3",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"maintainers": ["etobella"],
Expand Down
7 changes: 3 additions & 4 deletions edi_account_oca/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ class AccountMove(models.Model):
_name = "account.move"
_inherit = ["account.move", "edi.exchange.consumer.mixin"]

disable_edi_auto = fields.Boolean(
help="When marked, EDI could be avoided",
edi_disable_auto = fields.Boolean(
readonly=True,
states={"draft": [("readonly", False)]},
)
Expand All @@ -29,9 +28,9 @@ def button_cancel(self):
self._event("on_cancel_account_move").notify(self)
return result

def action_invoice_paid(self):
def _invoice_paid_hook(self):
"""This could be used to notify our provider that we are paying"""
result = super().action_invoice_paid()
result = super()._invoice_paid_hook()
if self:
self._event("on_paid_account_move").notify(self)
return result
2 changes: 1 addition & 1 deletion edi_account_oca/tests/test_edi.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def on_cancel_account_move(self, move):
}
)
)
cls.test_move.refresh()
cls.test_move.invalidate_recordset()

def test_paid_move(self):
self.test_move.action_post()
Expand Down

0 comments on commit 2c07748

Please sign in to comment.