Skip to content

Commit

Permalink
Merge 5a60b21 into b3b14fe
Browse files Browse the repository at this point in the history
  • Loading branch information
daramousk committed Jul 7, 2017
2 parents b3b14fe + 5a60b21 commit 0bf2761
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 0 deletions.
69 changes: 69 additions & 0 deletions account_multiple_account_type_reconciliation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

====================================
Multiple account type reconciliation
====================================

This module was written to extend the functionality of account to support
reconciliation between invoices that have accounts that are of different
type.

Installation
============

To install this module, you need to:

Click install from Settings -> Local Modules


Usage
=====

To use this module, you need to:

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/{repo_id}/8.0

.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt
Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/account-invoicing/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.

Credits
=======

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

Contributors
------------

* George Daramouskas <gdaramouskas@therp.nl>

Do not contact contributors directly about help with questions or problems concerning this addon, but use the `community mailing list <mailto:community@mail.odoo.com>`_ or the `appropriate specialized mailinglist <https://odoo-community.org/groups>`_ for help, and the bug tracker linked in `Bug Tracker`_ above for technical issues.

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.
3 changes: 3 additions & 0 deletions account_multiple_account_type_reconciliation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
# © 2017 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
17 changes: 17 additions & 0 deletions account_multiple_account_type_reconciliation/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
# © 2017 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Multiple account type reconciliation",
"version": "8.0.1.0.0",
"author": "Therp BV,Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "",
"summary": "Reconcile invoices with different account types.",
"depends": [
'account'
],
"data": [
'views/templates.xml'
],
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//-*- coding: utf-8 -*-
//© 2017 Therp BV <http://therp.nl>
//License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

openerp.account_multiple_account_type_reconciliation = function(instance) {
instance.web.account.bankStatementReconciliationLine.include({

selectMoveLine : function(mv_line) {
var self = this;
var line_id = mv_line.dataset.lineid;

// find the line in mv_lines or mv_lines_deselected
var line = _.find(self.get("mv_lines"), function(o) {
return o.id == line_id
});
if (!line) {
line = _.find(self.mv_lines_deselected, function(o) {
return o.id == line_id
});
self.mv_lines_deselected = _.filter(self.mv_lines_deselected,
function(o) {
return o.id != line_id
});
}
if (!line)
return; // If no line found, we've got a syncing problem (let's
// turn a deaf ear)
self.set("mv_lines_selected", self.get("mv_lines_selected").concat(
line));
}
});
};
10 changes: 10 additions & 0 deletions account_multiple_account_type_reconciliation/views/templates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<template id="assets_backend" name="account_multiple_account_type_reconciliation assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/account_multiple_account_type_reconciliation/static/src/js/account_multiple_account_type_reconciliation.js"></script>
</xpath>
</template>
</data>
</openerp>

0 comments on commit 0bf2761

Please sign in to comment.