Skip to content

Commit

Permalink
11-amlse
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-demeyer committed Jun 3, 2020
1 parent 97172b9 commit 6c13751
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions account_move_line_search_extension/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 2009-2019 Noviat.
# Copyright 2009-2020 Noviat.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Journal Items Search Extension',
'version': '11.0.1.0.0',
'version': '11.0.1.0.1',
'license': 'AGPL-3',
'author': 'Noviat, Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/account-financial-tools',
Expand Down
4 changes: 2 additions & 2 deletions account_move_line_search_extension/static/src/js/amlse.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
# Copyright 2009-2019 Noviat.
# Copyright 2009-2020 Noviat.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
*/

Expand Down Expand Up @@ -152,7 +152,7 @@ odoo.define('account_move_line_search_extension.amlse', function (require) {

aml_search_domain: function () {
var domain = [];
if (this.current_account) domain.push(['account_id.code', 'ilike', this.current_account]);
if (this.current_account) domain.push(['account_id.code', '=ilike', this.current_account.concat('%')]);
if (this.current_analytic_account) domain.push(['analytic_account_search', 'in', this.current_analytic_account]);
if (this.current_partner) domain.push(['partner_id.name', 'ilike', this.current_partner]);
if (this.current_journal) domain.push(['journal_id', '=', this.current_journal]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
display: block;
min-width: 50px;
background-color: white !important;
border: 1px solid darken(@odoo-control-panel-background-color, 20%);
}
}

0 comments on commit 6c13751

Please sign in to comment.