mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] account_move_line_purchase_info: black, isort, prettier
This commit is contained in:
@@ -17,21 +17,21 @@ Account Move Line Purchase Info
|
||||
: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/16.0/account_move_line_purchase_info
|
||||
:target: https://github.com/OCA/account-financial-tools/tree/17.0/account_move_line_purchase_info
|
||||
: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-16-0/account-financial-tools-16-0-account_move_line_purchase_info
|
||||
:target: https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_move_line_purchase_info
|
||||
: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=16.0
|
||||
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=17.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This module will add the purchase order line to journal items.
|
||||
|
||||
The ultimate goal is to establish the purchase order line as one of the key
|
||||
fields to reconcile the Goods Received Not Invoiced accrual account.
|
||||
The ultimate goal is to establish the purchase order line as one of the
|
||||
key fields to reconcile the Goods Received Not Invoiced accrual account.
|
||||
|
||||
**Table of contents**
|
||||
|
||||
@@ -41,13 +41,13 @@ fields to reconcile the Goods Received Not Invoiced accrual account.
|
||||
Usage
|
||||
=====
|
||||
|
||||
The purchase order line will be automatically copied to the journal items.
|
||||
The purchase order line will be automatically copied to the journal
|
||||
items.
|
||||
|
||||
* When a supplier invoice is created referencing purchase orders, the
|
||||
purchase order line will be copied to the corresponding journal item.
|
||||
|
||||
* When a stock move is validated and generates a journal entry, the purchase
|
||||
order line is copied to the account move line.
|
||||
- When a supplier invoice is created referencing purchase orders, the
|
||||
purchase order line will be copied to the corresponding journal item.
|
||||
- When a stock move is validated and generates a journal entry, the
|
||||
purchase order line is copied to the account move line.
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
@@ -55,7 +55,7 @@ Bug Tracker
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/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/OCA/account-financial-tools/issues/new?body=module:%20account_move_line_purchase_info%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_move_line_purchase_info%0Aversion:%2017.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.
|
||||
|
||||
@@ -63,19 +63,19 @@ Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
-------
|
||||
|
||||
* ForgeFlow
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
------------
|
||||
|
||||
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
|
||||
* Héctor Villarreal <hector.villarreal@forgeflow.com>
|
||||
* Pimolnat Suntian <pimolnats@ecosoft.co.th>
|
||||
- Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
|
||||
- Héctor Villarreal <hector.villarreal@forgeflow.com>
|
||||
- Pimolnat Suntian <pimolnats@ecosoft.co.th>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
-----------
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
@@ -87,6 +87,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 <https://github.com/OCA/account-financial-tools/tree/16.0/account_move_line_purchase_info>`_ project on GitHub.
|
||||
This module is part of the `OCA/account-financial-tools <https://github.com/OCA/account-financial-tools/tree/17.0/account_move_line_purchase_info>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
@@ -13,8 +13,6 @@ class PurchaseOrderLine(models.Model):
|
||||
for line in self:
|
||||
name = orig_name[line.id]
|
||||
if self.env.context.get("po_line_info", False):
|
||||
name = "[{}] {} ({})".format(
|
||||
line.order_id.name, name, line.order_id.state
|
||||
)
|
||||
name = f"[{line.order_id.name}] {name} ({line.order_id.state})"
|
||||
result.append((line.id, name))
|
||||
return result
|
||||
|
||||
3
account_move_line_purchase_info/pyproject.toml
Normal file
3
account_move_line_purchase_info/pyproject.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[build-system]
|
||||
requires = ["whool"]
|
||||
build-backend = "whool.buildapi"
|
||||
3
account_move_line_purchase_info/readme/CONTRIBUTORS.md
Normal file
3
account_move_line_purchase_info/readme/CONTRIBUTORS.md
Normal file
@@ -0,0 +1,3 @@
|
||||
- Jordi Ballester Alomar \<<jordi.ballester@forgeflow.com>\>
|
||||
- Héctor Villarreal \<<hector.villarreal@forgeflow.com>\>
|
||||
- Pimolnat Suntian \<<pimolnats@ecosoft.co.th>\>
|
||||
@@ -1,3 +0,0 @@
|
||||
* Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
|
||||
* Héctor Villarreal <hector.villarreal@forgeflow.com>
|
||||
* Pimolnat Suntian <pimolnats@ecosoft.co.th>
|
||||
@@ -1,4 +1,4 @@
|
||||
This module will add the purchase order line to journal items.
|
||||
|
||||
The ultimate goal is to establish the purchase order line as one of the key
|
||||
fields to reconcile the Goods Received Not Invoiced accrual account.
|
||||
The ultimate goal is to establish the purchase order line as one of the
|
||||
key fields to reconcile the Goods Received Not Invoiced accrual account.
|
||||
7
account_move_line_purchase_info/readme/USAGE.md
Normal file
7
account_move_line_purchase_info/readme/USAGE.md
Normal file
@@ -0,0 +1,7 @@
|
||||
The purchase order line will be automatically copied to the journal
|
||||
items.
|
||||
|
||||
- When a supplier invoice is created referencing purchase orders, the
|
||||
purchase order line will be copied to the corresponding journal item.
|
||||
- When a stock move is validated and generates a journal entry, the
|
||||
purchase order line is copied to the account move line.
|
||||
@@ -1,7 +0,0 @@
|
||||
The purchase order line will be automatically copied to the journal items.
|
||||
|
||||
* When a supplier invoice is created referencing purchase orders, the
|
||||
purchase order line will be copied to the corresponding journal item.
|
||||
|
||||
* When a stock move is validated and generates a journal entry, the purchase
|
||||
order line is copied to the account move line.
|
||||
@@ -369,10 +369,10 @@ ul.auto-toc {
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:28872ad7d695ae9ee92ab83abb7c8e751f4d0b51ff07a1a10530da6b5a1e6034
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<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/account-financial-tools/tree/16.0/account_move_line_purchase_info"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_move_line_purchase_info"><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/account-financial-tools&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></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/account-financial-tools/tree/17.0/account_move_line_purchase_info"><img alt="OCA/account-financial-tools" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-tools-17-0/account-financial-tools-17-0-account_move_line_purchase_info"><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/account-financial-tools&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module will add the purchase order line to journal items.</p>
|
||||
<p>The ultimate goal is to establish the purchase order line as one of the key
|
||||
fields to reconcile the Goods Received Not Invoiced accrual account.</p>
|
||||
<p>The ultimate goal is to establish the purchase order line as one of the
|
||||
key fields to reconcile the Goods Received Not Invoiced accrual account.</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
@@ -388,12 +388,13 @@ fields to reconcile the Goods Received Not Invoiced accrual account.</p>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
|
||||
<p>The purchase order line will be automatically copied to the journal items.</p>
|
||||
<p>The purchase order line will be automatically copied to the journal
|
||||
items.</p>
|
||||
<ul class="simple">
|
||||
<li>When a supplier invoice is created referencing purchase orders, the
|
||||
purchase order line will be copied to the corresponding journal item.</li>
|
||||
<li>When a stock move is validated and generates a journal entry, the purchase
|
||||
order line is copied to the account move line.</li>
|
||||
<li>When a stock move is validated and generates a journal entry, the
|
||||
purchase order line is copied to the account move line.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
@@ -401,7 +402,7 @@ order line is copied to the account move line.</li>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-tools/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/OCA/account-financial-tools/issues/new?body=module:%20account_move_line_purchase_info%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/account-financial-tools/issues/new?body=module:%20account_move_line_purchase_info%0Aversion:%2017.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">
|
||||
@@ -427,7 +428,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||
<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/account-financial-tools/tree/16.0/account_move_line_purchase_info">OCA/account-financial-tools</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-tools/tree/17.0/account_move_line_purchase_info">OCA/account-financial-tools</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>
|
||||
|
||||
Reference in New Issue
Block a user