diff --git a/stock_user_default_warehouse_base/README.rst b/stock_user_default_warehouse_base/README.rst new file mode 100644 index 0000000..fd0b536 --- /dev/null +++ b/stock_user_default_warehouse_base/README.rst @@ -0,0 +1,64 @@ +=============================== +Default Stock Warehouse on User +=============================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-akretion%2Fodoo--usability-lightgray.png?logo=github + :target: https://github.com/akretion/odoo-usability/tree/12.0/stock_user_default_warehouse_base + :alt: akretion/odoo-usability + +|badge1| |badge2| |badge3| + +With this module, you will be able to configure a default warehouse in the preferences of the user. + +This module doesn't do anything by itself. It should be used together with at least one of the following modules: + +* stock_user_default_warehouse_sale +* stock_user_default_warehouse_purchase +* stock_user_default_warehouse_mrp + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Akretion + +Contributors +~~~~~~~~~~~~ + +* Alexis de Lattre +* Daniel Luque + +Maintainers +~~~~~~~~~~~ + +This module is part of the `akretion/odoo-usability `_ project on GitHub. + +You are welcome to contribute. diff --git a/stock_user_default_warehouse_base/__manifest__.py b/stock_user_default_warehouse_base/__manifest__.py index 77ddbaf..f55cf0d 100644 --- a/stock_user_default_warehouse_base/__manifest__.py +++ b/stock_user_default_warehouse_base/__manifest__.py @@ -8,17 +8,6 @@ 'category': 'Inventory, Logistics, Warehousing', 'license': 'AGPL-3', 'summary': 'Configure a default warehouse on user', - 'description': """ -Default Warehouse on User -========================= - -With this module, you will be able to configure a default warehouse in the preferences of the user. - -This module doesn't do anything by itself. It should be used together with stock_user_default_warehouse_sale and/or stock_user_default_warehouse_purchase. - -This module has been written by Alexis de Lattre from Akretion -. - """, 'author': 'Akretion', 'website': 'http://www.akretion.com', 'depends': ['stock'], diff --git a/stock_user_default_warehouse_base/readme/CONTRIBUTORS.rst b/stock_user_default_warehouse_base/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..aa552d7 --- /dev/null +++ b/stock_user_default_warehouse_base/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Alexis de Lattre +* Daniel Luque diff --git a/stock_user_default_warehouse_base/readme/DESCRIPTION.rst b/stock_user_default_warehouse_base/readme/DESCRIPTION.rst new file mode 100644 index 0000000..68ae1d1 --- /dev/null +++ b/stock_user_default_warehouse_base/readme/DESCRIPTION.rst @@ -0,0 +1,7 @@ +With this module, you will be able to configure a default warehouse in the preferences of the user. + +This module doesn't do anything by itself. It should be used together with at least one of the following modules: + +* stock_user_default_warehouse_sale +* stock_user_default_warehouse_purchase +* stock_user_default_warehouse_mrp diff --git a/stock_user_default_warehouse_base/static/description/icon.png b/stock_user_default_warehouse_base/static/description/icon.png new file mode 100644 index 0000000..c91da79 Binary files /dev/null and b/stock_user_default_warehouse_base/static/description/icon.png differ diff --git a/stock_user_default_warehouse_base/static/description/index.html b/stock_user_default_warehouse_base/static/description/index.html new file mode 100644 index 0000000..33ebcdb --- /dev/null +++ b/stock_user_default_warehouse_base/static/description/index.html @@ -0,0 +1,421 @@ + + + + + + +Default Stock Warehouse on User + + + +
+

Default Stock Warehouse on User

+ + +

Beta License: AGPL-3 akretion/odoo-usability

+

With this module, you will be able to configure a default warehouse in the preferences of the user.

+

This module doesn’t do anything by itself. It should be used together with at least one of the following modules:

+
    +
  • stock_user_default_warehouse_sale
  • +
  • stock_user_default_warehouse_purchase
  • +
  • stock_user_default_warehouse_mrp
  • +
+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the akretion/odoo-usability project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/stock_user_default_warehouse_base/wizard/stock_change_product_qty.py b/stock_user_default_warehouse_base/wizard/stock_change_product_qty.py index ffa6ae1..f8e2cdf 100644 --- a/stock_user_default_warehouse_base/wizard/stock_change_product_qty.py +++ b/stock_user_default_warehouse_base/wizard/stock_change_product_qty.py @@ -10,7 +10,7 @@ class StockChangeProductQty(models.TransientModel): @api.model def default_get(self, fields_list): - res = super(StockChangeProductQty, self).default_get(fields_list) + res = super().default_get(fields_list) if self.env.user.context_default_warehouse_id: res['location_id'] = self.env.user.context_default_warehouse_id.\ lot_stock_id.id