Skip to content

Commit cdbfd9a

Browse files
[MIG] stock_account_show_automatic_valuation: Migration to 18.0
1 parent 59f5cdc commit cdbfd9a

File tree

6 files changed

+44
-10
lines changed

6 files changed

+44
-10
lines changed

stock_account_show_automatic_valuation/README.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Show Automatic Valuation for Stock Moves in CE
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--workflow-lightgray.png?logo=github
20-
:target: https://github.com/OCA/stock-logistics-workflow/tree/17.0/stock_account_show_automatic_valuation
20+
:target: https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_account_show_automatic_valuation
2121
:alt: OCA/stock-logistics-workflow
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-17-0/stock-logistics-workflow-17-0-stock_account_show_automatic_valuation
23+
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-18-0/stock-logistics-workflow-18-0-stock_account_show_automatic_valuation
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-workflow&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-workflow&target_branch=18.0
2727
:alt: Try me on Runboat
2828

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

5353
Do not contact contributors directly about support or help with technical issues.
5454

@@ -63,7 +63,10 @@ Authors
6363
Contributors
6464
------------
6565

66-
66+
67+
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
68+
69+
- Bhavesh Heliconia
6770

6871
Maintainers
6972
-----------
@@ -78,6 +81,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
7881
mission is to support the collaborative development of Odoo features and
7982
promote its widespread use.
8083

81-
This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/17.0/stock_account_show_automatic_valuation>`_ project on GitHub.
84+
This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_account_show_automatic_valuation>`_ project on GitHub.
8285

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

stock_account_show_automatic_valuation/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Show Automatic Valuation for Stock Moves in CE",
55
"summary": "Allow automatic valuation for stock moves in community edition",
6-
"version": "17.0.1.0.0",
6+
"version": "18.0.1.0.0",
77
"category": "Inventory",
88
"author": "INVITU," "Odoo Community Association (OCA)",
99
"license": "AGPL-3",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
- INVITU \<<[email protected]>\>
2+
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
3+
- Bhavesh Heliconia
4+

stock_account_show_automatic_valuation/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">Show Automatic Valuation for Stock Moves in CE</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:11c040986a524d8c8fafa95a811d196e383311a79c931ff9a8aec3b5b6efc945
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/stock-logistics-workflow/tree/17.0/stock_account_show_automatic_valuation"><img alt="OCA/stock-logistics-workflow" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-workflow-17-0/stock-logistics-workflow-17-0-stock_account_show_automatic_valuation"><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-workflow&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/stock-logistics-workflow/tree/18.0/stock_account_show_automatic_valuation"><img alt="OCA/stock-logistics-workflow" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-workflow-18-0/stock-logistics-workflow-18-0-stock_account_show_automatic_valuation"><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-workflow&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 shows the “Automatic Valuation” setup for stock that has
374374
been hidden by Odoo SA in Community Edition</p>
375375
<p><strong>Table of contents</strong></p>
@@ -395,7 +395,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
395395
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-workflow/issues">GitHub Issues</a>.
396396
In case of trouble, please check there if your issue has already been reported.
397397
If you spotted it first, help us to smash it by providing a detailed and welcomed
398-
<a class="reference external" href="https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20stock_account_show_automatic_valuation%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
398+
<a class="reference external" href="https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20stock_account_show_automatic_valuation%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
399399
<p>Do not contact contributors directly about support or help with technical issues.</p>
400400
</div>
401401
<div class="section" id="credits">
@@ -410,6 +410,10 @@ <h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
410410
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
411411
<ul class="simple">
412412
<li>INVITU &lt;<a class="reference external" href="mailto:contact&#64;invitu.com">contact&#64;invitu.com</a>&gt;</li>
413+
<li><a class="reference external" href="https://www.heliconia.io">Heliconia Solutions Pvt. Ltd.</a><ul>
414+
<li>Bhavesh Heliconia</li>
415+
</ul>
416+
</li>
413417
</ul>
414418
</div>
415419
<div class="section" id="maintainers">
@@ -421,7 +425,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
421425
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
422426
mission is to support the collaborative development of Odoo features and
423427
promote its widespread use.</p>
424-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-workflow/tree/17.0/stock_account_show_automatic_valuation">OCA/stock-logistics-workflow</a> project on GitHub.</p>
428+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_account_show_automatic_valuation">OCA/stock-logistics-workflow</a> project on GitHub.</p>
425429
<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>
426430
</div>
427431
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import test_res_config_settings
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from odoo.tests.common import TransactionCase
2+
3+
4+
class TestResConfigSettingsView(TransactionCase):
5+
def test_stock_account_valuation_setting_view(self):
6+
# Fetch the view using its external ID
7+
view = self.env.ref(
8+
"stock_account_show_automatic_valuation.res_config_settings_view_form"
9+
)
10+
self.assertTrue(view, "View res_config_settings_view_form not found")
11+
12+
# Parse the view's arch to ensure the custom setting is present
13+
arch = view.with_context(combined=True).arch_db
14+
self.assertIn(
15+
"group_stock_accounting_automatic",
16+
arch,
17+
"Field group_stock_accounting_automatic not found in the view",
18+
)
19+
self.assertIn(
20+
"stock_account_show_automatic_valuation",
21+
arch,
22+
"Setting ID stock_account_show_automatic_valuation not found in the view",
23+
)

0 commit comments

Comments
 (0)