- group.order.home_delivery is a stored compute field with no inverse; Odoo still lets write() set it directly, so a stray direct write stuck instead of always being re-derived from delivery_product_id. create() and write() now strip it from vals, same pattern already used for slug. - _find_recent_draft_order only bounded drafts by create_date, so a freshly created draft for a stale/previous pickup_date (but created "now") was wrongly reused. Fix requires both create_date to fall in the active window AND pickup_date to match when set — the latter alone isn't enough either, per the regression already covered by test_find_recent_draft_excludes_previous_cycle (observed in production at stage.elikabilbo.eus). |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| exceptions.py | ||
| portal.py | ||
| website_sale.py | ||
| website_sale_i18n.py | ||
| website_sale_pickup.py | ||
| website_sale_pricing.py | ||
| website_sale_products.py | ||
| website_sale_utils.py | ||
| website_sale_validators.py | ||