Skip to content

Commit a3fed6f

Browse files
[IMP] stock_account_valuation_discrepancy_adjust: pre-commit auto fixes
1 parent 924ea3c commit a3fed6f

File tree

9 files changed

+62
-41
lines changed

9 files changed

+62
-41
lines changed

stock_account_valuation_discrepancy_adjust/README.rst

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,32 @@ Account Valuation Discrepancy Adjust
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%2Fstock--logistics--reporting-lightgray.png?logo=github
20-
:target: https://github.com/OCA/stock-logistics-reporting/tree/16.0/stock_account_valuation_discrepancy_adjust
20+
:target: https://github.com/OCA/stock-logistics-reporting/tree/18.0/stock_account_valuation_discrepancy_adjust
2121
:alt: OCA/stock-logistics-reporting
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_account_valuation_discrepancy_adjust
23+
:target: https://translation.odoo-community.org/projects/stock-logistics-reporting-18-0/stock-logistics-reporting-18-0-stock_account_valuation_discrepancy_adjust
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/stock-logistics-reporting&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
Wizard to show discrepancies between stock and accounting valuation, and possibility to make accounting adjustment.
31+
Wizard to show discrepancies between stock and accounting valuation, and
32+
possibility to make accounting adjustment.
3233

33-
You should use this module if you have products where the inventory valuation is automated (this means that your inventory is connected with accounting). The report allows you to identify the products where the inventory value has a discrepancy with the accounting value for that same product, and to make an adjustment entry in your accounting to align the two values.
34+
You should use this module if you have products where the inventory
35+
valuation is automated (this means that your inventory is connected with
36+
accounting). The report allows you to identify the products where the
37+
inventory value has a discrepancy with the accounting value for that
38+
same product, and to make an adjustment entry in your accounting to
39+
align the two values.
3440

35-
This module adds an action the report in *Inventory / Reporting / Dual Inventory Valuation*. The action is accesible for Account Managers.
41+
This module adds an action the report in *Inventory / Reporting / Dual
42+
Inventory Valuation*. The action is accesible for Account Managers.
3643

37-
The action allows to create accounting entries by product in order to match the accounting value to the stock value.
44+
The action allows to create accounting entries by product in order to
45+
match the accounting value to the stock value.
3846

3947
.. IMPORTANT::
4048
This is an alpha version, the data model and design can change at any time without warning.
@@ -52,26 +60,26 @@ Bug Tracker
5260
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-reporting/issues>`_.
5361
In case of trouble, please check there if your issue has already been reported.
5462
If you spotted it first, help us to smash it by providing a detailed and welcomed
55-
`feedback <https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_account_valuation_discrepancy_adjust%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
63+
`feedback <https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_account_valuation_discrepancy_adjust%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5664

5765
Do not contact contributors directly about support or help with technical issues.
5866

5967
Credits
6068
=======
6169

6270
Authors
63-
~~~~~~~
71+
-------
6472

6573
* ForgeFlow
6674

6775
Contributors
68-
~~~~~~~~~~~~
76+
------------
6977

70-
* Christopher Ormaza <chris.ormaza@forgeflow.com>
71-
* Aaron Henriquez <aaron.henriquez@forgeflow.com>
78+
- Christopher Ormaza <chris.ormaza@forgeflow.com>
79+
- Aaron Henriquez <aaron.henriquez@forgeflow.com>
7280

7381
Maintainers
74-
~~~~~~~~~~~
82+
-----------
7583

7684
This module is maintained by the OCA.
7785

@@ -91,6 +99,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
9199

92100
|maintainer-AaronHForgeFlow|
93101

94-
This module is part of the `OCA/stock-logistics-reporting <https://github.com/OCA/stock-logistics-reporting/tree/16.0/stock_account_valuation_discrepancy_adjust>`_ project on GitHub.
102+
This module is part of the `OCA/stock-logistics-reporting <https://github.com/OCA/stock-logistics-reporting/tree/18.0/stock_account_valuation_discrepancy_adjust>`_ project on GitHub.
95103

96104
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Christopher Ormaza \<chris.ormaza@forgeflow.com\>
2+
- Aaron Henriquez \<aaron.henriquez@forgeflow.com\>

stock_account_valuation_discrepancy_adjust/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Wizard to show discrepancies between stock and accounting valuation, and
2+
possibility to make accounting adjustment.
3+
4+
You should use this module if you have products where the inventory
5+
valuation is automated (this means that your inventory is connected with
6+
accounting). The report allows you to identify the products where the
7+
inventory value has a discrepancy with the accounting value for that
8+
same product, and to make an adjustment entry in your accounting to
9+
align the two values.
10+
11+
This module adds an action the report in *Inventory / Reporting / Dual
12+
Inventory Valuation*. The action is accesible for Account Managers.
13+
14+
The action allows to create accounting entries by product in order to
15+
match the accounting value to the stock value.

stock_account_valuation_discrepancy_adjust/readme/DESCRIPTION.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

stock_account_valuation_discrepancy_adjust/static/description/index.html

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88

99
/*
1010
:Author: David Goodger (goodger@python.org)
11-
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
11+
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
1212
:Copyright: This stylesheet has been placed in the public domain.
1313
1414
Default cascading style sheet for the HTML output of Docutils.
15-
Despite the name, some widely supported CSS2 features are used.
1615
1716
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1817
customize this style sheet.
@@ -275,7 +274,7 @@
275274
margin-left: 2em ;
276275
margin-right: 2em }
277276

278-
pre.code .ln { color: gray; } /* line numbers */
277+
pre.code .ln { color: grey; } /* line numbers */
279278
pre.code, code { background-color: #eeeeee }
280279
pre.code .comment, code .comment { color: #5C6576 }
281280
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +300,7 @@
301300
span.pre {
302301
white-space: pre }
303302

304-
span.problematic, pre.problematic {
303+
span.problematic {
305304
color: red }
306305

307306
span.section-subtitle {
@@ -369,11 +368,19 @@ <h1 class="title">Account Valuation Discrepancy Adjust</h1>
369368
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370369
!! source digest: sha256:b430ad4a87b595c64984711ff4b7f6cdab5b9d751eaed363cf46e1f1a7e67030
371370
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.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/stock-logistics-reporting/tree/16.0/stock_account_valuation_discrepancy_adjust"><img alt="OCA/stock-logistics-reporting" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-reporting-16-0/stock-logistics-reporting-16-0-stock_account_valuation_discrepancy_adjust"><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/stock-logistics-reporting&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373-
<p>Wizard to show discrepancies between stock and accounting valuation, and possibility to make accounting adjustment.</p>
374-
<p>You should use this module if you have products where the inventory valuation is automated (this means that your inventory is connected with accounting). The report allows you to identify the products where the inventory value has a discrepancy with the accounting value for that same product, and to make an adjustment entry in your accounting to align the two values.</p>
375-
<p>This module adds an action the report in <em>Inventory / Reporting / Dual Inventory Valuation</em>. The action is accesible for Account Managers.</p>
376-
<p>The action allows to create accounting entries by product in order to match the accounting value to the stock value.</p>
371+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.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/stock-logistics-reporting/tree/18.0/stock_account_valuation_discrepancy_adjust"><img alt="OCA/stock-logistics-reporting" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-reporting-18-0/stock-logistics-reporting-18-0-stock_account_valuation_discrepancy_adjust"><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/stock-logistics-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>
372+
<p>Wizard to show discrepancies between stock and accounting valuation, and
373+
possibility to make accounting adjustment.</p>
374+
<p>You should use this module if you have products where the inventory
375+
valuation is automated (this means that your inventory is connected with
376+
accounting). The report allows you to identify the products where the
377+
inventory value has a discrepancy with the accounting value for that
378+
same product, and to make an adjustment entry in your accounting to
379+
align the two values.</p>
380+
<p>This module adds an action the report in <em>Inventory / Reporting / Dual
381+
Inventory Valuation</em>. The action is accesible for Account Managers.</p>
382+
<p>The action allows to create accounting entries by product in order to
383+
match the accounting value to the stock value.</p>
377384
<div class="admonition important">
378385
<p class="first admonition-title">Important</p>
379386
<p class="last">This is an alpha version, the data model and design can change at any time without warning.
@@ -397,7 +404,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
397404
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/issues">GitHub Issues</a>.
398405
In case of trouble, please check there if your issue has already been reported.
399406
If you spotted it first, help us to smash it by providing a detailed and welcomed
400-
<a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_account_valuation_discrepancy_adjust%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
407+
<a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_account_valuation_discrepancy_adjust%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401408
<p>Do not contact contributors directly about support or help with technical issues.</p>
402409
</div>
403410
<div class="section" id="credits">
@@ -418,15 +425,13 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
418425
<div class="section" id="maintainers">
419426
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
420427
<p>This module is maintained by the OCA.</p>
421-
<a class="reference external image-reference" href="https://odoo-community.org">
422-
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
423-
</a>
428+
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
424429
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
425430
mission is to support the collaborative development of Odoo features and
426431
promote its widespread use.</p>
427432
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
428433
<p><a class="reference external image-reference" href="https://github.com/AaronHForgeFlow"><img alt="AaronHForgeFlow" src="https://github.com/AaronHForgeFlow.png?size=40px" /></a></p>
429-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/tree/16.0/stock_account_valuation_discrepancy_adjust">OCA/stock-logistics-reporting</a> project on GitHub.</p>
434+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/tree/18.0/stock_account_valuation_discrepancy_adjust">OCA/stock-logistics-reporting</a> project on GitHub.</p>
430435
<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>
431436
</div>
432437
</div>

stock_account_valuation_discrepancy_adjust/tests/test_stock_account_valuation_discrepancy_adjust.py

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

1010
class TestStockAccountValuationDiscrepancy(TransactionCase):
1111
def setUp(self):
12-
super(TestStockAccountValuationDiscrepancy, self).setUp()
12+
super().setUp()
1313
# Get required Model
1414
self.product_model = self.env["product.product"]
1515
self.template_model = self.env["product.template"]

stock_account_valuation_discrepancy_adjust/views/product_discrepancy_view.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
33
<data>
4-
54
<record id="product_discrepancy_view_tree" model="ir.ui.view">
65
<field name="name">product_discrepancy_view_tree</field>
76
<field name="model">product.discrepancy</field>
@@ -55,7 +54,5 @@
5554
<field name="view_mode">tree</field>
5655
<field name="domain">[('id', '=', -1)]</field>
5756
</record>
58-
59-
6057
</data>
6158
</odoo>

0 commit comments

Comments
 (0)