group order form notebook
This commit is contained in:
parent
1b20142b6f
commit
98fe8676ea
5 changed files with 104 additions and 16 deletions
|
|
@ -85,6 +85,25 @@ msgstr "<span class=\"meta-label\">Franjas de recogida</span>"
|
|||
msgid "<span class=\"meta-label\">Pickup</span>"
|
||||
msgstr "<span class=\"meta-label\">Día de Recogida</span>"
|
||||
|
||||
#. module: website_sale_aplicoop
|
||||
#: model_terms:ir.ui.view,arch_db:website_sale_aplicoop.eskaera_order_card_meta
|
||||
msgid "<span class=\"meta-label\">From</span>"
|
||||
msgstr "<span class=\"meta-label\">Desde</span>"
|
||||
|
||||
#. module: website_sale_aplicoop
|
||||
#: model_terms:ir.ui.view,arch_db:website_sale_aplicoop.eskaera_order_card_meta
|
||||
msgid "<span class=\"meta-label\">Until</span>"
|
||||
msgstr "<span class=\"meta-label\">Hasta</span>"
|
||||
|
||||
#. module: website_sale_aplicoop
|
||||
#: model_terms:ir.ui.view,arch_db:website_sale_aplicoop.eskaera_order_card_meta
|
||||
msgid ""
|
||||
"<span class=\"badge special-order-badge\"><i class=\"fa fa-star\"/> Special "
|
||||
"Order</span>"
|
||||
msgstr ""
|
||||
"<span class=\"badge special-order-badge\"><i class=\"fa fa-star\"/> Pedido "
|
||||
"Especial</span>"
|
||||
|
||||
#. module: website_sale_aplicoop
|
||||
#: model_terms:ir.ui.view,arch_db:website_sale_aplicoop.eskaera_checkout_summary
|
||||
msgid ""
|
||||
|
|
|
|||
|
|
@ -86,6 +86,25 @@ msgstr "<span class=\"meta-label\">Biltzeko tarteak</span>"
|
|||
msgid "<span class=\"meta-label\">Pickup</span>"
|
||||
msgstr "<span class=\"meta-label\">Biltzeko Eguna</span>"
|
||||
|
||||
#. module: website_sale_aplicoop
|
||||
#: model_terms:ir.ui.view,arch_db:website_sale_aplicoop.eskaera_order_card_meta
|
||||
msgid "<span class=\"meta-label\">From</span>"
|
||||
msgstr "<span class=\"meta-label\">Hasiera</span>"
|
||||
|
||||
#. module: website_sale_aplicoop
|
||||
#: model_terms:ir.ui.view,arch_db:website_sale_aplicoop.eskaera_order_card_meta
|
||||
msgid "<span class=\"meta-label\">Until</span>"
|
||||
msgstr "<span class=\"meta-label\">Amaiera</span>"
|
||||
|
||||
#. module: website_sale_aplicoop
|
||||
#: model_terms:ir.ui.view,arch_db:website_sale_aplicoop.eskaera_order_card_meta
|
||||
msgid ""
|
||||
"<span class=\"badge special-order-badge\"><i class=\"fa fa-star\"/> Special "
|
||||
"Order</span>"
|
||||
msgstr ""
|
||||
"<span class=\"badge special-order-badge\"><i class=\"fa fa-star\"/> Eskaera "
|
||||
"Berezia</span>"
|
||||
|
||||
#. module: website_sale_aplicoop
|
||||
#: model_terms:ir.ui.view,arch_db:website_sale_aplicoop.eskaera_checkout_summary
|
||||
msgid ""
|
||||
|
|
|
|||
|
|
@ -366,3 +366,38 @@
|
|||
.meta-grid .badge i {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
/* Special order card */
|
||||
.eskaera-order-card--special {
|
||||
background: linear-gradient(180deg, #fffdf0 0%, #fffbea 100%);
|
||||
border: 1px solid rgba(245, 158, 11, 0.35);
|
||||
box-shadow: 0 6px 18px rgba(245, 158, 11, 0.12);
|
||||
}
|
||||
|
||||
.eskaera-order-card--special::before {
|
||||
background: linear-gradient(90deg, #f59e0b, #d97706);
|
||||
}
|
||||
|
||||
.eskaera-order-card-link:hover .eskaera-order-card--special {
|
||||
box-shadow: 0 20px 50px rgba(245, 158, 11, 0.2), 0 0 30px rgba(245, 158, 11, 0.12);
|
||||
border-color: rgba(245, 158, 11, 0.5);
|
||||
background: linear-gradient(180deg, #fffdf0 0%, #fff8db 100%);
|
||||
}
|
||||
|
||||
.special-order-badge {
|
||||
background: linear-gradient(135deg, #f59e0b, #d97706) !important;
|
||||
color: #fff !important;
|
||||
font-size: 0.75rem;
|
||||
padding: 0.25rem 0.6rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
border-radius: 4px;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
|
||||
}
|
||||
|
||||
.meta-item--full {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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