Skip to content

Commit ca66d13

Browse files
[IMP] purchase_manual_currency: pre-commit stuff
1 parent 5c98840 commit ca66d13

File tree

10 files changed

+64
-59
lines changed

10 files changed

+64
-59
lines changed

purchase_manual_currency/README.rst

+21-21
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,24 @@ Purchase - Manual Currency
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%2Fpurchase--workflow-lightgray.png?logo=github
20-
:target: https://github.com/OCA/purchase-workflow/tree/15.0/purchase_manual_currency
20+
:target: https://github.com/OCA/purchase-workflow/tree/17.0/purchase_manual_currency
2121
:alt: OCA/purchase-workflow
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-purchase_manual_currency
23+
:target: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_manual_currency
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/purchase-workflow&target_branch=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=17.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
This module allows users to update the currency manual of Purchase Order in draft state.
31+
This module allows users to update the currency manual of Purchase Order
32+
in draft state.
3233

3334
Example, The company will make a deal with vendor before buy product
34-
that process maybe not same day.
35-
So, currency rate in purchase order will calculated from order date
36-
but Company get currency rate from date of make a deal or special currency rate.
35+
that process maybe not same day. So, currency rate in purchase order
36+
will calculated from order date but Company get currency rate from date
37+
of make a deal or special currency rate.
3738

3839
**Table of contents**
3940

@@ -45,41 +46,40 @@ Usage
4546

4647
To use this module, the company have to access rights Multi Currencies.
4748

48-
Step to used manual currency:
49-
#. Go to Invoicing > Configuration > Settings > Currencies > Multi-Currencies
50-
#. Go to Purchase > Create new purchase.
51-
#. Change to other currency (not company currency)
52-
#. Check Manual Currency and specify your currency rate
49+
Step to used manual currency: #. Go to Invoicing > Configuration >
50+
Settings > Currencies > Multi-Currencies #. Go to Purchase > Create new
51+
purchase. #. Change to other currency (not company currency) #. Check
52+
Manual Currency and specify your currency rate
5353

5454
Bug Tracker
5555
===========
5656

5757
Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/issues>`_.
5858
In case of trouble, please check there if your issue has already been reported.
5959
If you spotted it first, help us to smash it by providing a detailed and welcomed
60-
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_manual_currency%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
60+
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_manual_currency%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6161

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

6464
Credits
6565
=======
6666

6767
Authors
68-
~~~~~~~
68+
-------
6969

7070
* Ecosoft
7171

7272
Contributors
73-
~~~~~~~~~~~~
73+
------------
7474

75-
* Saran Lim. <[email protected]>
75+
- Saran Lim. <[email protected]>
76+
- `Prothai <https://www.prothaitechnology.com:>`__:
7677

77-
* `Prothai <https://www.prothaitechnology.com:>`_:
78-
79-
* Prapassorn Sornkaew <[email protected]> (migrate to v14)
78+
- Prapassorn Sornkaew <[email protected]> (migrate
79+
to v14)
8080

8181
Maintainers
82-
~~~~~~~~~~~
82+
-----------
8383

8484
This module is maintained by the OCA.
8585

@@ -91,6 +91,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
9191
mission is to support the collaborative development of Odoo features and
9292
promote its widespread use.
9393

94-
This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/15.0/purchase_manual_currency>`_ project on GitHub.
94+
This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/17.0/purchase_manual_currency>`_ project on GitHub.
9595

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

purchase_manual_currency/models/purchase.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ def _fields_view_get(
134134
# Total company currency
135135
node = doc.xpath("//field[@name='total_company_currency']")
136136
if node:
137-
node[0].set("string", "Total ({})".format(company_currency_name))
137+
node[0].set("string", f"Total ({company_currency_name})")
138138
# Subtotal company currency
139139
node = doc.xpath("//field[@name='subtotal_company_currency']")
140140
if node:
141-
node[0].set("string", "Subtotal ({})".format(company_currency_name))
141+
node[0].set("string", f"Subtotal ({company_currency_name})")
142142
result["arch"] = etree.tostring(doc, encoding="unicode")
143143
return result
144144

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- Saran Lim. \<<[email protected]>\>
2+
- [Prothai](https://www.prothaitechnology.com:):
3+
- Prapassorn Sornkaew \<<[email protected]>\>
4+
(migrate to v14)

purchase_manual_currency/readme/CONTRIBUTORS.rst

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
This module allows users to update the currency manual of Purchase Order
2+
in draft state.
3+
4+
Example, The company will make a deal with vendor before buy product
5+
that process maybe not same day. So, currency rate in purchase order
6+
will calculated from order date but Company get currency rate from date
7+
of make a deal or special currency rate.

purchase_manual_currency/readme/DESCRIPTION.rst

-6
This file was deleted.
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
To use this module, the company have to access rights Multi Currencies.
2+
3+
Step to used manual currency: \#. Go to Invoicing \> Configuration \>
4+
Settings \> Currencies \> Multi-Currencies \#. Go to Purchase \> Create
5+
new purchase. \#. Change to other currency (not company currency) \#.
6+
Check Manual Currency and specify your currency rate

purchase_manual_currency/readme/USAGE.rst

-7
This file was deleted.

purchase_manual_currency/static/description/index.html

+21-18
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
@@ -9,10 +8,11 @@
98

109
/*
1110
:Author: David Goodger ([email protected])
12-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
1717
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

278-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
279279
pre.code, code { background-color: #eeeeee }
280280
pre.code .comment, code .comment { color: #5C6576 }
281281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
301301
span.pre {
302302
white-space: pre }
303303

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -369,12 +369,13 @@ <h1 class="title">Purchase - Manual Currency</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:1391981de9f1c571f8522b340aeac2506d6c4abdb81890f79460c52e360234e5
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/purchase-workflow/tree/15.0/purchase_manual_currency"><img alt="OCA/purchase-workflow" src="https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-purchase_manual_currency"><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/purchase-workflow&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373-
<p>This module allows users to update the currency manual of Purchase Order in draft state.</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/purchase-workflow/tree/17.0/purchase_manual_currency"><img alt="OCA/purchase-workflow" src="https://img.shields.io/badge/github-OCA%2Fpurchase--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_manual_currency"><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/purchase-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>
373+
<p>This module allows users to update the currency manual of Purchase Order
374+
in draft state.</p>
374375
<p>Example, The company will make a deal with vendor before buy product
375-
that process maybe not same day.
376-
So, currency rate in purchase order will calculated from order date
377-
but Company get currency rate from date of make a deal or special currency rate.</p>
376+
that process maybe not same day. So, currency rate in purchase order
377+
will calculated from order date but Company get currency rate from date
378+
of make a deal or special currency rate.</p>
378379
<p><strong>Table of contents</strong></p>
379380
<div class="contents local topic" id="contents">
380381
<ul class="simple">
@@ -391,18 +392,17 @@ <h1 class="title">Purchase - Manual Currency</h1>
391392
<div class="section" id="usage">
392393
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
393394
<p>To use this module, the company have to access rights Multi Currencies.</p>
394-
<p>Step to used manual currency:
395-
#. Go to Invoicing &gt; Configuration &gt; Settings &gt; Currencies &gt; Multi-Currencies
396-
#. Go to Purchase &gt; Create new purchase.
397-
#. Change to other currency (not company currency)
398-
#. Check Manual Currency and specify your currency rate</p>
395+
<p>Step to used manual currency: #. Go to Invoicing &gt; Configuration &gt;
396+
Settings &gt; Currencies &gt; Multi-Currencies #. Go to Purchase &gt; Create new
397+
purchase. #. Change to other currency (not company currency) #. Check
398+
Manual Currency and specify your currency rate</p>
399399
</div>
400400
<div class="section" id="bug-tracker">
401401
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
402402
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/purchase-workflow/issues">GitHub Issues</a>.
403403
In case of trouble, please check there if your issue has already been reported.
404404
If you spotted it first, help us to smash it by providing a detailed and welcomed
405-
<a class="reference external" href="https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_manual_currency%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
405+
<a class="reference external" href="https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_manual_currency%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
406406
<p>Do not contact contributors directly about support or help with technical issues.</p>
407407
</div>
408408
<div class="section" id="credits">
@@ -418,19 +418,22 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
418418
<ul class="simple">
419419
<li>Saran Lim. &lt;<a class="reference external" href="mailto:saranl&#64;ecosoft.co.th">saranl&#64;ecosoft.co.th</a>&gt;</li>
420420
<li><a class="reference external" href="https://www.prothaitechnology.com:">Prothai</a>:<ul>
421-
<li>Prapassorn Sornkaew &lt;<a class="reference external" href="mailto:prapassorn.s&#64;prothaitechnology.com">prapassorn.s&#64;prothaitechnology.com</a>&gt; (migrate to v14)</li>
421+
<li>Prapassorn Sornkaew &lt;<a class="reference external" href="mailto:prapassorn.s&#64;prothaitechnology.com">prapassorn.s&#64;prothaitechnology.com</a>&gt; (migrate
422+
to v14)</li>
422423
</ul>
423424
</li>
424425
</ul>
425426
</div>
426427
<div class="section" id="maintainers">
427428
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
428429
<p>This module is maintained by the OCA.</p>
429-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
430+
<a class="reference external image-reference" href="https://odoo-community.org">
431+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
432+
</a>
430433
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
431434
mission is to support the collaborative development of Odoo features and
432435
promote its widespread use.</p>
433-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/purchase-workflow/tree/15.0/purchase_manual_currency">OCA/purchase-workflow</a> project on GitHub.</p>
436+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/purchase-workflow/tree/17.0/purchase_manual_currency">OCA/purchase-workflow</a> project on GitHub.</p>
434437
<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>
435438
</div>
436439
</div>

0 commit comments

Comments
 (0)