diff --git a/stock_valuation_layer_accounting_date/README.rst b/stock_valuation_layer_accounting_date/README.rst index 34907da4..56657cd7 100644 --- a/stock_valuation_layer_accounting_date/README.rst +++ b/stock_valuation_layer_accounting_date/README.rst @@ -2,10 +2,13 @@ Stock Valuation Layer Accounting Date ===================================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:c9ce5446a0d7c7193a21c42bbbaaae58224b3dd67ebe23d76ebf39da12b0cc7a + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -19,11 +22,11 @@ Stock Valuation Layer Accounting Date .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_valuation_layer_accounting_date :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/153/16.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=16.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module adds Accounting Date field in stock.valuation.layer, enabling the report output based on this field. @@ -53,7 +56,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 smashing it by providing a detailed and welcomed +If you spotted it first, help us to smash it by providing a detailed and welcomed `feedback `_. Do not contact contributors directly about support or help with technical issues. diff --git a/stock_valuation_layer_accounting_date/__manifest__.py b/stock_valuation_layer_accounting_date/__manifest__.py index d1efea80..db1d61f6 100644 --- a/stock_valuation_layer_accounting_date/__manifest__.py +++ b/stock_valuation_layer_accounting_date/__manifest__.py @@ -7,7 +7,7 @@ "author": "Quartile Limited, Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", "license": "AGPL-3", - "depends": ["stock_picking_accounting_date"], + "depends": ["stock_account"], "data": [ "views/stock_valuation_layer_views.xml", "wizard/stock_quantity_history.xml", diff --git a/stock_valuation_layer_accounting_date/i18n/it.po b/stock_valuation_layer_accounting_date/i18n/it.po new file mode 100644 index 00000000..62af88c8 --- /dev/null +++ b/stock_valuation_layer_accounting_date/i18n/it.po @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_valuation_layer_accounting_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-03-19 15:37+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: stock_valuation_layer_accounting_date +#: model:ir.model.fields,field_description:stock_valuation_layer_accounting_date.field_stock_valuation_layer__accounting_date +msgid "Accounting Date" +msgstr "Data contabile" + +#. module: stock_valuation_layer_accounting_date +#: model:ir.model.fields,help:stock_valuation_layer_accounting_date.field_stock_valuation_layer__accounting_date +msgid "" +"Date of the linked journal entry if applicable, otherwise the create date of" +" the record (timezone aware)" +msgstr "" +"Data della registrazione contabile collegata se applicabile, altrimenti la " +"data creazione del record (indipendente dal fuso orario)" + +#. module: stock_valuation_layer_accounting_date +#: model:ir.model,name:stock_valuation_layer_accounting_date.model_stock_quantity_history +msgid "Stock Quantity History" +msgstr "Storico quantità giacenza" + +#. module: stock_valuation_layer_accounting_date +#: model:ir.model,name:stock_valuation_layer_accounting_date.model_stock_valuation_layer +msgid "Stock Valuation Layer" +msgstr "Livello valutazione magazzino" + +#. module: stock_valuation_layer_accounting_date +#: model_terms:ir.ui.view,arch_db:stock_valuation_layer_accounting_date.view_stock_quantity_history +msgid "Valuation as of Accounting Date" +msgstr "Valutazione alla data contabile" diff --git a/stock_valuation_layer_accounting_date/i18n/ja.po b/stock_valuation_layer_accounting_date/i18n/ja.po index 20a8ba5d..08303142 100644 --- a/stock_valuation_layer_accounting_date/i18n/ja.po +++ b/stock_valuation_layer_accounting_date/i18n/ja.po @@ -10,6 +10,7 @@ msgstr "" "PO-Revision-Date: 2022-12-26 01:48+0000\n" "Last-Translator: \n" "Language-Team: \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -23,9 +24,11 @@ msgstr "会計日" #. module: stock_valuation_layer_accounting_date #: model:ir.model.fields,help:stock_valuation_layer_accounting_date.field_stock_valuation_layer__accounting_date msgid "" -"Date of the linked journal entry if applicable, otherwise the create date of" -" the record (timezone aware)" -msgstr "紐づく仕訳がある場合はその日付、なければレコード作成日(タイムゾーンの考慮あり)" +"Date of the linked journal entry if applicable, otherwise the create date of " +"the record (timezone aware)" +msgstr "" +"紐づく仕訳がある場合はその日付、なければレコード作成日(タイムゾーンの考慮あ" +"り)" #. module: stock_valuation_layer_accounting_date #: model:ir.model,name:stock_valuation_layer_accounting_date.model_stock_quantity_history diff --git a/stock_valuation_layer_accounting_date/i18n/stock_valuation_layer_accounting_date.pot b/stock_valuation_layer_accounting_date/i18n/stock_valuation_layer_accounting_date.pot new file mode 100644 index 00000000..8fc2da21 --- /dev/null +++ b/stock_valuation_layer_accounting_date/i18n/stock_valuation_layer_accounting_date.pot @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_valuation_layer_accounting_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: stock_valuation_layer_accounting_date +#: model:ir.model.fields,field_description:stock_valuation_layer_accounting_date.field_stock_valuation_layer__accounting_date +msgid "Accounting Date" +msgstr "" + +#. module: stock_valuation_layer_accounting_date +#: model:ir.model.fields,help:stock_valuation_layer_accounting_date.field_stock_valuation_layer__accounting_date +msgid "" +"Date of the linked journal entry if applicable, otherwise the create date of" +" the record (timezone aware)" +msgstr "" + +#. module: stock_valuation_layer_accounting_date +#: model:ir.model,name:stock_valuation_layer_accounting_date.model_stock_quantity_history +msgid "Stock Quantity History" +msgstr "" + +#. module: stock_valuation_layer_accounting_date +#: model:ir.model,name:stock_valuation_layer_accounting_date.model_stock_valuation_layer +msgid "Stock Valuation Layer" +msgstr "" + +#. module: stock_valuation_layer_accounting_date +#: model_terms:ir.ui.view,arch_db:stock_valuation_layer_accounting_date.view_stock_quantity_history +msgid "Valuation as of Accounting Date" +msgstr "" diff --git a/stock_valuation_layer_accounting_date/models/stock_valuation_layer.py b/stock_valuation_layer_accounting_date/models/stock_valuation_layer.py index f65d29bc..afd59c4a 100644 --- a/stock_valuation_layer_accounting_date/models/stock_valuation_layer.py +++ b/stock_valuation_layer_accounting_date/models/stock_valuation_layer.py @@ -21,9 +21,6 @@ def _compute_accounting_date(self): if account_move and account_move.state == "posted": rec.accounting_date = account_move.date continue - if rec.stock_move_id: - rec.accounting_date = rec.stock_move_id.accounting_date - continue rec.accounting_date = fields.Datetime.context_timestamp( self, rec.create_date ) diff --git a/stock_valuation_layer_accounting_date/static/description/icon.png b/stock_valuation_layer_accounting_date/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/stock_valuation_layer_accounting_date/static/description/icon.png differ diff --git a/stock_valuation_layer_accounting_date/static/description/index.html b/stock_valuation_layer_accounting_date/static/description/index.html index bf67f396..0ad65cbe 100644 --- a/stock_valuation_layer_accounting_date/static/description/index.html +++ b/stock_valuation_layer_accounting_date/static/description/index.html @@ -1,20 +1,20 @@ - + - + Stock Valuation Layer Accounting Date