Skip to content

Commit c3e975d

Browse files
committed
[IMP] sale_order_line_description: pre-commit auto fixes
1 parent d6cec8a commit c3e975d

File tree

12 files changed

+81
-71
lines changed

12 files changed

+81
-71
lines changed

sale_order_line_description/README.rst

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ Sale order line description
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%2Fsale--workflow-lightgray.png?logo=github
20-
:target: https://github.com/OCA/sale-workflow/tree/15.0/sale_order_line_description
20+
:target: https://github.com/OCA/sale-workflow/tree/18.0/sale_order_line_description
2121
:alt: OCA/sale-workflow
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_order_line_description
23+
:target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_order_line_description
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/sale-workflow&target_branch=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=18.0
2727
:alt: Try me on Runboat
2828

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

31-
This module sets to use only product's sale description field on the sale order
32-
lines, instead of "Ref+Name+Sale Description".
31+
This module sets to use only product's sale description field on the
32+
sale order lines, instead of "Ref+Name+Sale Description".
3333

3434
**Table of contents**
3535

@@ -42,53 +42,56 @@ Configuration
4242
The user has to belong to group_use_product_description_per_so_line.
4343
This is possible by selecting the related option in the following menu:
4444

45-
* *Sales > Settings > Quotations & Orders > Product Sale Description*
45+
- *Sales > Settings > Quotations & Orders > Product Sale Description*
4646

4747
Usage
4848
=====
4949

50-
#. Go to **Sales > Settings > Quotations & Orders** and check "Product Sale
51-
description* to use only product sale description on the sales order lines.
52-
#. Go to **Setting > Users & Companies > Users** and check you have checked
53-
the "Use only product purchase description on order lines" access right for
54-
your user.
55-
#. Add or modify a sale description to any of your products.
56-
#. Create a sale order and add a sale order line with this product and check
57-
out that now sale order line description only contains the sale description
58-
you entered.
50+
1. Go to **Sales > Settings > Quotations & Orders** and check "Product
51+
Sale description\* to use only product sale description on the sales
52+
order lines.
53+
2. Go to **Setting > Users & Companies > Users** and check you have
54+
checked the "Use only product purchase description on order lines"
55+
access right for your user.
56+
3. Add or modify a sale description to any of your products.
57+
4. Create a sale order and add a sale order line with this product and
58+
check out that now sale order line description only contains the sale
59+
description you entered.
5960

6061
Bug Tracker
6162
===========
6263

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

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

7071
Credits
7172
=======
7273

7374
Authors
74-
~~~~~~~
75+
-------
7576

7677
* Agile Business Group
7778

7879
Contributors
79-
~~~~~~~~~~~~
80+
------------
8081

81-
* Alex Comba <alex.comba@agilebg.com>
82-
* Daniel Campos <danielcampos@avanzosc.es>
83-
* Simone Rubino <simone.rubino@agilebg.com>
84-
* `Tecnativa <https://www.tecnativa.com>`_ :
82+
- Alex Comba <alex.comba@agilebg.com>
83+
- Daniel Campos <danielcampos@avanzosc.es>
84+
- Simone Rubino <simone.rubino@agilebg.com>
85+
- `Tecnativa <https://www.tecnativa.com>`__ :
8586

86-
* Vicent Cubells
87+
- Vicent Cubells
8788

88-
* Rataapong Chokmasermkul <rattapongc@ecosoft.co.th>
89+
..
90+
91+
- Rataapong Chokmasermkul <rattapongc@ecosoft.co.th>
8992

9093
Maintainers
91-
~~~~~~~~~~~
94+
-----------
9295

9396
This module is maintained by the OCA.
9497

@@ -100,6 +103,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
100103
mission is to support the collaborative development of Odoo features and
101104
promote its widespread use.
102105

103-
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/15.0/sale_order_line_description>`_ project on GitHub.
106+
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/18.0/sale_order_line_description>`_ project on GitHub.
104107

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

sale_order_line_description/models/sale_order_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class SaleOrderLine(models.Model):
99

1010
@api.onchange("product_id")
1111
def product_id_change(self):
12-
res = super(SaleOrderLine, self).product_id_change()
12+
res = super().product_id_change()
1313
if not self.product_id: # pragma: no cover
1414
return res
1515
if (
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
The user has to belong to group_use_product_description_per_so_line.
22
This is possible by selecting the related option in the following menu:
33

4-
* *Sales > Settings > Quotations & Orders > Product Sale Description*
4+
- *Sales \> Settings \> Quotations & Orders \> Product Sale Description*
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
- Alex Comba \<alex.comba@agilebg.com\>
2+
- Daniel Campos \<danielcampos@avanzosc.es\>
3+
- Simone Rubino \<simone.rubino@agilebg.com\>
4+
- [Tecnativa](https://www.tecnativa.com) :
5+
- Vicent Cubells
6+
7+
> - Rataapong Chokmasermkul \<rattapongc@ecosoft.co.th\>

sale_order_line_description/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
This module sets to use only product's sale description field on the sale order
2-
lines, instead of "Ref+Name+Sale Description".
1+
This module sets to use only product's sale description field on the
2+
sale order lines, instead of "Ref+Name+Sale Description".
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
1. Go to **Sales \> Settings \> Quotations & Orders** and check
2+
"Product Sale description\* to use only product sale description on
3+
the sales order lines.
4+
2. Go to **Setting \> Users & Companies \> Users** and check you have
5+
checked the "Use only product purchase description on order lines"
6+
access right for your user.
7+
3. Add or modify a sale description to any of your products.
8+
4. Create a sale order and add a sale order line with this product and
9+
check out that now sale order line description only contains the
10+
sale description you entered.

sale_order_line_description/readme/USAGE.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

sale_order_line_description/static/description/index.html

Lines changed: 22 additions & 18 deletions
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 (goodger@python.org)
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,9 +369,9 @@ <h1 class="title">Sale order line description</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:7789baf205a94a4d7fc525ff5619ddd7e965e83cf41d7696a64033a1d23bfe78
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/sale-workflow/tree/15.0/sale_order_line_description"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_order_line_description"><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/sale-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 sets to use only product’s sale description field on the sale order
374-
lines, instead of “Ref+Name+Sale Description”.</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/sale-workflow/tree/18.0/sale_order_line_description"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_order_line_description"><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/sale-workflow&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373+
<p>This module sets to use only product’s sale description field on the
374+
sale order lines, instead of “Ref+Name+Sale Description”.</p>
375375
<p><strong>Table of contents</strong></p>
376376
<div class="contents local topic" id="contents">
377377
<ul class="simple">
@@ -397,23 +397,24 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
397397
<div class="section" id="usage">
398398
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
399399
<ol class="arabic simple">
400-
<li>Go to <strong>Sales &gt; Settings &gt; Quotations &amp; Orders</strong> and check “Product Sale
401-
description* to use only product sale description on the sales order lines.</li>
402-
<li>Go to <strong>Setting &gt; Users &amp; Companies &gt; Users</strong> and check you have checked
403-
the “Use only product purchase description on order lines” access right for
404-
your user.</li>
400+
<li>Go to <strong>Sales &gt; Settings &gt; Quotations &amp; Orders</strong> and check “Product
401+
Sale description* to use only product sale description on the sales
402+
order lines.</li>
403+
<li>Go to <strong>Setting &gt; Users &amp; Companies &gt; Users</strong> and check you have
404+
checked the “Use only product purchase description on order lines”
405+
access right for your user.</li>
405406
<li>Add or modify a sale description to any of your products.</li>
406-
<li>Create a sale order and add a sale order line with this product and check
407-
out that now sale order line description only contains the sale description
408-
you entered.</li>
407+
<li>Create a sale order and add a sale order line with this product and
408+
check out that now sale order line description only contains the sale
409+
description you entered.</li>
409410
</ol>
410411
</div>
411412
<div class="section" id="bug-tracker">
412413
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
413414
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>.
414415
In case of trouble, please check there if your issue has already been reported.
415416
If you spotted it first, help us to smash it by providing a detailed and welcomed
416-
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_line_description%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
417+
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_line_description%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
417418
<p>Do not contact contributors directly about support or help with technical issues.</p>
418419
</div>
419420
<div class="section" id="credits">
@@ -435,6 +436,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
435436
</ul>
436437
</li>
437438
</ul>
439+
<!-- -->
438440
<blockquote>
439441
<ul class="simple">
440442
<li>Rataapong Chokmasermkul &lt;<a class="reference external" href="mailto:rattapongc&#64;ecosoft.co.th">rattapongc&#64;ecosoft.co.th</a>&gt;</li>
@@ -444,11 +446,13 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
444446
<div class="section" id="maintainers">
445447
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
446448
<p>This module is maintained by the OCA.</p>
447-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
449+
<a class="reference external image-reference" href="https://odoo-community.org">
450+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
451+
</a>
448452
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
449453
mission is to support the collaborative development of Odoo features and
450454
promote its widespread use.</p>
451-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/15.0/sale_order_line_description">OCA/sale-workflow</a> project on GitHub.</p>
455+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/18.0/sale_order_line_description">OCA/sale-workflow</a> project on GitHub.</p>
452456
<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>
453457
</div>
454458
</div>

0 commit comments

Comments
 (0)