-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] sale_stock_picking_validation_blocking: pre-commit auto fixes
- Loading branch information
Showing
20 changed files
with
117 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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** | ||
|
||
|
@@ -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 | ||
=========== | ||
|
@@ -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. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]>\> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
...order_general_discount/readme/INSTALL.rst → ..._order_general_discount/readme/INSTALL.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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** | ||
|
||
|
@@ -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. | ||
|
||
|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
|
||
|
||
class SaleOrder(models.Model): | ||
|
||
_inherit = "sale.order" | ||
|
||
picking_validation_blocked = fields.Boolean( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Quentin Groulard \<<[email protected]>\> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
2
sale_stock_picking_validation_blocking/readme/DESCRIPTION.rst
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.