Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Stock Cycle Count

Entity: stock.cycle.count.rule

Compute Method: _compute_rule_description

Inputs Method Outputs
if self.rule_type == "periodic":
            self.rule_description = self.env._(
                "Ensures that at least a defined number "
                "of counts in a given period will "
                "be run."
            )
        elif self.rule_type == "turnover":
            self.rule_description = self.env._(
                "Schedules a count every time the total "
                "turnover of a location exceeds the "
                "threshold. This considers every "
                "product going into/out of the location"
            )
        elif self.rule_type == "accuracy":
            self.rule_description = self.env._(
                "Schedules a count every time the "
                "accuracy of a location goes under a "
                "given threshold."
            )
        elif self.rule_type == "zero":
            self.rule_description = self.env._(
                "Perform an Inventory Adjustment every "
                "time a location in the warehouse runs "
                "out of stock in order to confirm it is "
                "truly empty."
            )
        else:
            self.rule_description = self.env._("(No description provided.)")

Back to entity