mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[14.0][MIG] stock_cycle_count: black, isort, prettier
This commit is contained in:
1
setup/stock_cycle_count/odoo/addons/stock_cycle_count
Symbolic link
1
setup/stock_cycle_count/odoo/addons/stock_cycle_count
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../../../stock_cycle_count
|
||||||
6
setup/stock_cycle_count/setup.py
Normal file
6
setup/stock_cycle_count/setup.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
||||||
@@ -77,9 +77,9 @@ class StockWarehouse(models.Model):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def action_compute_cycle_count_rules(self):
|
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
|
returns a list with required dates for the cycle count of each
|
||||||
location """
|
location"""
|
||||||
for rec in self:
|
for rec in self:
|
||||||
proposed_cycle_counts = []
|
proposed_cycle_counts = []
|
||||||
rules = rec._cycle_count_rules_to_compute()
|
rules = rec._cycle_count_rules_to_compute()
|
||||||
|
|||||||
Reference in New Issue
Block a user