From fb03c2dd3a4369622a5d1eca8c47dfe8c35065d1 Mon Sep 17 00:00:00 2001 From: Mateu Griful Date: Thu, 9 Sep 2021 15:27:58 +0200 Subject: [PATCH] [14.0][MIG] stock_cycle_count: black, isort, prettier --- setup/stock_cycle_count/odoo/addons/stock_cycle_count | 1 + setup/stock_cycle_count/setup.py | 6 ++++++ stock_cycle_count/models/stock_warehouse.py | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 120000 setup/stock_cycle_count/odoo/addons/stock_cycle_count create mode 100644 setup/stock_cycle_count/setup.py diff --git a/setup/stock_cycle_count/odoo/addons/stock_cycle_count b/setup/stock_cycle_count/odoo/addons/stock_cycle_count new file mode 120000 index 000000000..5259223f1 --- /dev/null +++ b/setup/stock_cycle_count/odoo/addons/stock_cycle_count @@ -0,0 +1 @@ +../../../../stock_cycle_count \ No newline at end of file diff --git a/setup/stock_cycle_count/setup.py b/setup/stock_cycle_count/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/stock_cycle_count/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_cycle_count/models/stock_warehouse.py b/stock_cycle_count/models/stock_warehouse.py index b95c3975e..cbad86f08 100644 --- a/stock_cycle_count/models/stock_warehouse.py +++ b/stock_cycle_count/models/stock_warehouse.py @@ -77,9 +77,9 @@ class StockWarehouse(models.Model): } def action_compute_cycle_count_rules(self): - """ Apply the rule in all the sublocations of a given warehouse(s) and + """Apply the rule in all the sublocations of a given warehouse(s) and returns a list with required dates for the cycle count of each - location """ + location""" for rec in self: proposed_cycle_counts = [] rules = rec._cycle_count_rules_to_compute()