diff --git a/account_asset_number/README.rst b/account_asset_number/README.rst index 5c6cf2bbd..628b61130 100644 --- a/account_asset_number/README.rst +++ b/account_asset_number/README.rst @@ -7,7 +7,7 @@ Assets Number !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:fd5d92bf72bafe6f636f5b0ff8a15345b8bece2cb3ef88dba60348392b4cbf40 + !! source digest: sha256:efb1ec13fed79ff1f0c4b58d789855f8cf530aeb2a37543108bd28eb3ca22304 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -17,13 +17,13 @@ Assets Number :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github - :target: https://github.com/OCA/account-financial-tools/tree/15.0/account_asset_number + :target: https://github.com/OCA/account-financial-tools/tree/16.0/account_asset_number :alt: OCA/account-financial-tools .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-financial-tools-15-0/account-financial-tools-15-0-account_asset_number + :target: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_asset_number :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=15.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=16.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -52,7 +52,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -84,6 +84,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/account-financial-tools `_ project on GitHub. +This module is part of the `OCA/account-financial-tools `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_asset_number/__manifest__.py b/account_asset_number/__manifest__.py index 3daf42c25..e1656d785 100644 --- a/account_asset_number/__manifest__.py +++ b/account_asset_number/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Assets Number", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "license": "AGPL-3", "depends": ["account_asset_management"], "author": "Ecosoft, Odoo Community Association (OCA)", diff --git a/account_asset_number/report/account_asset_report_xls.py b/account_asset_number/report/account_asset_report_xls.py index f484b3564..98a0584c5 100644 --- a/account_asset_number/report/account_asset_report_xls.py +++ b/account_asset_number/report/account_asset_report_xls.py @@ -1,7 +1,7 @@ # Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -from odoo import models +from odoo import _, models class AssetReportXlsx(models.AbstractModel): @@ -12,7 +12,7 @@ class AssetReportXlsx(models.AbstractModel): res.update( { "number": { - "header": {"type": "string", "value": self._("Number")}, + "header": {"type": "string", "value": _("Number")}, "asset": { "type": "string", "value": self._render("asset.number or ''"), diff --git a/account_asset_number/static/description/index.html b/account_asset_number/static/description/index.html index 801eb5be2..5eafb80e6 100644 --- a/account_asset_number/static/description/index.html +++ b/account_asset_number/static/description/index.html @@ -367,9 +367,9 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:fd5d92bf72bafe6f636f5b0ff8a15345b8bece2cb3ef88dba60348392b4cbf40 +!! source digest: sha256:efb1ec13fed79ff1f0c4b58d789855f8cf530aeb2a37543108bd28eb3ca22304 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runboat

This module adds a asset number for the asset’s reference.

Notes:

If you check “Auto Asset Number by Sequence”, @@ -397,7 +397,7 @@ and check Auto Asset Number by Sequence then select Asset Number Se

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -424,7 +424,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/account-financial-tools project on GitHub.

+

This module is part of the OCA/account-financial-tools project on GitHub.

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

diff --git a/account_asset_number/tests/test_account_asset_number.py b/account_asset_number/tests/test_account_asset_number.py index 6dc90413d..b6b173bf2 100644 --- a/account_asset_number/tests/test_account_asset_number.py +++ b/account_asset_number/tests/test_account_asset_number.py @@ -49,7 +49,7 @@ class TestAssetNumber(TestAssetManagement): } ) asset.compute_depreciation_board() - asset.refresh() + asset.invalidate_recordset() # check number in the asset self.assertFalse(asset.number) asset.validate()