Skip to content

Commit ca16dd9

Browse files
committed
[MIG] account_reporting_weight: Migration to v12.0
1 parent 157d7ec commit ca16dd9

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

account_reporting_weight/README.rst

+9-8
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ Weights in the invoices analysis view
77
!! changes will be overwritten. !!
88
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
99
10-
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
10+
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
1111
:target: https://odoo-community.org/page/development-status
12-
:alt: Beta
12+
:alt: Production/Stable
1313
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
1414
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1515
:alt: License: AGPL-3
1616
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoice--reporting-lightgray.png?logo=github
17-
:target: https://github.com/OCA/account-invoice-reporting/tree/11.0/account_reporting_weight
17+
:target: https://github.com/OCA/account-invoice-reporting/tree/12.0/account_reporting_weight
1818
:alt: OCA/account-invoice-reporting
1919
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20-
:target: https://translation.odoo-community.org/projects/account-invoice-reporting-11-0/account-invoice-reporting-11-0-account_reporting_weight
20+
:target: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-account_reporting_weight
2121
:alt: Translate me on Weblate
2222
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23-
:target: https://runbot.odoo-community.org/runbot/94/11.0
23+
:target: https://runbot.odoo-community.org/runbot/94/12.0
2424
:alt: Try me on Runbot
2525

2626
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -47,7 +47,7 @@ seeing the report.
4747
Usage
4848
=====
4949

50-
#. Go to *Invoicing > Reporting > Businness Intelligence > Invoices*.
50+
#. Go to *Invoicing > Reporting > Management > Invoices*.
5151
#. Add the "Weight" measure from your "Measures" dropdown in your analysis.
5252

5353
Bug Tracker
@@ -56,7 +56,7 @@ Bug Tracker
5656
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoice-reporting/issues>`_.
5757
In case of trouble, please check there if your issue has already been reported.
5858
If you spotted it first, help us smashing it by providing a detailed and welcomed
59-
`feedback <https://github.com/OCA/account-invoice-reporting/issues/new?body=module:%20account_reporting_weight%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
59+
`feedback <https://github.com/OCA/account-invoice-reporting/issues/new?body=module:%20account_reporting_weight%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6060

6161
Do not contact contributors directly about support or help with technical issues.
6262

@@ -75,6 +75,7 @@ Contributors
7575

7676
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
7777
* David Vidal <david.vidal@tecnativa.com>
78+
* Sergio Teruel <sergio.teruel@tecnativa.com>
7879

7980
Maintainers
8081
~~~~~~~~~~~
@@ -89,6 +90,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8990
mission is to support the collaborative development of Odoo features and
9091
promote its widespread use.
9192

92-
This module is part of the `OCA/account-invoice-reporting <https://github.com/OCA/account-invoice-reporting/tree/11.0/account_reporting_weight>`_ project on GitHub.
93+
This module is part of the `OCA/account-invoice-reporting <https://github.com/OCA/account-invoice-reporting/tree/12.0/account_reporting_weight>`_ project on GitHub.
9394

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

account_reporting_weight/__manifest__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33

44
{
55
'name': 'Weights in the invoices analysis view',
6-
'version': '11.0.1.0.0',
6+
'version': '12.0.1.0.0',
77
'author': 'Tecnativa,'
88
'Odoo Community Association (OCA)',
99
'category': 'Inventory, Logistics, Warehousing',
10+
'development_status': 'Production/Stable',
1011
'license': 'AGPL-3',
1112
'website': 'https://www.github.com/account_reporting_weight',
1213
'depends': [

account_reporting_weight/readme/CONTRIBUTORS.rst

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
* Pedro M. Baeza <pedro.baeza@tecnativa.com>
44
* David Vidal <david.vidal@tecnativa.com>
5+
* Sergio Teruel <sergio.teruel@tecnativa.com>
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#. Go to *Invoicing > Reporting > Businness Intelligence > Invoices*.
1+
#. Go to *Invoicing > Reporting > Management > Invoices*.
22
#. Add the "Weight" measure from your "Measures" dropdown in your analysis.

account_reporting_weight/reports/account_invoice_report.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ class AccountInvoiceReport(models.Model):
1111
weight = fields.Float(digits=dp.get_precision('Stock Weight'))
1212

1313
def _select(self):
14-
select_str = super(AccountInvoiceReport, self)._select()
14+
select_str = super()._select()
1515
select_str += """
1616
, sub.weight as weight
1717
"""
1818
return select_str
1919

2020
def _sub_select(self):
21-
select_str = super(AccountInvoiceReport, self)._sub_select()
21+
select_str = super()._sub_select()
2222
select_str += """
2323
, SUM(pr.weight * ail.quantity / u.factor * u2.factor)
2424
AS weight
2525
"""
2626
return select_str
2727

2828
def _group_by(self):
29-
group_by_str = super(AccountInvoiceReport, self)._group_by()
29+
group_by_str = super()._group_by()
3030
group_by_str += ", pr.weight, u.category_id"
3131
return group_by_str

account_reporting_weight/static/description/index.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ <h1 class="title">Weights in the invoices analysis view</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
370-
<p><a class="reference external" 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" 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" href="https://github.com/OCA/account-invoice-reporting/tree/11.0/account_reporting_weight"><img alt="OCA/account-invoice-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--invoice--reporting-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-invoice-reporting-11-0/account-invoice-reporting-11-0-account_reporting_weight"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/94/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
370+
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external" 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" href="https://github.com/OCA/account-invoice-reporting/tree/12.0/account_reporting_weight"><img alt="OCA/account-invoice-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--invoice--reporting-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-account_reporting_weight"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/94/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
371371
<p>This module adds the measure “Weight” in the invoices analysis view.</p>
372372
<p><strong>Table of contents</strong></p>
373373
<div class="contents local topic" id="contents">
@@ -399,7 +399,7 @@ <h1><a class="toc-backref" href="#id2">Configuration</a></h1>
399399
<div class="section" id="usage">
400400
<h1><a class="toc-backref" href="#id3">Usage</a></h1>
401401
<ol class="arabic simple">
402-
<li>Go to <em>Invoicing &gt; Reporting &gt; Businness Intelligence &gt; Invoices</em>.</li>
402+
<li>Go to <em>Invoicing &gt; Reporting &gt; Management &gt; Invoices</em>.</li>
403403
<li>Add the “Weight” measure from your “Measures” dropdown in your analysis.</li>
404404
</ol>
405405
</div>
@@ -408,7 +408,7 @@ <h1><a class="toc-backref" href="#id4">Bug Tracker</a></h1>
408408
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-invoice-reporting/issues">GitHub Issues</a>.
409409
In case of trouble, please check there if your issue has already been reported.
410410
If you spotted it first, help us smashing it by providing a detailed and welcomed
411-
<a class="reference external" href="https://github.com/OCA/account-invoice-reporting/issues/new?body=module:%20account_reporting_weight%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
411+
<a class="reference external" href="https://github.com/OCA/account-invoice-reporting/issues/new?body=module:%20account_reporting_weight%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
412412
<p>Do not contact contributors directly about support or help with technical issues.</p>
413413
</div>
414414
<div class="section" id="credits">
@@ -425,6 +425,7 @@ <h2><a class="toc-backref" href="#id7">Contributors</a></h2>
425425
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
426426
<li>Pedro M. Baeza &lt;<a class="reference external" href="mailto:pedro.baeza&#64;tecnativa.com">pedro.baeza&#64;tecnativa.com</a>&gt;</li>
427427
<li>David Vidal &lt;<a class="reference external" href="mailto:david.vidal&#64;tecnativa.com">david.vidal&#64;tecnativa.com</a>&gt;</li>
428+
<li>Sergio Teruel &lt;<a class="reference external" href="mailto:sergio.teruel&#64;tecnativa.com">sergio.teruel&#64;tecnativa.com</a>&gt;</li>
428429
</ul>
429430
</li>
430431
</ul>
@@ -436,7 +437,7 @@ <h2><a class="toc-backref" href="#id8">Maintainers</a></h2>
436437
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
437438
mission is to support the collaborative development of Odoo features and
438439
promote its widespread use.</p>
439-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-invoice-reporting/tree/11.0/account_reporting_weight">OCA/account-invoice-reporting</a> project on GitHub.</p>
440+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-invoice-reporting/tree/12.0/account_reporting_weight">OCA/account-invoice-reporting</a> project on GitHub.</p>
440441
<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>
441442
</div>
442443
</div>

0 commit comments

Comments
 (0)