mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[MIG] account_partner_reconcile: Migration to 11.0
This commit is contained in:
@@ -17,7 +17,7 @@ The button is visible only to users that belong to the accounting groups
|
|||||||
|
|
||||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||||
:alt: Try me on Runbot
|
:alt: Try me on Runbot
|
||||||
:target: https://runbot.odoo-community.org/runbot/96/10.0
|
:target: https://runbot.odoo-community.org/runbot/96/11.0
|
||||||
|
|
||||||
Bug Tracker
|
Bug Tracker
|
||||||
===========
|
===========
|
||||||
@@ -35,6 +35,7 @@ Contributors
|
|||||||
------------
|
------------
|
||||||
|
|
||||||
* Jordi Ballester <jordi.ballester@eficent.com>
|
* Jordi Ballester <jordi.ballester@eficent.com>
|
||||||
|
* Jaume Planas <jaume.planas@minorisa.net>
|
||||||
|
|
||||||
Maintainer
|
Maintainer
|
||||||
----------
|
----------
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
from . import models
|
from . import models
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# (http://www.eficent.com)
|
# (http://www.eficent.com)
|
||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': "Account Partner Reconcile",
|
'name': "Account Partner Reconcile",
|
||||||
'version': '10.0.1.0.0',
|
'version': '11.0.1.0.0',
|
||||||
'category': 'Accounting',
|
'category': 'Accounting',
|
||||||
'author': 'Eficent,'
|
'author': 'Eficent,'
|
||||||
'Odoo Community Association (OCA), ',
|
'Odoo Community Association (OCA), ',
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
from . import res_partner
|
from . import res_partner
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# (http://www.eficent.com)
|
# (http://www.eficent.com)
|
||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# (http://www.eficent.com)
|
# (http://www.eficent.com)
|
||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# (http://www.eficent.com)
|
# (http://www.eficent.com)
|
||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
@@ -10,29 +9,30 @@ class TestAccountPartnerReconcile(TransactionCase):
|
|||||||
"""
|
"""
|
||||||
Tests for Account Partner Reconcile.
|
Tests for Account Partner Reconcile.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TestAccountPartnerReconcile, self).setUp()
|
super(TestAccountPartnerReconcile, self).setUp()
|
||||||
|
|
||||||
self.partner1 = self.env.ref('base.res_partner_1')
|
self.partner1 = self.env.ref('base.res_partner_1')
|
||||||
|
|
||||||
def test_account_partner_reconcile(self):
|
def test_account_partner_reconcile(self):
|
||||||
|
|
||||||
res = self.partner1.action_open_reconcile()
|
res = self.partner1.action_open_reconcile()
|
||||||
self.assertDictContainsSubset(
|
|
||||||
{
|
# assertDictContainsSubset is deprecated in Python <3.2
|
||||||
|
expect = {
|
||||||
'type': 'ir.actions.client',
|
'type': 'ir.actions.client',
|
||||||
'tag': 'manual_reconciliation_view',
|
'tag': 'manual_reconciliation_view',
|
||||||
},
|
}
|
||||||
res,
|
self.assertDictEqual(
|
||||||
|
expect, {k: v for k, v in res.items() if k in expect},
|
||||||
'There was an error and the manual_reconciliation_view '
|
'There was an error and the manual_reconciliation_view '
|
||||||
'couldn\'t be opened.'
|
'couldn\'t be opened.')
|
||||||
)
|
|
||||||
self.assertDictContainsSubset(
|
expect = {
|
||||||
{
|
|
||||||
'partner_ids': self.partner1.ids,
|
'partner_ids': self.partner1.ids,
|
||||||
'show_mode_selector': True,
|
'show_mode_selector': True,
|
||||||
},
|
}
|
||||||
res['context'],
|
self.assertDictEqual(
|
||||||
|
expect, {k: v for k, v in res['context'].items() if k in expect},
|
||||||
'There was an error and the manual_reconciliation_view '
|
'There was an error and the manual_reconciliation_view '
|
||||||
'couldn\'t be opened.'
|
'couldn\'t be opened.')
|
||||||
)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user