Skip to content

Commit

Permalink
adj
Browse files Browse the repository at this point in the history
  • Loading branch information
AungKoKoLin1997 committed Nov 22, 2024
1 parent b7bb5c4 commit ef39055
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 26 deletions.
53 changes: 39 additions & 14 deletions stock_move_value/README.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
======================================
Stock Account Return Origin Difference
======================================
================
Stock Move Value
================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:52cb3f6e0ddac8e9dda227d5cf06e51bf04f0d442395e672035deeaf6e717fe4
!! source digest: sha256:03439cc6991dd9537a3eed6a30dcff5cab43797931534b080968b51c0c8be0a7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand All @@ -16,14 +16,29 @@ Stock Account Return Origin Difference
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-qrtl%2Faxls--custom-lightgray.png?logo=github
:target: https://github.com/qrtl/axls-custom/tree/16.0/stock_account_return_origin_difference
:alt: qrtl/axls-custom
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-workflow/tree/16.0/stock_move_value
:alt: OCA/stock-logistics-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-16-0/stock-logistics-workflow-16-0-stock_move_value
: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/stock-logistics-workflow&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3|
|badge1| |badge2| |badge3| |badge4| |badge5|

This module checks if there is a unit cost difference between the stock
valuation layers (SVLs) of receipts and their returns.
This module adds value fields to the stock move model, to add visibility
of how the move has affected the stock valuation.

- **Move Value**: Value of the move including related SVL values (i.e.
price differences and landed costs)
- **Move Origin Value**: Corresponding value of the origin move as of
the the time move was done. Only updated for vendor returns.
- **Value Discrepancy**: Move Value + Move Origin Value. Only updated
for vendor returns.
- **To Review**: Selected when Value Discrepancy is not zero. Users are
expected to unselect it when review is done.

**Table of contents**

Expand All @@ -33,10 +48,10 @@ valuation layers (SVLs) of receipts and their returns.
Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/qrtl/axls-custom/issues>`_.
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-workflow/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 <https://github.com/qrtl/axls-custom/issues/new?body=module:%20stock_account_return_origin_difference%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20stock_move_value%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand All @@ -51,6 +66,16 @@ Authors
Maintainers
-----------

This module is part of the `qrtl/axls-custom <https://github.com/qrtl/axls-custom/tree/16.0/stock_account_return_origin_difference>`_ project on GitHub.
This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/16.0/stock_move_value>`_ project on GitHub.

You are welcome to contribute.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion stock_move_value/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This module adds value fields to the stock move model, to add visivility of how the move
This module adds value fields to the stock move model, to add visibility of how the move
has affected the stock valuation.

- **Move Value**: Value of the move including related SVL values (i.e. price differences
Expand Down
37 changes: 26 additions & 11 deletions stock_move_value/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>Stock Account Return Origin Difference</title>
<title>Stock Move Value</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -360,18 +360,28 @@
</style>
</head>
<body>
<div class="document" id="stock-account-return-origin-difference">
<h1 class="title">Stock Account Return Origin Difference</h1>
<div class="document" id="stock-move-value">
<h1 class="title">Stock Move Value</h1>

<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:52cb3f6e0ddac8e9dda227d5cf06e51bf04f0d442395e672035deeaf6e717fe4
!! source digest: sha256:03439cc6991dd9537a3eed6a30dcff5cab43797931534b080968b51c0c8be0a7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/qrtl/axls-custom/tree/16.0/stock_account_return_origin_difference"><img alt="qrtl/axls-custom" src="https://img.shields.io/badge/github-qrtl%2Faxls--custom-lightgray.png?logo=github" /></a></p>
<p>This module checks if there is a unit cost difference between the stock
valuation layers (SVLs) of receipts and their returns.</p>
<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/16.0/stock_move_value"><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-16-0/stock-logistics-workflow-16-0-stock_move_value"><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=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds value fields to the stock move model, to add visibility
of how the move has affected the stock valuation.</p>
<ul class="simple">
<li><strong>Move Value</strong>: Value of the move including related SVL values (i.e.
price differences and landed costs)</li>
<li><strong>Move Origin Value</strong>: Corresponding value of the origin move as of
the the time move was done. Only updated for vendor returns.</li>
<li><strong>Value Discrepancy</strong>: Move Value + Move Origin Value. Only updated
for vendor returns.</li>
<li><strong>To Review</strong>: Selected when Value Discrepancy is not zero. Users are
expected to unselect it when review is done.</li>
</ul>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -385,10 +395,10 @@ <h1 class="title">Stock Account Return Origin Difference</h1>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/qrtl/axls-custom/issues">GitHub Issues</a>.
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-workflow/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/qrtl/axls-custom/issues/new?body=module:%20stock_account_return_origin_difference%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20stock_move_value%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -401,8 +411,13 @@ <h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-4">Maintainers</a></h2>
<p>This module is part of the <a class="reference external" href="https://github.com/qrtl/axls-custom/tree/16.0/stock_account_return_origin_difference">qrtl/axls-custom</a> project on GitHub.</p>
<p>You are welcome to contribute.</p>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-workflow/tree/16.0/stock_move_value">OCA/stock-logistics-workflow</a> project on GitHub.</p>
<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>
</div>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions stock_move_value/views/stock_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,19 @@
<xpath expr="//field[@name='company_id']" position="before">
<field
name="move_value"
sum="Total Value"
groups="account.group_account_invoice"
optional="show"
/>
<field
name="move_origin_value"
sum="Total Origin Value"
groups="account.group_account_invoice"
optional="show"
/>
<field
name="value_discrepancy"
sum="Total Discrepancy"
groups="account.group_account_invoice"
optional="show"
/>
Expand Down

0 comments on commit ef39055

Please sign in to comment.