Browse Source

Fix missing label translatable

pull/367/head
jcoux 8 years ago
committed by Jordi Ballester
parent
commit
98dfcb23f2
  1. 6
      account_financial_report_qweb/report/general_ledger.py
  2. 6
      account_financial_report_qweb/report/open_items.py

6
account_financial_report_qweb/report/general_ledger.py

@ -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,

6
account_financial_report_qweb/report/open_items.py

@ -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 OpenItemsReport(models.TransientModel): class OpenItemsReport(models.TransientModel):
@ -267,7 +267,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_open_items_qweb_account ra report_open_items_qweb_account ra
@ -483,7 +483,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,

Loading…
Cancel
Save