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 17, 2023
1 parent 2cb384f commit 6a3368a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 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
2 changes: 1 addition & 1 deletion edi_account_oca/views/account_move.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<field name="arch" type="xml">
<group name="accounting_info_group" position="after">
<group name="edi_invoice_group" string="Electronic Data Interchange">
<field name="disable_edi_auto" string="Disable" />
<field name="edi_disable_auto" />
</group>
</group>
<xpath expr="//div[@name='button_box']" position="inside">
Expand Down

0 comments on commit 6a3368a

Please sign in to comment.