You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

102 lines
6.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="vracoop_view_order_tree" model="ir.ui.view">
<field name="name">vracoop.sale.order.tree</field>
<field name="model">sale.order</field>
<field name="priority">1</field>
<field name="arch" type="xml">
<tree string="Commandes" decoration-bf="message_needaction==True" decoration-muted="state=='cancel'">
<field name="message_needaction" invisible="1"/>
<field name="name" string="Num de commande"/>
<field name="confirmation_date" string="Date de confirmation"/>
<field name="commitment_date" groups="sale.group_sale_order_dates"/>
<field name="expected_date" groups="sale.group_sale_order_dates"/>
<field name="partner_id"/>
<field name="vracoop_point_retrait_id"/>
<field name="day_retrait"/>
<field name="hour_retrait" widget="float_time"/>
<field name="user_id"/>
<field name="amount_total" sum="Total Tax Included" widget="monetary"/>
<field name="currency_id" invisible="1"/>
<field name="invoice_status" invisible="1"/>
<field name="state" invisible="1"/>
</tree>
</field>
</record>
<record id="vracoop_view_sales_order_filter" model="ir.ui.view">
<field name="name">vracoop.sale.order.list.select</field>
<field name="model">sale.order</field>
<field name="priority" eval="15"/>
<field name="arch" type="xml">
<search string="Search Sales Order">
<field name="name" string="Sales Order" filter_domain="['|','|',('name','ilike',self),('client_order_ref','ilike',self),('partner_id','child_of',self)]"/>
<field name="partner_id" operator="child_of"/>
<field name="user_id"/>
<field name="team_id" string="Sales Team"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
<field name="order_line" string="Product" filter_domain="[('order_line.product_id', 'ilike', self)]"/>
<filter string="Mes commandes" domain="[('user_id','=',uid)]" name="my_sale_orders_filter"/>
<filter string="Commandes confirmées" name="order_confirmed" domain="[('state', 'in', ('sale', 'done'))]"/>
<filter string="Commandes non payées" name="order_unpaid" domain="[('state', '=', 'sent'), ('team_id.team_type', '=', 'website')]"/>
<filter string="Paniers abandonnés" name="order_abandoned" domain="[('is_abandoned_cart', '=', True)]"/>
<separator/>
<filter string="Order Date" name="order_date" date="date_order"/>
<separator/>
<filter string="Depuis le site web" name="from_website" domain="[('team_id.team_type', '=', 'website')]"/>
<filter string="En retrait" name="point_retrait" domain="[('carrier_point_retrait', '=', True)]"/>
<separator/>
<separator/>
<filter string="Mes activités" name="activities_my"
domain="[('activity_ids.user_id', '=', uid)]"/>
<separator/>
<filter string="Activités en retard" name="activities_overdue"
domain="[('activity_ids.date_deadline', '&lt;', context_today().strftime('%Y-%m-%d'))]"
help="Show all records which has next action date is before today"/>
<filter string="Activités du jour" name="activities_today"
domain="[('activity_ids.date_deadline', '=', context_today().strftime('%Y-%m-%d'))]"/>
<filter string="Activités futures" name="activities_upcoming_all"
domain="[('activity_ids.date_deadline', '&gt;', context_today().strftime('%Y-%m-%d'))
]"/>
<group expand="0" string="Group By">
<filter string="Point retrait" name="order_retrait" domain="[]" context="{'group_by':'vracoop_point_retrait_id'}"/>
<filter string="Date Retrait" name="order_retrait_month" domain="[]" context="{'group_by':'day_retrait'}"/>
</group>
</search>
</field>
</record>
<record id="vracoop_action_orders" model="ir.actions.act_window">
<field name="name">Commandes en retrait</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sale.order</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,activity</field>
<field name="search_view_id" ref="vracoop_view_sales_order_filter"/>
<field name="context">{'show_sale': True, 'search_default_point_retrait': 1}</field>
<field name="domain">[('state', 'not in', ('cancel',))]</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Créer un nouveau bon de commande
</p>
</field>
</record>
<record id="vracoop_sale_order_action_view_order_tree" model="ir.actions.act_window.view">
<field name="sequence" eval="1"/>
<field name="view_mode">tree</field>
<field name="view_id" ref="vracoop_click_and_collect.vracoop_view_order_tree"/>
<field name="act_window_id" ref="vracoop_click_and_collect.vracoop_action_orders"/>
</record>
<menuitem id="vracoop_menu_sale_order"
name="Suivi des retraits"
action="vracoop_action_orders"
parent="vracoop_click_and_collect.menu_retrait"
sequence="20"
groups="sales_team.group_sale_salesman"/>
</odoo>