[FIX] website_sale_aplicoop: auto-derive home_delivery from delivery_product_id
Make group.order.home_delivery a computed stored field that is True whenever delivery_product_id is set, eliminating the manual checkbox that could be forgotten. This fixes sale.order.home_delivery not being set when the delivery product was configured but the boolean was left unchecked. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
fb1efb0474
commit
9d614ed79e
2 changed files with 9 additions and 3 deletions
|
|
@ -61,8 +61,8 @@
|
|||
<field name="period" help="How often this order repeats"/>
|
||||
<field name="pickup_day" help="Day when members pick up orders"/>
|
||||
<field name="cutoff_day" help="Day when purchases stop"/>
|
||||
<field name="home_delivery" help="Enable home delivery option for this order"/>
|
||||
<field name="delivery_product_id" invisible="not home_delivery" required="home_delivery" help="Product to use for home delivery"/>
|
||||
<field name="home_delivery" readonly="1" help="Automatically enabled when a delivery product is configured"/>
|
||||
<field name="delivery_product_id" help="Product to use for home delivery. Setting this enables home delivery."/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Calculated Dates" name="calculated_dates">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue