Skip to content

Commit 82ec9bf

Browse files
committed
[MIG] sale_order_line_remove: Migration to 18.0
1 parent ba5973a commit 82ec9bf

File tree

11 files changed

+58
-43
lines changed

11 files changed

+58
-43
lines changed

sale_order_line_remove/README.rst

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,23 @@ Sale Order Line Remove
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_remove
20+
:target: https://github.com/OCA/sale-workflow/tree/18.0/sale_order_line_remove
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_remove
23+
:target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_order_line_remove
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 allows the removal of sale order lines even after the order has been confirmed, under certain conditions. Specifically, a sale order line can be removed if:
31+
This module allows the removal of sale order lines even after the order
32+
has been confirmed, under certain conditions. Specifically, a sale order
33+
line can be removed if:
3234

33-
- It has not been invoiced.
34-
- It has not been delivered.
35+
- It has not been invoiced.
36+
- It has not been delivered.
3537

3638
**Table of contents**
3739

@@ -44,33 +46,34 @@ Usage
4446
Once the module is installed:
4547

4648
1. Go to a sale order.
47-
2. You can now delete a sale order line if it hasn't been invoiced or delivered.
49+
2. You can now delete a sale order line if it hasn't been invoiced or
50+
delivered.
4851

4952
Bug Tracker
5053
===========
5154

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

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

5962
Credits
6063
=======
6164

6265
Authors
63-
~~~~~~~
66+
-------
6467

6568
* ForgeFlow
6669

6770
Contributors
68-
~~~~~~~~~~~~
71+
------------
6972

70-
* Joan Sisquella <[email protected]>
73+
- Joan Sisquella <[email protected]>
7174

7275
Maintainers
73-
~~~~~~~~~~~
76+
-----------
7477

7578
This module is maintained by the OCA.
7679

@@ -82,6 +85,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8285
mission is to support the collaborative development of Odoo features and
8386
promote its widespread use.
8487

85-
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/15.0/sale_order_line_remove>`_ project on GitHub.
88+
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/18.0/sale_order_line_remove>`_ project on GitHub.
8689

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

sale_order_line_remove/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
33
{
44
"name": "Sale Order Line Remove",
5-
"version": "15.0.1.0.0",
5+
"version": "18.0.1.0.0",
66
"category": "Sales",
77
"summary": "Allows removal of sale order lines from confirmed "
88
"orders if not invoiced or received",

sale_order_line_remove/models/sale_order.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class SaleOrderLine(models.Model):
99
_inherit = "sale.order.line"
1010

1111
def _check_line_unlink(self):
12-
non_removable_lines = super(SaleOrderLine, self)._check_line_unlink()
12+
non_removable_lines = super()._check_line_unlink()
1313
removable_lines = self.filtered(
1414
lambda line: line.state in ("sale", "done")
1515
and not line.invoice_lines
@@ -43,4 +43,4 @@ def unlink(self):
4343
for picking in related_pickings:
4444
if not picking.move_ids_without_package:
4545
picking.unlink()
46-
return super(SaleOrderLine, self).unlink()
46+
return super().unlink()
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Joan Sisquella \<<[email protected]>\>

sale_order_line_remove/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
This module allows the removal of sale order lines even after the order has been confirmed, under certain conditions. Specifically, a sale order line can be removed if:
1+
This module allows the removal of sale order lines even after the order
2+
has been confirmed, under certain conditions. Specifically, a sale order
3+
line can be removed if:
24

35
- It has not been invoiced.
46
- It has not been delivered.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Once the module is installed:
2+
3+
1. Go to a sale order.
4+
2. You can now delete a sale order line if it hasn't been invoiced or
5+
delivered.

sale_order_line_remove/readme/USAGE.rst

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

sale_order_line_remove/static/description/index.html

Lines changed: 15 additions & 10 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,8 +369,10 @@ <h1 class="title">Sale Order Line Remove</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:19987b79fe99d4ff465bda1d9b1f07c5570e70b5347127ddb2dcc5849efb6bc4
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_remove"><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_remove"><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 allows the removal of sale order lines even after the order has been confirmed, under certain conditions. Specifically, a sale order line can be removed if:</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_remove"><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_remove"><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 allows the removal of sale order lines even after the order
374+
has been confirmed, under certain conditions. Specifically, a sale order
375+
line can be removed if:</p>
374376
<ul class="simple">
375377
<li>It has not been invoiced.</li>
376378
<li>It has not been delivered.</li>
@@ -393,15 +395,16 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
393395
<p>Once the module is installed:</p>
394396
<ol class="arabic simple">
395397
<li>Go to a sale order.</li>
396-
<li>You can now delete a sale order line if it hasn’t been invoiced or delivered.</li>
398+
<li>You can now delete a sale order line if it hasn’t been invoiced or
399+
delivered.</li>
397400
</ol>
398401
</div>
399402
<div class="section" id="bug-tracker">
400403
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
401404
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>.
402405
In case of trouble, please check there if your issue has already been reported.
403406
If you spotted it first, help us to smash it by providing a detailed and welcomed
404-
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_line_remove%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
407+
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_line_remove%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
405408
<p>Do not contact contributors directly about support or help with technical issues.</p>
406409
</div>
407410
<div class="section" id="credits">
@@ -421,11 +424,13 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
421424
<div class="section" id="maintainers">
422425
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
423426
<p>This module is maintained by the OCA.</p>
424-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
427+
<a class="reference external image-reference" href="https://odoo-community.org">
428+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
429+
</a>
425430
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
426431
mission is to support the collaborative development of Odoo features and
427432
promote its widespread use.</p>
428-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/15.0/sale_order_line_remove">OCA/sale-workflow</a> project on GitHub.</p>
433+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/18.0/sale_order_line_remove">OCA/sale-workflow</a> project on GitHub.</p>
429434
<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>
430435
</div>
431436
</div>

0 commit comments

Comments
 (0)