[MIG] partner_statement: Migration to 13.0

[UPD] Update partner_statement.pot

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-partner_statement
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-partner_statement/
This commit is contained in:
mreficent
2020-02-04 12:26:38 +01:00
committed by Miquel Raïch
parent 24cb1fe10c
commit c6b12f0cea
31 changed files with 444 additions and 526 deletions

View File

@@ -1,5 +1,4 @@
# Copyright 2018 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2018 ForgeFlow, S.L. (http://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from dateutil.relativedelta import relativedelta
@@ -34,8 +33,8 @@ class ActivityStatementWizard(models.TransientModel):
"""Export to PDF."""
data = self._prepare_statement()
return self.env.ref(
"partner_statement" ".action_print_activity_statement"
).report_action(self, data=data)
"partner_statement.action_print_activity_statement"
).report_action(self.ids, data=data)
def _prepare_statement(self):
res = super()._prepare_statement()

View File

@@ -1,5 +1,4 @@
# Copyright 2018 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2018 ForgeFlow, S.L. (http://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import models
@@ -16,5 +15,5 @@ class OutstandingStatementWizard(models.TransientModel):
"""Export to PDF."""
data = self._prepare_statement()
return self.env.ref(
"partner_statement" ".action_print_outstanding_statement"
).report_action(self, data=data)
"partner_statement.action_print_outstanding_statement"
).report_action(self.ids, data=data)

View File

@@ -56,7 +56,6 @@ class StatementCommon(models.AbstractModel):
else:
self.date_end = fields.Date.context_today(self)
@api.multi
def button_export_pdf(self):
self.ensure_one()
return self._export()

View File

@@ -1,27 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2018 Eficent Business and IT Consulting Services S.L.
<!-- Copyright 2018 ForgeFlow, S.L. (https://www.forgeflow.com)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<!-- wizard action on res.partner -->
<act_window
id="activity_statement_wizard_action"
name="Partner Activity Statement"
src_model="res.partner"
binding_model="res.partner"
res_model="activity.statement.wizard"
view_type="form"
view_mode="form"
key2="client_action_multi"
target="new"
groups="partner_statement.group_activity_statement"
/>
<act_window
id="outstanding_statement_wizard_action"
name="Partner Outstanding Statement"
src_model="res.partner"
binding_model="res.partner"
res_model="outstanding.statement.wizard"
view_type="form"
view_mode="form"
key2="client_action_multi"
target="new"
groups="partner_statement.group_outstanding_statement"
/>