-
-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
17
account_multiple_account_type_reconciliation/__openerp__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
], | ||
} |
Binary file added
BIN
+9.23 KB
account_multiple_account_type_reconciliation/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions
32
...account_type_reconciliation/static/src/js/account_multiple_account_type_reconciliation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
account_multiple_account_type_reconciliation/views/templates.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |