mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[MIG] account_partner_reconcile: Migration to 10.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/9.0
|
:target: https://runbot.odoo-community.org/runbot/96/10.0
|
||||||
|
|
||||||
Bug Tracker
|
Bug Tracker
|
||||||
===========
|
===========
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': "Account Partner Reconcile",
|
'name': "Account Partner Reconcile",
|
||||||
'version': '9.0.1.0.0',
|
'version': '10.0.1.0.0',
|
||||||
'category': 'Accounting',
|
'category': 'Accounting',
|
||||||
'author': 'Eficent,'
|
'author': 'Eficent,'
|
||||||
'Odoo Community Association (OCA), ',
|
'Odoo Community Association (OCA), ',
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
# (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).
|
||||||
|
|
||||||
from openerp import models, api
|
from odoo import api, models
|
||||||
|
|
||||||
|
|
||||||
class ResPartner(models.Model):
|
class ResPartner(models.Model):
|
||||||
|
|||||||
6
account_partner_reconcile/tests/__init__.py
Normal file
6
account_partner_reconcile/tests/__init__.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
|
# (http://www.eficent.com)
|
||||||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
|
from . import test_account_partner_reconcile
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
|
# (http://www.eficent.com)
|
||||||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
|
from odoo.tests.common import TransactionCase
|
||||||
|
|
||||||
|
|
||||||
|
class TestAccountPartnerReconcile(TransactionCase):
|
||||||
|
"""
|
||||||
|
Tests for Account Partner Reconcile.
|
||||||
|
"""
|
||||||
|
def setUp(self):
|
||||||
|
super(TestAccountPartnerReconcile, self).setUp()
|
||||||
|
|
||||||
|
self.partner1 = self.env.ref('base.res_partner_1')
|
||||||
|
|
||||||
|
def test_account_partner_reconcile(self):
|
||||||
|
|
||||||
|
res = self.partner1.action_open_reconcile()
|
||||||
|
self.assertDictContainsSubset(
|
||||||
|
{
|
||||||
|
'type': 'ir.actions.client',
|
||||||
|
'tag': 'manual_reconciliation_view',
|
||||||
|
},
|
||||||
|
res,
|
||||||
|
'There was an error and the manual_reconciliation_view '
|
||||||
|
'couldn\'t be opened.'
|
||||||
|
)
|
||||||
|
self.assertDictContainsSubset(
|
||||||
|
{
|
||||||
|
'partner_ids': self.partner1.ids,
|
||||||
|
'show_mode_selector': True,
|
||||||
|
},
|
||||||
|
res['context'],
|
||||||
|
'There was an error and the manual_reconciliation_view '
|
||||||
|
'couldn\'t be opened.'
|
||||||
|
)
|
||||||
@@ -1,20 +1,20 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<openerp>
|
<odoo>
|
||||||
|
|
||||||
<record id="res_partner_view_buttons" model="ir.ui.view">
|
<record id="res_partner_view_buttons" model="ir.ui.view">
|
||||||
<field name="name">res.partner.view.buttons</field>
|
<field name="name">res.partner.view.buttons</field>
|
||||||
<field name="model">res.partner</field>
|
<field name="model">res.partner</field>
|
||||||
<field name="inherit_id" ref="base.view_partner_form" />
|
<field name="inherit_id" ref="base.view_partner_form" />
|
||||||
<field name="priority" eval="20"/>
|
<field name="priority" eval="20"/>
|
||||||
<field name="groups_id" eval="[(4, ref('account.group_account_user'))]"/>
|
<field name="groups_id" eval="[(4, ref('account.group_account_user'))]"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<div name="button_box" position="inside">
|
<div name="button_box" position="inside">
|
||||||
<button class="oe_stat_button" type="object"
|
<button class="oe_stat_button" type="object"
|
||||||
name="action_open_reconcile"
|
name="action_open_reconcile"
|
||||||
icon="fa-usd" string="Match payments">
|
icon="fa-usd" string="Match payments">
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</openerp>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user