Automatic Update form OCA2FC Migrator

This commit is contained in:
Flectra Community Bot 2022-02-06 03:11:54 +00:00 committed by OCA2FC Migrator Bot
parent 9db3632af1
commit 50df5eb6c0
3 changed files with 6 additions and 8 deletions

View File

@ -12,6 +12,6 @@ addon | version | summary
[account_cutoff_accrual_picking](account_cutoff_accrual_picking/) | 2.0.1.1.0| Accrued expense & accrued revenue from pickings [account_cutoff_accrual_picking](account_cutoff_accrual_picking/) | 2.0.1.1.0| Accrued expense & accrued revenue from pickings
[account_invoice_start_end_dates](account_invoice_start_end_dates/) | 2.0.1.1.0| Adds start/end dates on invoice/move lines [account_invoice_start_end_dates](account_invoice_start_end_dates/) | 2.0.1.1.0| Adds start/end dates on invoice/move lines
[account_cutoff_start_end_dates](account_cutoff_start_end_dates/) | 2.0.1.0.0| Cutoffs based on start/end dates [account_cutoff_start_end_dates](account_cutoff_start_end_dates/) | 2.0.1.0.0| Cutoffs based on start/end dates
[account_cutoff_base](account_cutoff_base/) | 2.0.1.2.0| Base module for Account Cut-offs [account_cutoff_base](account_cutoff_base/) | 2.0.1.2.1| Base module for Account Cut-offs

View File

@ -4,7 +4,7 @@
{ {
"name": "Account Cut-off Base", "name": "Account Cut-off Base",
"version": "2.0.1.2.0", "version": "2.0.1.2.1",
"category": "Accounting & Finance", "category": "Accounting & Finance",
"license": "AGPL-3", "license": "AGPL-3",
"summary": "Base module for Account Cut-offs", "summary": "Base module for Account Cut-offs",

View File

@ -305,7 +305,8 @@ class AccountCutoff(models.Model):
self.write({"move_id": move.id, "state": "done"}) self.write({"move_id": move.id, "state": "done"})
self.message_post(body=_("Journal entry generated")) self.message_post(body=_("Journal entry generated"))
action = self.env.ref("account.action_move_journal_line").sudo().read()[0] xmlid = "account.action_move_journal_line"
action = self.env["ir.actions.act_window"]._for_xml_id(xmlid)
action.update( action.update(
{ {
"view_mode": "form,tree", "view_mode": "form,tree",
@ -336,11 +337,8 @@ class AccountCutoff(models.Model):
return super().unlink() return super().unlink()
def button_line_tree(self): def button_line_tree(self):
action = ( xmlid = "account_cutoff_base.account_cutoff_line_action"
self.env.ref("account_cutoff_base.account_cutoff_line_action") action = self.env["ir.actions.act_window"]._for_xml_id(xmlid)
.sudo()
.read()[0]
)
action.update( action.update(
{ {
"domain": [("parent_id", "=", self.id)], "domain": [("parent_id", "=", self.id)],