Skip to content

Commit e8889a2

Browse files
[MIG] account_move_line_report_xls: Migration to 18.0
1 parent 2ecc9db commit e8889a2

File tree

6 files changed

+63
-52
lines changed

6 files changed

+63
-52
lines changed

account_move_line_report_xls/README.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Account Move Line XLSX export
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github
20-
:target: https://github.com/OCA/account-financial-reporting/tree/17.0/account_move_line_report_xls
20+
:target: https://github.com/OCA/account-financial-reporting/tree/18.0/account_move_line_report_xls
2121
:alt: OCA/account-financial-reporting
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-account_move_line_report_xls
23+
:target: https://translation.odoo-community.org/projects/account-financial-reporting-18-0/account-financial-reporting-18-0-account_move_line_report_xls
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -78,7 +78,7 @@ Bug Tracker
7878
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-reporting/issues>`_.
7979
In case of trouble, please check there if your issue has already been reported.
8080
If you spotted it first, help us to smash it by providing a detailed and welcomed
81-
`feedback <https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20account_move_line_report_xls%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
81+
`feedback <https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20account_move_line_report_xls%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
8282

8383
Do not contact contributors directly about support or help with technical issues.
8484

@@ -94,6 +94,9 @@ Contributors
9494
------------
9595

9696
- Luc De Meyer <[email protected]>
97+
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
98+
99+
- Bhavesh Heliconia
97100

98101
Maintainers
99102
-----------
@@ -108,6 +111,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
108111
mission is to support the collaborative development of Odoo features and
109112
promote its widespread use.
110113

111-
This module is part of the `OCA/account-financial-reporting <https://github.com/OCA/account-financial-reporting/tree/17.0/account_move_line_report_xls>`_ project on GitHub.
114+
This module is part of the `OCA/account-financial-reporting <https://github.com/OCA/account-financial-reporting/tree/18.0/account_move_line_report_xls>`_ project on GitHub.
112115

113116
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

account_move_line_report_xls/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{
55
"name": "Account Move Line XLSX export",
6-
"version": "17.0.1.0.0",
6+
"version": "18.0.1.0.0",
77
"license": "AGPL-3",
88
"author": "Noviat, Odoo Community Association (OCA)",
99
"category": "Accounting & Finance",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
- Luc De Meyer \<<[email protected]>\>
2+
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
3+
- Bhavesh Heliconia

account_move_line_report_xls/report/account_move_line_xlsx.py

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2009-2020 Noviat
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
33

4-
from odoo import _, models
4+
from odoo import models
55

66
from odoo.addons.report_xlsx_helper.report.report_xlsx_format import (
77
FORMATS,
@@ -18,49 +18,49 @@ def _get_ws_params(self, workbook, data, amls):
1818
# XLSX Template
1919
col_specs = {
2020
"move": {
21-
"header": {"value": _("Entry")},
21+
"header": {"value": self.env._("Entry")},
2222
"lines": {"value": self._render("line.move_id.name")},
2323
"width": 20,
2424
},
2525
"name": {
26-
"header": {"value": _("Name")},
26+
"header": {"value": self.env._("Name")},
2727
"lines": {"value": self._render("line.name")},
2828
"width": 42,
2929
},
3030
"ref": {
31-
"header": {"value": _("Reference")},
31+
"header": {"value": self.env._("Reference")},
3232
"lines": {"value": self._render("line.ref")},
3333
"width": 42,
3434
},
3535
"date": {
36-
"header": {"value": _("Effective Date")},
36+
"header": {"value": self.env._("Effective Date")},
3737
"lines": {
3838
"value": self._render("line.date"),
3939
"format": FORMATS["format_tcell_date_left"],
4040
},
4141
"width": 13,
4242
},
4343
"partner": {
44-
"header": {"value": _("Partner")},
44+
"header": {"value": self.env._("Partner")},
4545
"lines": {
4646
"value": self._render("line.partner_id and line.partner_id.name")
4747
},
4848
"width": 36,
4949
},
5050
"partner_ref": {
51-
"header": {"value": _("Partner Reference")},
51+
"header": {"value": self.env._("Partner Reference")},
5252
"lines": {
5353
"value": self._render("line.partner_id and line.partner_id.ref")
5454
},
5555
"width": 36,
5656
},
5757
"account": {
58-
"header": {"value": _("Account")},
58+
"header": {"value": self.env._("Account")},
5959
"lines": {"value": self._render("line.account_id.code")},
6060
"width": 12,
6161
},
6262
"date_maturity": {
63-
"header": {"value": _("Maturity Date")},
63+
"header": {"value": self.env._("Maturity Date")},
6464
"lines": {
6565
"value": self._render("line.date_maturity"),
6666
"format": FORMATS["format_tcell_date_left"],
@@ -69,7 +69,7 @@ def _get_ws_params(self, workbook, data, amls):
6969
},
7070
"debit": {
7171
"header": {
72-
"value": _("Debit"),
72+
"value": self.env._("Debit"),
7373
"format": FORMATS["format_theader_yellow_right"],
7474
},
7575
"lines": {
@@ -85,7 +85,7 @@ def _get_ws_params(self, workbook, data, amls):
8585
},
8686
"credit": {
8787
"header": {
88-
"value": _("Credit"),
88+
"value": self.env._("Credit"),
8989
"format": FORMATS["format_theader_yellow_right"],
9090
},
9191
"lines": {
@@ -101,7 +101,7 @@ def _get_ws_params(self, workbook, data, amls):
101101
},
102102
"balance": {
103103
"header": {
104-
"value": _("Balance"),
104+
"value": self.env._("Balance"),
105105
"format": FORMATS["format_theader_yellow_right"],
106106
},
107107
"lines": {
@@ -117,7 +117,7 @@ def _get_ws_params(self, workbook, data, amls):
117117
},
118118
"full_reconcile": {
119119
"header": {
120-
"value": _("Rec."),
120+
"value": self.env._("Rec."),
121121
"format": FORMATS["format_theader_yellow_center"],
122122
},
123123
"lines": {
@@ -129,7 +129,7 @@ def _get_ws_params(self, workbook, data, amls):
129129
"width": 12,
130130
},
131131
"reconcile_amount": {
132-
"header": {"value": _("Reconcile Amount")},
132+
"header": {"value": self.env._("Reconcile Amount")},
133133
"lines": {
134134
"value": self._render(
135135
"line.full_reconcile_id and line.balance or "
@@ -141,7 +141,7 @@ def _get_ws_params(self, workbook, data, amls):
141141
"width": 12,
142142
},
143143
"matched_debit_ids": {
144-
"header": {"value": _("Matched Debits")},
144+
"header": {"value": self.env._("Matched Debits")},
145145
"lines": {
146146
"value": self._render(
147147
"line.matched_debit_ids "
@@ -152,7 +152,7 @@ def _get_ws_params(self, workbook, data, amls):
152152
"width": 20,
153153
},
154154
"matched_credit_ids": {
155-
"header": {"value": _("Matched Credits")},
155+
"header": {"value": self.env._("Matched Credits")},
156156
"lines": {
157157
"value": self._render(
158158
"line.matched_credit_ids "
@@ -164,7 +164,7 @@ def _get_ws_params(self, workbook, data, amls):
164164
},
165165
"amount_currency": {
166166
"header": {
167-
"value": _("Am. Currency"),
167+
"value": self.env._("Am. Currency"),
168168
"format": FORMATS["format_theader_yellow_right"],
169169
},
170170
"lines": {
@@ -175,7 +175,7 @@ def _get_ws_params(self, workbook, data, amls):
175175
},
176176
"currency_name": {
177177
"header": {
178-
"value": _("Curr."),
178+
"value": self.env._("Curr."),
179179
"format": FORMATS["format_theader_yellow_center"],
180180
},
181181
"lines": {
@@ -185,13 +185,13 @@ def _get_ws_params(self, workbook, data, amls):
185185
"width": 6,
186186
},
187187
"journal": {
188-
"header": {"value": _("Journal")},
188+
"header": {"value": self.env._("Journal")},
189189
"lines": {"value": self._render("line.journal_id.code")},
190190
"width": 12,
191191
},
192192
"company_currency": {
193193
"header": {
194-
"value": _("Comp. Curr."),
194+
"value": self.env._("Comp. Curr."),
195195
"format": FORMATS["format_theader_yellow_center"],
196196
},
197197
"lines": {
@@ -201,14 +201,14 @@ def _get_ws_params(self, workbook, data, amls):
201201
"width": 10,
202202
},
203203
"product": {
204-
"header": {"value": _("Product")},
204+
"header": {"value": self.env._("Product")},
205205
"lines": {
206206
"value": self._render("line.product_id and line.product_id.name")
207207
},
208208
"width": 36,
209209
},
210210
"product_ref": {
211-
"header": {"value": _("Product Reference")},
211+
"header": {"value": self.env._("Product Reference")},
212212
"lines": {
213213
"value": self._render(
214214
"line.product_id and line.product_id.default_code or ''"
@@ -217,7 +217,7 @@ def _get_ws_params(self, workbook, data, amls):
217217
"width": 36,
218218
},
219219
"product_uom": {
220-
"header": {"value": _("Unit of Measure")},
220+
"header": {"value": self.env._("Unit of Measure")},
221221
"lines": {
222222
"value": self._render(
223223
"line.product_uom_id and line.product_uom_id.name"
@@ -227,7 +227,7 @@ def _get_ws_params(self, workbook, data, amls):
227227
},
228228
"quantity": {
229229
"header": {
230-
"value": _("Qty"),
230+
"value": self.env._("Qty"),
231231
"format": FORMATS["format_theader_yellow_right"],
232232
},
233233
"lines": {
@@ -237,7 +237,7 @@ def _get_ws_params(self, workbook, data, amls):
237237
"width": 8,
238238
},
239239
"statement": {
240-
"header": {"value": _("Statement")},
240+
"header": {"value": self.env._("Statement")},
241241
"lines": {
242242
"value": self._render(
243243
"line.statement_id and line.statement_id.name"
@@ -246,13 +246,13 @@ def _get_ws_params(self, workbook, data, amls):
246246
"width": 20,
247247
},
248248
"invoice": {
249-
"header": {"value": _("Invoice")},
249+
"header": {"value": self.env._("Invoice")},
250250
"lines": {"value": self._render("line.move_id and line.move_id.name")},
251251
"width": 20,
252252
},
253253
"amount_residual": {
254254
"header": {
255-
"value": _("Residual Amount"),
255+
"value": self.env._("Residual Amount"),
256256
"format": FORMATS["format_theader_yellow_right"],
257257
},
258258
"lines": {
@@ -263,7 +263,7 @@ def _get_ws_params(self, workbook, data, amls):
263263
},
264264
"amount_residual_currency": {
265265
"header": {
266-
"value": _("Res. Am. in Curr."),
266+
"value": self.env._("Res. Am. in Curr."),
267267
"format": FORMATS["format_theader_yellow_right"],
268268
},
269269
"lines": {
@@ -273,13 +273,13 @@ def _get_ws_params(self, workbook, data, amls):
273273
"width": 18,
274274
},
275275
"narration": {
276-
"header": {"value": _("Notes")},
276+
"header": {"value": self.env._("Notes")},
277277
"lines": {"value": self._render("line.move_id.narration or ''")},
278278
"width": 42,
279279
},
280280
"blocked": {
281281
"header": {
282-
"value": _("Lit."),
282+
"value": self.env._("Lit."),
283283
"format": FORMATS["format_theader_yellow_center"],
284284
},
285285
"lines": {
@@ -290,7 +290,7 @@ def _get_ws_params(self, workbook, data, amls):
290290
},
291291
"id": {
292292
"header": {
293-
"value": _("Id"),
293+
"value": self.env._("Id"),
294294
"format": FORMATS["format_theader_yellow_right"],
295295
},
296296
"lines": {
@@ -302,7 +302,7 @@ def _get_ws_params(self, workbook, data, amls):
302302
}
303303
col_specs.update(self.env["account.move.line"]._report_xlsx_template())
304304
wanted_list = self.env["account.move.line"]._report_xlsx_fields()
305-
title = _("Journal Items")
305+
title = self.env._("Journal Items")
306306

307307
return [
308308
{

account_move_line_report_xls/static/description/index.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">Account Move Line XLSX export</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:7ed3ff6e7ae9127f395cc985826d0a75d144fd692c5efdff31bcf50c6fa64a90
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-reporting/tree/17.0/account_move_line_report_xls"><img alt="OCA/account-financial-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-account_move_line_report_xls"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-reporting/tree/18.0/account_move_line_report_xls"><img alt="OCA/account-financial-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-reporting-18-0/account-financial-reporting-18-0-account_move_line_report_xls"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module extends the functionality of the journal items
374374
(‘account.move.line’) list view and allow you to export the selected
375375
lines.</p>
@@ -427,7 +427,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
427427
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues">GitHub Issues</a>.
428428
In case of trouble, please check there if your issue has already been reported.
429429
If you spotted it first, help us to smash it by providing a detailed and welcomed
430-
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20account_move_line_report_xls%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
430+
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20account_move_line_report_xls%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
431431
<p>Do not contact contributors directly about support or help with technical issues.</p>
432432
</div>
433433
<div class="section" id="credits">
@@ -442,6 +442,10 @@ <h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
442442
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
443443
<ul class="simple">
444444
<li>Luc De Meyer &lt;<a class="reference external" href="mailto:luc.demeyer&#64;noviat.com">luc.demeyer&#64;noviat.com</a>&gt;</li>
445+
<li><a class="reference external" href="https://www.heliconia.io">Heliconia Solutions Pvt. Ltd.</a><ul>
446+
<li>Bhavesh Heliconia</li>
447+
</ul>
448+
</li>
445449
</ul>
446450
</div>
447451
<div class="section" id="maintainers">
@@ -453,7 +457,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
453457
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
454458
mission is to support the collaborative development of Odoo features and
455459
promote its widespread use.</p>
456-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-reporting/tree/17.0/account_move_line_report_xls">OCA/account-financial-reporting</a> project on GitHub.</p>
460+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-reporting/tree/18.0/account_move_line_report_xls">OCA/account-financial-reporting</a> project on GitHub.</p>
457461
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
458462
</div>
459463
</div>

0 commit comments

Comments
 (0)