Skip to content

Commit

Permalink
[IMP] sale_stock_picking_validation_blocking: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkhao committed Oct 21, 2024
1 parent 2973911 commit c005ba7
Show file tree
Hide file tree
Showing 20 changed files with 117 additions and 100 deletions.
40 changes: 21 additions & 19 deletions sale_order_general_discount/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ Sale Order General Discount

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to set a general discount in a sales order. This general
discount is set to each line order in the standard `discount` field.
This module allows to set a general discount in a sales order. This
general discount is set to each line order in the standard discount
field.

You can configure:
* a default general discount on customers
* On each product define if general discount is applied

- a default general discount on customers
- On each product define if general discount is applied

**Table of contents**

Expand All @@ -43,19 +45,19 @@ You can configure:
Installation
============

You need to install sale_management module for accessing the needed menus.
You need to install sale_management module for accessing the needed
menus.

Usage
=====

To use this module, you need to:

#. Create a sale order and set a discount,
this discount will be set in all lines.
#. You can set a discount in a partner.
#. On product you can define if you
apply general discount on sale order line
linked to that product
1. Create a sale order and set a discount, this discount will be set in
all lines.
2. You can set a discount in a partner.
3. On product you can define if you apply general discount on sale order
line linked to that product

Bug Tracker
===========
Expand All @@ -71,23 +73,23 @@ Credits
=======

Authors
~~~~~~~
-------

* Tecnativa

Contributors
~~~~~~~~~~~~
------------

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

* Sergio Teruel <[email protected]>
* Stefan Ungureanu <[email protected]>
- Sergio Teruel <[email protected]>
- Stefan Ungureanu <[email protected]>

* Raf Ven <[email protected]>
* Sudhir Arya <[email protected]>
- Raf Ven <[email protected]>
- Sudhir Arya <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand Down
5 changes: 5 additions & 0 deletions sale_order_general_discount/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- [Tecnativa](https://www.tecnativa.com):
- Sergio Teruel \<<[email protected]>\>
- Stefan Ungureanu \<<[email protected]>\>
- Raf Ven \<<[email protected]>\>
- Sudhir Arya \<<[email protected]>\>
7 changes: 0 additions & 7 deletions sale_order_general_discount/readme/CONTRIBUTORS.rst

This file was deleted.

7 changes: 7 additions & 0 deletions sale_order_general_discount/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This module allows to set a general discount in a sales order. This
general discount is set to each line order in the standard discount
field.

You can configure:
- a default general discount on customers
- On each product define if general discount is applied
6 changes: 0 additions & 6 deletions sale_order_general_discount/readme/DESCRIPTION.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
You need to install sale_management module for accessing the needed menus.
You need to install sale_management module for accessing the needed
menus.
7 changes: 7 additions & 0 deletions sale_order_general_discount/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
To use this module, you need to:

1. Create a sale order and set a discount, this discount will be set in
all lines.
2. You can set a discount in a partner.
3. On product you can define if you apply general discount on sale
order line linked to that product
8 changes: 0 additions & 8 deletions sale_order_general_discount/readme/USAGE.rst

This file was deleted.

24 changes: 11 additions & 13 deletions sale_order_general_discount/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -370,16 +370,14 @@ <h1 class="title">Sale Order General Discount</h1>
!! source digest: sha256:a4eeadfa3e2fc4ad9f54244dc002a32d12938c91207c4f729001730ca727a156
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/17.0/sale_order_general_discount"><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-17-0/sale-workflow-17-0-sale_order_general_discount"><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=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows to set a general discount in a sales order. This general
discount is set to each line order in the standard <cite>discount</cite> field.</p>
<dl class="docutils">
<dt>You can configure:</dt>
<dd><ul class="first last simple">
<p>This module allows to set a general discount in a sales order. This
general discount is set to each line order in the standard discount
field.</p>
<p>You can configure:</p>
<ul class="simple">
<li>a default general discount on customers</li>
<li>On each product define if general discount is applied</li>
</ul>
</dd>
</dl>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -396,18 +394,18 @@ <h1 class="title">Sale Order General Discount</h1>
</div>
<div class="section" id="installation">
<h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
<p>You need to install sale_management module for accessing the needed menus.</p>
<p>You need to install sale_management module for accessing the needed
menus.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<p>To use this module, you need to:</p>
<ol class="arabic simple">
<li>Create a sale order and set a discount,
this discount will be set in all lines.</li>
<li>Create a sale order and set a discount, this discount will be set in
all lines.</li>
<li>You can set a discount in a partner.</li>
<li>On product you can define if you
apply general discount on sale order line
linked to that product</li>
<li>On product you can define if you apply general discount on sale order
line linked to that product</li>
</ol>
</div>
<div class="section" id="bug-tracker">
Expand Down
39 changes: 22 additions & 17 deletions sale_stock_picking_validation_blocking/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,21 @@ Sale Stock Picking Validation Blocking
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/13.0/sale_stock_picking_validation_blocking
:target: https://github.com/OCA/sale-workflow/tree/17.0/sale_stock_picking_validation_blocking
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_stock_picking_validation_blocking
:target: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_stock_picking_validation_blocking
: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/sale-workflow&target_branch=13.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds the opportunity to prevent the validation of linked delivery orders from a sale order.
The delivery order is still created when the sale order is confirmed, therefore the stock is reserved but can not be send until approval.
This module adds the opportunity to prevent the validation of linked
delivery orders from a sale order. The delivery order is still created
when the sale order is confirmed, therefore the stock is reserved but
can not be send until approval.

**Table of contents**

Expand All @@ -41,41 +43,44 @@ Usage

To block validation of stock picking from sale orders, you need to:

#. Open the form view of a sale order (in status Sale Order or Locked).
#. Click on the button Block Delivery Validation.
#. The delivery validation is now blocked, the Validate button will not appear on the related pickings.
1. Open the form view of a sale order (in status Sale Order or Locked).
2. Click on the button Block Delivery Validation.
3. The delivery validation is now blocked, the Validate button will not
appear on the related pickings.

To unblock validation of stock picking from sale orders, you need to:

#. Open the form view of a "delivery validation blocked" sale order (in status Sale Order or Locked).
#. Click on the button Unblock Delivery Validation.
#. The delivery validation is not blocked anymore, the Validate button will appear on the related pickings.
1. Open the form view of a "delivery validation blocked" sale order (in
status Sale Order or Locked).
2. Click on the button Unblock Delivery Validation.
3. The delivery validation is not blocked anymore, the Validate button
will appear on the related pickings.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/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/sale-workflow/issues/new?body=module:%20sale_stock_picking_validation_blocking%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_stock_picking_validation_blocking%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.

Credits
=======

Authors
~~~~~~~
-------

* ACSONE SA/NV

Contributors
~~~~~~~~~~~~
------------

* Quentin Groulard <[email protected]>
- Quentin Groulard <[email protected]>

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -87,6 +92,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/sale-workflow <https://github.com/OCA/sale-workflow/tree/13.0/sale_stock_picking_validation_blocking>`_ project on GitHub.
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/17.0/sale_stock_picking_validation_blocking>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class SaleOrder(models.Model):

_inherit = "sale.order"

picking_validation_blocked = fields.Boolean(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class StockPicking(models.Model):

_inherit = "stock.picking"

validation_blocked_by_so = fields.Boolean(
Expand Down
3 changes: 3 additions & 0 deletions sale_stock_picking_validation_blocking/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Quentin Groulard \<<[email protected]>\>

This file was deleted.

4 changes: 4 additions & 0 deletions sale_stock_picking_validation_blocking/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This module adds the opportunity to prevent the validation of linked
delivery orders from a sale order. The delivery order is still created
when the sale order is confirmed, therefore the stock is reserved but
can not be send until approval.
2 changes: 0 additions & 2 deletions sale_stock_picking_validation_blocking/readme/DESCRIPTION.rst

This file was deleted.

14 changes: 14 additions & 0 deletions sale_stock_picking_validation_blocking/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
To block validation of stock picking from sale orders, you need to:

1. Open the form view of a sale order (in status Sale Order or Locked).
2. Click on the button Block Delivery Validation.
3. The delivery validation is now blocked, the Validate button will not
appear on the related pickings.

To unblock validation of stock picking from sale orders, you need to:

1. Open the form view of a "delivery validation blocked" sale order (in
status Sale Order or Locked).
2. Click on the button Unblock Delivery Validation.
3. The delivery validation is not blocked anymore, the Validate button
will appear on the related pickings.
11 changes: 0 additions & 11 deletions sale_stock_picking_validation_blocking/readme/USAGE.rst

This file was deleted.

Loading

0 comments on commit c005ba7

Please sign in to comment.