Skip to content

Commit

Permalink
[MIG] account_cutoff_base: Migration to 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhoefnagels committed Jan 22, 2020
1 parent 0bd30f8 commit fa519ec
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion account_cutoff_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Account Cut-off Base",
"version": "12.0.1.0.1",
"version": "13.0.1.0.0",
"category": "Accounting & Finance",
"license": "AGPL-3",
"summary": "Base module for Account Cut-offs",
Expand Down
8 changes: 0 additions & 8 deletions account_cutoff_base/models/account_cutoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class AccountCutoff(models.Model):
_inherit = ["mail.thread"]
_description = "Account Cut-off"

@api.multi
@api.depends("line_ids", "line_ids.cutoff_amount")
def _compute_total_cutoff(self):
for cutoff in self:
Expand Down Expand Up @@ -63,7 +62,6 @@ def _default_cutoff_journal_id(self):
readonly=True,
default=lambda self: self.env.context.get("cutoff_type"),
states={"draft": [("readonly", False)]},
oldname="type",
)
move_id = fields.Many2one(
"account.move", string="Cut-off Journal Entry", readonly=True, copy=False
Expand Down Expand Up @@ -138,7 +136,6 @@ def _default_cutoff_journal_id(self):
)
]

@api.multi
def back2draft(self):
self.ensure_one()
if self.move_id:
Expand All @@ -155,7 +152,6 @@ def _get_merge_keys(self):
"""
return ["account_id", "analytic_account_id"]

@api.multi
def _prepare_move(self, to_provision):
self.ensure_one()
movelines_to_create = []
Expand Down Expand Up @@ -197,7 +193,6 @@ def _prepare_move(self, to_provision):
}
return res

@api.multi
def _prepare_provision_line(self, cutoff_line):
""" Convert a cutoff line to elements of a move line.
Expand All @@ -213,7 +208,6 @@ def _prepare_provision_line(self, cutoff_line):
"amount": cutoff_line.cutoff_amount,
}

@api.multi
def _prepare_provision_tax_line(self, cutoff_tax_line):
""" Convert a cutoff tax line to elements of a move line.
Expand All @@ -225,7 +219,6 @@ def _prepare_provision_tax_line(self, cutoff_tax_line):
"amount": cutoff_tax_line.cutoff_amount,
}

@api.multi
def _merge_provision_lines(self, provision_lines):
""" Merge provision line.
Expand All @@ -242,7 +235,6 @@ def _merge_provision_lines(self, provision_lines):
to_provision[key] = provision_line["amount"]
return to_provision

@api.multi
def create_move(self):
self.ensure_one()
move_obj = self.env["account.move"]
Expand Down
1 change: 1 addition & 0 deletions account_cutoff_base/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
* Adrien Peiffer (ACSONE)
* Pedro M. Baeza <pedro.baeza@gmail.com>
* Jeroen Evens <jeroen.evenss@dynapps.be>
* Jim Hoefnagels <jim.hoefnagels@dynapps.be>

0 comments on commit fa519ec

Please sign in to comment.