|
@ -2,7 +2,7 @@ |
|
|
# © 2016 Julien Coux (Camptocamp) |
|
|
# © 2016 Julien Coux (Camptocamp) |
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
|
|
|
|
|
|
from openerp import models, fields, api |
|
|
|
|
|
|
|
|
from openerp import models, fields, api, _ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class GeneralLedgerReport(models.TransientModel): |
|
|
class GeneralLedgerReport(models.TransientModel): |
|
@ -454,7 +454,7 @@ WITH |
|
|
THEN p.name || ' (' || p.ref || ')' |
|
|
THEN p.name || ' (' || p.ref || ')' |
|
|
ELSE p.name |
|
|
ELSE p.name |
|
|
END, |
|
|
END, |
|
|
'No partner allocated' |
|
|
|
|
|
|
|
|
'""" + _('No partner allocated') + """' |
|
|
) AS partner_name |
|
|
) AS partner_name |
|
|
FROM |
|
|
FROM |
|
|
report_general_ledger_qweb_account ra |
|
|
report_general_ledger_qweb_account ra |
|
@ -670,7 +670,7 @@ SELECT |
|
|
""" |
|
|
""" |
|
|
elif only_empty_partner_line: |
|
|
elif only_empty_partner_line: |
|
|
query_inject_move_line += """ |
|
|
query_inject_move_line += """ |
|
|
'No partner allocated' AS partner, |
|
|
|
|
|
|
|
|
'""" + _('No partner allocated') + """' AS partner, |
|
|
""" |
|
|
""" |
|
|
query_inject_move_line += """ |
|
|
query_inject_move_line += """ |
|
|
CONCAT_WS(' - ', NULLIF(ml.ref, ''), NULLIF(ml.name, '')) AS label, |
|
|
CONCAT_WS(' - ', NULLIF(ml.ref, ''), NULLIF(ml.name, '')) AS label, |
|
|