Skip to content

Commit 572f789

Browse files
[IMP] sale_margin_sync: pre-commit auto fixes
1 parent 0370ae2 commit 572f789

File tree

7 files changed

+31
-26
lines changed

7 files changed

+31
-26
lines changed

sale_margin_sync/README.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Sale margin sync
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%2Fmargin--analysis-lightgray.png?logo=github
20-
:target: https://github.com/OCA/margin-analysis/tree/16.0/sale_margin_sync
20+
:target: https://github.com/OCA/margin-analysis/tree/17.0/sale_margin_sync
2121
:alt: OCA/margin-analysis
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-sale_margin_sync
23+
:target: https://translation.odoo-community.org/projects/margin-analysis-17-0/margin-analysis-17-0-sale_margin_sync
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/margin-analysis&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/margin-analysis&target_branch=17.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -41,29 +41,29 @@ Bug Tracker
4141
Bugs are tracked on `GitHub Issues <https://github.com/OCA/margin-analysis/issues>`_.
4242
In case of trouble, please check there if your issue has already been reported.
4343
If you spotted it first, help us to smash it by providing a detailed and welcomed
44-
`feedback <https://github.com/OCA/margin-analysis/issues/new?body=module:%20sale_margin_sync%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
44+
`feedback <https://github.com/OCA/margin-analysis/issues/new?body=module:%20sale_margin_sync%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4545

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

4848
Credits
4949
=======
5050

5151
Authors
52-
~~~~~~~
52+
-------
5353

5454
* Tecnativa
5555

5656
Contributors
57-
~~~~~~~~~~~~
57+
------------
5858

59-
* `Tecnativa <https://www.tecnativa.com>`_:
59+
- `Tecnativa <https://www.tecnativa.com>`__:
6060

61-
* Carlos Dauden
62-
* Sergio Teruel
63-
* Carlos Roca
61+
- Carlos Dauden
62+
- Sergio Teruel
63+
- Carlos Roca
6464

6565
Maintainers
66-
~~~~~~~~~~~
66+
-----------
6767

6868
This module is maintained by the OCA.
6969

@@ -75,6 +75,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
7575
mission is to support the collaborative development of Odoo features and
7676
promote its widespread use.
7777

78-
This module is part of the `OCA/margin-analysis <https://github.com/OCA/margin-analysis/tree/16.0/sale_margin_sync>`_ project on GitHub.
78+
This module is part of the `OCA/margin-analysis <https://github.com/OCA/margin-analysis/tree/17.0/sale_margin_sync>`_ project on GitHub.
7979

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

sale_margin_sync/models/stock_valuation_layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def write(self, vals):
2525

2626
def sale_margin_sync(self):
2727
"""Only synchronize outgoing moves"""
28-
for svl in self.filtered(lambda l: (l.quantity < 0.0)):
28+
for svl in self.filtered(lambda line: (line.quantity < 0.0)):
2929
sale_line_id = svl.stock_move_id.sale_line_id
3030
product_cost = svl.unit_cost
3131
if sale_line_id.product_uom and sale_line_id.product_uom != svl.uom_id:

sale_margin_sync/pyproject.toml

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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- [Tecnativa](https://www.tecnativa.com):
2+
3+
> - Carlos Dauden
4+
> - Sergio Teruel
5+
> - Carlos Roca

sale_margin_sync/readme/CONTRIBUTORS.rst

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

sale_margin_sync/static/description/index.html

Lines changed: 10 additions & 8 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 ([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,7 +369,7 @@ <h1 class="title">Sale margin sync</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:8b69616f03524df8bef16a62a618ab5baa651460bc14413a92a6c51dcc869f49
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/margin-analysis/tree/16.0/sale_margin_sync"><img alt="OCA/margin-analysis" src="https://img.shields.io/badge/github-OCA%2Fmargin--analysis-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-sale_margin_sync"><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/margin-analysis&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></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/margin-analysis/tree/17.0/sale_margin_sync"><img alt="OCA/margin-analysis" src="https://img.shields.io/badge/github-OCA%2Fmargin--analysis-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/margin-analysis-17-0/margin-analysis-17-0-sale_margin_sync"><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/margin-analysis&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>Recompute sale margin when related stock move cost price is changed.</p>
374374
<p><strong>Table of contents</strong></p>
375375
<div class="contents local topic" id="contents">
@@ -388,7 +388,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
388388
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/margin-analysis/issues">GitHub Issues</a>.
389389
In case of trouble, please check there if your issue has already been reported.
390390
If you spotted it first, help us to smash it by providing a detailed and welcomed
391-
<a class="reference external" href="https://github.com/OCA/margin-analysis/issues/new?body=module:%20sale_margin_sync%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
391+
<a class="reference external" href="https://github.com/OCA/margin-analysis/issues/new?body=module:%20sale_margin_sync%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
392392
<p>Do not contact contributors directly about support or help with technical issues.</p>
393393
</div>
394394
<div class="section" id="credits">
@@ -416,11 +416,13 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
416416
<div class="section" id="maintainers">
417417
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
418418
<p>This module is maintained by the OCA.</p>
419-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
419+
<a class="reference external image-reference" href="https://odoo-community.org">
420+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
421+
</a>
420422
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
421423
mission is to support the collaborative development of Odoo features and
422424
promote its widespread use.</p>
423-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/margin-analysis/tree/16.0/sale_margin_sync">OCA/margin-analysis</a> project on GitHub.</p>
425+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/margin-analysis/tree/17.0/sale_margin_sync">OCA/margin-analysis</a> project on GitHub.</p>
424426
<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>
425427
</div>
426428
</div>

0 commit comments

Comments
 (0)