lint: fix linter warnings (log exceptions, disable attribute-string-redundant, suppress C901 where necessary)

This commit is contained in:
snt 2026-05-20 12:58:21 +02:00 committed by GitHub Copilot
parent f8ef927a9e
commit a997331c2d
11 changed files with 595 additions and 20 deletions

View file

@ -33,6 +33,14 @@ class StockPicking(models.Model):
help="Pickup/delivery date from sale order",
)
pickup_slot_label = fields.Char(
related="sale_id.pickup_slot_label",
string="Pickup Slot",
store=True,
readonly=True,
help="Human readable pickup slot label from the related sale order",
)
consumer_group_id = fields.Many2one(
"res.partner",
related="sale_id.consumer_group_id",