group order form notebook
This commit is contained in:
parent
1b20142b6f
commit
98fe8676ea
5 changed files with 104 additions and 16 deletions
|
|
@ -61,26 +61,25 @@
|
|||
<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" 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">
|
||||
<notebook>
|
||||
<page string="Calculated Dates" name="calculated_dates">
|
||||
<group>
|
||||
<field name="cutoff_date" readonly="1" help="Automatically calculated cutoff date"/>
|
||||
<field name="pickup_date" readonly="1" help="Automatically calculated pickup date"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="delivery_date" readonly="1" help="Automatically calculated delivery date (pickup + 1 day)"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Description">
|
||||
<field name="description" placeholder="Free text description..." nolabel="1"/>
|
||||
</group>
|
||||
<group string="Delivery">
|
||||
</page>
|
||||
<page string="Description" name="description">
|
||||
<field name="description" placeholder="Free text description..." nolabel="1"/>
|
||||
</page>
|
||||
<page string="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."/>
|
||||
<field name="delivery_notice" placeholder="Information about home delivery..." nolabel="1"/>
|
||||
</group>
|
||||
<group string="Product Catalog">
|
||||
</page>
|
||||
<page string="Product Catalog">
|
||||
<group string="Included Products" col="2">
|
||||
<field name="supplier_ids" widget="many2many_tags" help="All products from these suppliers will be included"/>
|
||||
<field name="category_ids" widget="many2many_tags" help="All products in these categories (including subcategories) will be included"/>
|
||||
|
|
@ -91,9 +90,8 @@
|
|||
<field name="excluded_category_ids" widget="many2many_tags" help="Categories excluded from this order. Products in these categories and all their subcategories will not be available (blacklist has absolute priority)"/>
|
||||
<field name="excluded_product_ids" widget="many2many_tags" help="Products explicitly excluded from this order (blacklist has absolute priority over inclusions)"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Pickup Slots" name="pickup_slots">
|
||||
</page>
|
||||
<page string="Pickup Slots" name="pickup_slots">
|
||||
<field name="pickup_slot_ids">
|
||||
<list editable="bottom">
|
||||
<field name="sequence" widget="handle"/>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
<div class="eskaera-orders eskaera-orders-grid">
|
||||
<t t-foreach="active_orders" t-as="order">
|
||||
<div class="eskaera-order-card-wrapper">
|
||||
<div class="eskaera-order-card">
|
||||
<div t-attf-class="eskaera-order-card{{ ' eskaera-order-card--special' if order.type == 'special' else '' }}">
|
||||
<div class="card-body">
|
||||
<div class="position-absolute order-badge-position">
|
||||
<span class="badge bg-primary d-flex align-items-center gap-2 order-badge-custom">
|
||||
|
|
@ -159,6 +159,23 @@
|
|||
<span class="badge bg-success"><i class="fa fa-truck" /> Home Delivery</span>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="order.type == 'special'">
|
||||
<div class="meta-item meta-item--full">
|
||||
<span class="badge special-order-badge"><i class="fa fa-star" /> Special Order</span>
|
||||
</div>
|
||||
<t t-if="order.start_date">
|
||||
<div class="meta-item">
|
||||
<span class="meta-label">From</span>
|
||||
<span class="meta-value"><t t-esc="order.start_date.strftime('%d/%m/%Y')" /></span>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="order.end_date">
|
||||
<div class="meta-item">
|
||||
<span class="meta-label">Until</span>
|
||||
<span class="meta-value"><t t-esc="order.end_date.strftime('%d/%m/%Y')" /></span>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue