| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="view_pos_pos_form" model="ir.ui.view"> |
| 4 |
<field name="name">pos.order.form</field> |
| 5 |
<field name="model">pos.order</field> |
| 6 |
<field name="arch" type="xml"> |
| 7 |
<form string="Point of Sale Orders" create="0"> |
| 8 |
<header> |
| 9 |
<button name="%(action_pos_payment)d" string="Payment" class="oe_highlight" type="action" invisible="state != 'draft'" /> |
| 10 |
<button name="action_pos_order_invoice" string="Invoice" type="object" |
| 11 |
invisible="state not in ['paid', 'done'] or account_move"/> |
| 12 |
<button name="refund" string="Return Products" type="object" |
| 13 |
invisible="state == 'draft' or not has_refundable_lines"/> |
| 14 |
<field name="state" widget="statusbar" invisible="state == 'cancel'" statusbar_visible="draft,paid,done"/> |
| 15 |
<field name="state" widget="statusbar" invisible="state != 'cancel'" statusbar_visible="draft,cancel"/> |
| 16 |
<field name="has_refundable_lines" invisible="1" /> |
| 17 |
</header> |
| 18 |
<sheet> |
| 19 |
<field name="failed_pickings" invisible="1"/> |
| 20 |
<div class="oe_button_box" name="button_box"> |
| 21 |
<button name="action_stock_picking" |
| 22 |
type="object" |
| 23 |
class="oe_stat_button" |
| 24 |
icon="fa-truck" |
| 25 |
invisible="picking_count == 0"> |
| 26 |
<field name="picking_count" widget="statinfo" string="Pickings" invisible="failed_pickings"/> |
| 27 |
<field name="picking_count" widget="statinfo" string="Pickings" class="text-danger" invisible="not failed_pickings"/> |
| 28 |
</button> |
| 29 |
<button name="action_view_invoice" |
| 30 |
string="Invoice" |
| 31 |
type="object" |
| 32 |
class="oe_stat_button" |
| 33 |
icon="fa-pencil-square-o" |
| 34 |
invisible="not account_move"> |
| 35 |
</button> |
| 36 |
<button name="action_view_refund_orders" |
| 37 |
type="object" |
| 38 |
class="oe_stat_button" |
| 39 |
icon="fa-undo" |
| 40 |
invisible="refund_orders_count == 0"> |
| 41 |
<field name="refund_orders_count" widget="statinfo" string="Refunds" /> |
| 42 |
</button> |
| 43 |
<button name="action_view_refunded_order" |
| 44 |
type="object" |
| 45 |
class="oe_stat_button" |
| 46 |
icon="fa-shopping-cart " |
| 47 |
invisible="not refunded_order_id"> |
| 48 |
<field name="refunded_order_id" widget="statinfo" string="Refunded Orders" /> |
| 49 |
</button> |
| 50 |
</div> |
| 51 |
<group col="4" colspan="4" name="order_fields"> |
| 52 |
<field name="name"/> |
| 53 |
<field name="source" readonly="True" /> |
| 54 |
<field name="date_order"/> |
| 55 |
<field name="session_id" readonly="state != 'draft'"/> |
| 56 |
<field string="User" name="user_id" readonly="account_move or state == 'done'"/> |
| 57 |
<field name="order_edit_tracking" invisible="1"/> |
| 58 |
<field name="is_edited" readonly="1" invisible="not order_edit_tracking"/> |
| 59 |
<field name="partner_id" context="{'res_partner_search_mode': 'customer'}" readonly="account_move"/> |
| 60 |
<field name="fiscal_position_id" options="{'no_create': True}" readonly="state != 'draft'"/> |
| 61 |
</group> |
| 62 |
<notebook colspan="4"> |
| 63 |
<page string="Products" name="products"> |
| 64 |
<field name="lines" colspan="4" nolabel="1" readonly="state != 'draft'" mode="list,kanban"> |
| 65 |
<kanban class="o_kanban_mobile"> |
| 66 |
<t t-name="card" class="row g-0"> |
| 67 |
<aside class="col-2 pe-3"> |
| 68 |
<field name="product_id" widget="image" options="{'preview_image': 'image_128'}"/> |
| 69 |
</aside> |
| 70 |
<main class="col"> |
| 71 |
<div class="d-flex"> |
| 72 |
<field name="full_product_name" class="fw-bolder"/> |
| 73 |
<field name="price_subtotal_incl" widget="monetary" class="ms-auto me-3"/> |
| 74 |
</div> |
| 75 |
<div class="text-muted"> |
| 76 |
Quantity: <field name="qty"/> <field name="product_uom_id" groups="uom.group_uom"/> |
| 77 |
</div> |
| 78 |
<div class="text-muted"> |
| 79 |
Unit price: <field name="price_unit" widget="monetary"/> |
| 80 |
</div> |
| 81 |
</main> |
| 82 |
</t> |
| 83 |
</kanban> |
| 84 |
<list string="Order lines" editable="bottom"> |
| 85 |
<field name="name" column_invisible="True"/> |
| 86 |
<field name="full_product_name" optional="hide" readonly="1"/> |
| 87 |
<field name="product_id" widget="product_label_section_and_note_field" /> |
| 88 |
<field name="is_edited" readonly="1" column_invisible="not parent.order_edit_tracking"/> |
| 89 |
<field name="pack_lot_ids" widget="many2many_tags" groups="stock.group_production_lot"/> |
| 90 |
<field name="qty"/> |
| 91 |
<field name="customer_note" optional="hide"/> |
| 92 |
<field name="product_uom_id" groups="uom.group_uom"/> |
| 93 |
<field name="price_unit" widget="monetary"/> |
| 94 |
<field name="is_total_cost_computed" column_invisible="True"/> |
| 95 |
<field name="total_cost" invisible="not is_total_cost_computed" optional="hide" widget="monetary"/> |
| 96 |
<field name="margin" invisible="not is_total_cost_computed" optional="hide" widget="monetary"/> |
| 97 |
<field name="margin_percent" invisible="not is_total_cost_computed" optional="hide" widget="percentage"/> |
| 98 |
<field name="discount" width="50px" string="Disc.%"/> |
| 99 |
<field name="tax_ids_after_fiscal_position" widget="many2many_tax_tags" string="Taxes"/> |
| 100 |
<field name="tax_ids" widget="many2many_tax_tags" column_invisible="True"/> |
| 101 |
<field name="price_subtotal" widget="monetary" force_save="1"/> |
| 102 |
<field name="price_subtotal_incl" widget="monetary" force_save="1"/> |
| 103 |
<field name="currency_id" column_invisible="True"/> |
| 104 |
<field name="refunded_qty" optional="hide" /> |
| 105 |
</list> |
| 106 |
<form string="Order lines"> |
| 107 |
<group col="4"> |
| 108 |
<field name="product_id" /> |
| 109 |
<field name="qty"/> |
| 110 |
<field name="discount"/> |
| 111 |
<field name="price_unit" widget="monetary"/> |
| 112 |
<field name="price_subtotal" invisible="1" widget="monetary" force_save="1"/> |
| 113 |
<field name="price_subtotal_incl" invisible="1" widget="monetary" force_save="1"/> |
| 114 |
<field name="tax_ids_after_fiscal_position" widget="many2many_tax_tags" string="Taxes"/> |
| 115 |
<field name="tax_ids" widget="many2many_tax_tags" invisible="1"/> |
| 116 |
<field name="pack_lot_ids" widget="many2many_tags" groups="stock.group_production_lot"/> |
| 117 |
<field name="notice"/> |
| 118 |
<field name="currency_id" invisible="1"/> |
| 119 |
<field name="full_product_name" readonly="1" /> |
| 120 |
</group> |
| 121 |
</form> |
| 122 |
</field> |
| 123 |
<group class="oe_subtotal_footer" colspan="2" name="order_total"> |
| 124 |
<field name="amount_tax" |
| 125 |
force_save="1" |
| 126 |
widget="monetary"/> |
| 127 |
<field name="amount_total" |
| 128 |
force_save="1" |
| 129 |
class="h3" |
| 130 |
widget="monetary"/> |
| 131 |
<div class="oe_inline o_td_label"> |
| 132 |
<label class="o_form_label_readonly" for="amount_paid" string="Total Paid (with rounding)"/> |
| 133 |
</div> |
| 134 |
<field name="amount_paid" |
| 135 |
nolabel="1" |
| 136 |
widget="monetary" |
| 137 |
class="h3" |
| 138 |
invisible="amount_paid == 'amount_total'" |
| 139 |
readonly="state != 'draft'"/> |
| 140 |
<label for="margin"/> |
| 141 |
<div class="text-nowrap"> |
| 142 |
<field name="margin" class="oe_inline" invisible="not is_total_cost_computed"/> |
| 143 |
<span class="oe_inline" invisible="not is_total_cost_computed"> |
| 144 |
(<field name="margin_percent" nolabel="1" class="oe_inline" widget="percentage"/>) |
| 145 |
</span> |
| 146 |
<span class="float-end" invisible="is_total_cost_computed">To be determined</span> |
| 147 |
</div> |
| 148 |
<field name="is_total_cost_computed" invisible="1"/> |
| 149 |
<field name="currency_id" invisible="1"/> |
| 150 |
</group> |
| 151 |
<div class="clearfix"/> |
| 152 |
</page> |
| 153 |
<page string="Payments" name="payments"> |
| 154 |
<field name="payment_ids" colspan="4" nolabel="1" readonly="account_move or state == 'done' or nb_print > 0"> |
| 155 |
<list string="Payments" create="1" editable="bottom" open_form_view="True"> |
| 156 |
<field name="currency_id" column_invisible="True" /> |
| 157 |
<field name="payment_date"/> |
| 158 |
<field name="payment_method_id" domain="[('id', 'in', parent.available_payment_method_ids)]" /> |
| 159 |
<field name="amount"/> |
| 160 |
<field name="payment_method_payment_mode" optional="hide"/> |
| 161 |
<field name="card_no" invisible="not card_no"/> |
| 162 |
<field name="card_brand" string="Card's Brand" invisible="not card_brand or not card_no"/> |
| 163 |
<field name="cardholder_name" invisible="not cardholder_name or not card_no"/> |
| 164 |
</list> |
| 165 |
</field> |
| 166 |
<group class="oe_subtotal_footer" colspan="2" name="order_total"> |
| 167 |
<field name="amount_total" class="h3" widget="monetary"/> |
| 168 |
<field name="amount_paid" widget="monetary" class="h3" readonly="1" /> |
| 169 |
<field name="amount_difference" widget="monetary" force_save="1" /> |
| 170 |
</group> |
| 171 |
</page> |
| 172 |
<page name="extra" string="Extra Info"> |
| 173 |
<group > |
| 174 |
<group |
| 175 |
string="Accounting" |
| 176 |
groups="account.group_account_manager" |
| 177 |
invisible="not session_move_id or account_move"> |
| 178 |
<field name="session_move_id" readonly="1" /> |
| 179 |
</group> |
| 180 |
<group string="Other Information" name="other_information"> |
| 181 |
<field name="pos_reference"/> |
| 182 |
<field name="tracking_number"/> |
| 183 |
<field name="country_code" invisible="1"/> |
| 184 |
<field name="company_id" groups="base.group_multi_company"/> |
| 185 |
<field name="pricelist_id" groups="product.group_product_pricelist" readonly="state != 'draft'"/> |
| 186 |
<field name="preset_id" readonly="True" /> |
| 187 |
<field name="preset_time" readonly="True" label="Preset time" invisible="not preset_time" /> |
| 188 |
<field name="floating_order_name" invisible="not floating_order_name"/> |
| 189 |
</group> |
| 190 |
<group string="Contact Info"> |
| 191 |
<group class="w-75"> |
| 192 |
<label for="email"/> |
| 193 |
<div class="o_row"> |
| 194 |
<field name="email"/> |
| 195 |
<button name="action_send_mail" icon="fa-envelope fa-lg" type="object" class="btn-link" title="email" invisible="not email"/> |
| 196 |
</div> |
| 197 |
<label for="mobile"/> |
| 198 |
<div class="o_row"> |
| 199 |
<field name="mobile"/> |
| 200 |
</div> |
| 201 |
</group> |
| 202 |
</group> |
| 203 |
</group> |
| 204 |
</page> |
| 205 |
<page string="Customer Note" name="notes"> |
| 206 |
<field name="general_customer_note" readonly="1"/> |
| 207 |
</page> |
| 208 |
</notebook> |
| 209 |
</sheet> |
| 210 |
<chatter groups="point_of_sale.group_pos_manager"/> |
| 211 |
</form> |
| 212 |
</field> |
| 213 |
</record> |
| 214 |
|
| 215 |
<record model="ir.ui.view" id="view_pos_order_kanban"> |
| 216 |
<field name="name">pos.order.kanban</field> |
| 217 |
<field name="model">pos.order</field> |
| 218 |
<field name="arch" type="xml"> |
| 219 |
<kanban class="o_kanban_mobile" create="0" sample="1"> |
| 220 |
<field name="currency_id"/> |
| 221 |
<templates> |
| 222 |
<t t-name="card"> |
| 223 |
<div class="d-flex align-items-baseline mb-1"> |
| 224 |
<span t-if="record.partner_id.value"> |
| 225 |
<field name="partner_id" class="fw-bolder me-2"/> |
| 226 |
</span> |
| 227 |
<span t-else=""> |
| 228 |
<field name="name" class="fw-bolder me-2"/> |
| 229 |
</span> |
| 230 |
<field name="amount_total" widget="monetary" class="fw-bolder ms-auto flex-shrink-0"/> |
| 231 |
</div> |
| 232 |
<field name="pos_reference" /> |
| 233 |
<footer class="flex-wrap"> |
| 234 |
<field name="date_order" class="text-muted text-nowrap"/> |
| 235 |
<field name="state" widget="label_selection" options="{'classes': {'draft': 'default', |
| 236 |
'done': 'success', 'cancel': 'danger'}}" class="ms-auto text-truncate"/> |
| 237 |
</footer> |
| 238 |
</t> |
| 239 |
</templates> |
| 240 |
</kanban> |
| 241 |
</field> |
| 242 |
</record> |
| 243 |
<record model="ir.ui.view" id="view_pos_order_pivot"> |
| 244 |
<field name="name">pos.order.pivot</field> |
| 245 |
<field name="model">pos.order</field> |
| 246 |
<field name="arch" type="xml"> |
| 247 |
<pivot string="PoS Orders" sample="1"> |
| 248 |
<field name="date_order" type="row"/> |
| 249 |
<field name="margin"/> |
| 250 |
<field name="margin_percent" invisible="1"/> |
| 251 |
<field name="amount_total" type="measure"/> |
| 252 |
</pivot> |
| 253 |
</field> |
| 254 |
</record> |
| 255 |
|
| 256 |
<record id="action_pos_pos_form" model="ir.actions.act_window"> |
| 257 |
<field name="name">Orders</field> |
| 258 |
<field name="res_model">pos.order</field> |
| 259 |
<field name="path">pos-orders</field> |
| 260 |
<field name="view_mode">list,form,kanban,pivot</field> |
| 261 |
<field name="view_id" eval="False"/> |
| 262 |
<field name="domain">[]</field> |
| 263 |
<field name="help" type="html"> |
| 264 |
<p class="o_view_nocontent_empty_folder"> |
| 265 |
No orders found |
| 266 |
</p><p> |
| 267 |
To record new orders, start a new session. |
| 268 |
</p> |
| 269 |
</field> |
| 270 |
</record> |
| 271 |
|
| 272 |
<record id="action_pos_sale_graph" model="ir.actions.act_window"> |
| 273 |
<field name="name">Orders</field> |
| 274 |
<field name="res_model">pos.order</field> |
| 275 |
<field name="view_mode">graph,list,form,kanban,pivot</field> |
| 276 |
<field name="domain">[('state', 'not in', ['draft', 'cancel']), ('account_move', '=', False)]</field> |
| 277 |
<field name="help" type="html"> |
| 278 |
<p class="o_view_nocontent_smiling_face"> |
| 279 |
No data yet! |
| 280 |
</p><p> |
| 281 |
Create a new POS order |
| 282 |
</p> |
| 283 |
</field> |
| 284 |
</record> |
| 285 |
|
| 286 |
<record id="view_pos_order_tree" model="ir.ui.view"> |
| 287 |
<field name="name">pos.order.list</field> |
| 288 |
<field name="model">pos.order</field> |
| 289 |
<field name="arch" type="xml"> |
| 290 |
<list string="POS Orders" create="0" sample="1" decoration-info="state == 'draft'" decoration-muted="state == 'cancel'" duplicate="0"> |
| 291 |
<header> |
| 292 |
<button name="action_create_invoices" type="object" string="Create Invoices"/> |
| 293 |
</header> |
| 294 |
<field name="currency_id" column_invisible="True"/> |
| 295 |
<field name="name" decoration-bf="1"/> |
| 296 |
<field name="session_id" readonly="state != 'draft'"/> |
| 297 |
<field name="date_order"/> |
| 298 |
<field name="config_id" /> |
| 299 |
<field name="pos_reference"/> |
| 300 |
<field name="tracking_number" optional="hide"/> |
| 301 |
<field name="partner_id"/> |
| 302 |
<field name="user_id" widget="many2one_avatar_user" readonly="account_move or state == 'done'"/> |
| 303 |
<field name="amount_total" sum="Amount total" widget="monetary" decoration-bf="1"/> |
| 304 |
<field name="state" widget="badge" decoration-info="state == 'draft'" decoration-success="state not in ('draft','cancel')"/> |
| 305 |
<field name="invoice_status" widget="badge" decoration-success="invoice_status == 'invoiced'" invisible="invoice_status == 'to_invoice'"/> |
| 306 |
<field name="is_edited" readonly="1" optional="hide"/> |
| 307 |
</list> |
| 308 |
</field> |
| 309 |
</record> |
| 310 |
<record id="view_pos_order_tree_no_session_id" model="ir.ui.view"> |
| 311 |
<field name="name">pos.order.tree_no_session_id</field> |
| 312 |
<field name="model">pos.order</field> |
| 313 |
<field name="mode">primary</field> |
| 314 |
<field name="priority">1000</field> |
| 315 |
<field name="inherit_id" ref="point_of_sale.view_pos_order_tree"/> |
| 316 |
<field name="arch" type="xml"> |
| 317 |
<xpath expr="//field[@name='session_id']" position="replace"></xpath> |
| 318 |
</field> |
| 319 |
</record> |
| 320 |
|
| 321 |
<record id="view_pos_order_search" model="ir.ui.view"> |
| 322 |
<field name="name">pos.order.search.view</field> |
| 323 |
<field name="model">pos.order</field> |
| 324 |
<field name="arch" type="xml"> |
| 325 |
<search string="Point of Sale Orders"> |
| 326 |
<field name="name"/> |
| 327 |
<field name="config_id"/> |
| 328 |
</search> |
| 329 |
</field> |
| 330 |
</record> |
| 331 |
|
| 332 |
<menuitem id="menu_point_ofsale" parent="menu_point_of_sale" action="action_pos_pos_form" sequence="2" groups="group_pos_manager,group_pos_user"/> |
| 333 |
|
| 334 |
<record id="view_pos_order_line" model="ir.ui.view"> |
| 335 |
<field name="name">pos.order.line.list</field> |
| 336 |
<field name="model">pos.order.line</field> |
| 337 |
<field name="arch" type="xml"> |
| 338 |
<list string="POS Order lines"> |
| 339 |
<field name="product_id" readonly="1"/> |
| 340 |
<field name="qty" readonly="1" sum="Total qty"/> |
| 341 |
<field name="discount" readonly="1"/> |
| 342 |
<field name="price_unit" readonly="1" widget="monetary"/> |
| 343 |
<field name="price_subtotal" readonly="1" sum="Sum of subtotals" widget="monetary"/> |
| 344 |
<field name="price_subtotal_incl" readonly="1" sum="Sum of subtotals" widget="monetary"/> |
| 345 |
<field name="create_date" readonly="1"/> |
| 346 |
<field name="currency_id" column_invisible="True"/> |
| 347 |
</list> |
| 348 |
</field> |
| 349 |
</record> |
| 350 |
|
| 351 |
<record id="view_pos_order_line_form" model="ir.ui.view"> |
| 352 |
<field name="name">pos.order.line.form</field> |
| 353 |
<field name="model">pos.order.line</field> |
| 354 |
<field name="arch" type="xml"> |
| 355 |
<form string="POS Order line"> |
| 356 |
<group col="4"> |
| 357 |
<field name="product_id" /> |
| 358 |
<field name="qty" /> |
| 359 |
<field name="discount"/> |
| 360 |
<field name="price_unit" widget="monetary"/> |
| 361 |
<field name="create_date" /> |
| 362 |
<field name="currency_id"/> |
| 363 |
</group> |
| 364 |
</form> |
| 365 |
</field> |
| 366 |
</record> |
| 367 |
|
| 368 |
<record id="action_pos_order_line" model="ir.actions.act_window"> |
| 369 |
<field name="name">Sale line</field> |
| 370 |
<field name="res_model">pos.order.line</field> |
| 371 |
<field name="view_mode">list</field> |
| 372 |
<field name="view_id" ref="view_pos_order_line"/> |
| 373 |
</record> |
| 374 |
|
| 375 |
<record id="action_pos_order_line_form" model="ir.actions.act_window"> |
| 376 |
<field name="name">Sale line</field> |
| 377 |
<field name="res_model">pos.order.line</field> |
| 378 |
<field name="view_mode">form,list</field> |
| 379 |
<field name="view_id" ref="view_pos_order_line_form"/> |
| 380 |
</record> |
| 381 |
|
| 382 |
<record id="action_pos_order_line_day" model="ir.actions.act_window"> |
| 383 |
<field name="name">Sale line</field> |
| 384 |
<field name="res_model">pos.order.line</field> |
| 385 |
<field name="view_mode">list</field> |
| 386 |
<field name="view_id" ref="view_pos_order_line"/> |
| 387 |
<field name="domain">[('create_date', '>=', 'today'), ('create_date', '<', 'today +1d')]</field> |
| 388 |
</record> |
| 389 |
|
| 390 |
<record id="view_pos_order_tree_all_sales_lines" model="ir.ui.view"> |
| 391 |
<field name="name">pos.order.line.all.sales.list</field> |
| 392 |
<field name="model">pos.order.line</field> |
| 393 |
<field name="arch" type="xml"> |
| 394 |
<list string="POS Orders lines"> |
| 395 |
<field name="order_id" /> |
| 396 |
<field name="create_date" /> |
| 397 |
<field name="product_id" /> |
| 398 |
<field name="qty" /> |
| 399 |
<field name="price_unit" widget="monetary"/> |
| 400 |
<field name="currency_id" column_invisible="True"/> |
| 401 |
</list> |
| 402 |
</field> |
| 403 |
</record> |
| 404 |
<record id="action_pos_all_sales_lines" model="ir.actions.act_window"> |
| 405 |
<field name="name">All sales lines</field> |
| 406 |
<field name="res_model">pos.order.line</field> |
| 407 |
<field name="view_id" ref="view_pos_order_tree_all_sales_lines" /> |
| 408 |
</record> |
| 409 |
|
| 410 |
<record id="view_pos_order_filter" model="ir.ui.view"> |
| 411 |
<field name="name">pos.order.list.select</field> |
| 412 |
<field name="model">pos.order</field> |
| 413 |
<field name="arch" type="xml"> |
| 414 |
<search string="Search Sales Order"> |
| 415 |
<field name="name"/> |
| 416 |
<field name="pos_reference"/> |
| 417 |
<field name="date_order"/> |
| 418 |
<field name="tracking_number"/> |
| 419 |
<field name="user_id"/> |
| 420 |
<field name="partner_id"/> |
| 421 |
<field name="session_id"/> |
| 422 |
<field name="config_id"/> |
| 423 |
<field name="lines" string="Product" filter_domain="[('lines.product_id', 'ilike', self)]"/> |
| 424 |
<filter string="Invoiced" name="invoiced" domain="[('account_move', '!=', False)]"/> |
| 425 |
<filter string="Posted" name="posted" domain="[('state', '=', 'done')]"/> |
| 426 |
<filter string="Cancelled" name="cancelled" domain="[('state', '=', 'cancel')]"/> |
| 427 |
<separator/> |
| 428 |
<filter string="Order Date" name="order_date" date="date_order"/> |
| 429 |
<group> |
| 430 |
<filter string="Session" name="session" domain="[]" context="{'group_by': 'session_id'}"/> |
| 431 |
<filter string="User" name="user_id" domain="[]" context="{'group_by': 'user_id'}"/> |
| 432 |
<filter string="Point of Sale" name="config_id" domain="[]" context="{'group_by': 'config_id'}"/> |
| 433 |
<filter string="Customer" name="customer" domain="[]" context="{'group_by': 'partner_id'}"/> |
| 434 |
<filter string="Status" name="status" domain="[]" context="{'group_by': 'state'}"/> |
| 435 |
<filter string="Order Date" name="order_month" domain="[]" context="{'group_by': 'date_order'}"/> |
| 436 |
</group> |
| 437 |
</search> |
| 438 |
</field> |
| 439 |
</record> |
| 440 |
|
| 441 |
<!-- REMOVE IN MASTER --> |
| 442 |
<record id="pos_rounding_form_view_inherited" model="ir.ui.view"> |
| 443 |
<field name="name">pos.cash.rounding.form.inherited</field> |
| 444 |
<field name="model">account.cash.rounding</field> |
| 445 |
<field name="inherit_id" ref="account.rounding_form_view"/> |
| 446 |
<field name="arch" type="xml"> |
| 447 |
<xpath expr="//div[hasclass('oe_title')]" position="before"> |
| 448 |
<div class="o_notification_alert alert alert-warning" role="alert" invisible="1"> |
| 449 |
The Point of Sale only supports the "add a rounding line" rounding strategy. |
| 450 |
</div> |
| 451 |
</xpath> |
| 452 |
</field> |
| 453 |
</record> |
| 454 |
|
| 455 |
<record model="ir.actions.server" id="pos_order_set_cancel"> |
| 456 |
<field name="name">Cancel Order</field> |
| 457 |
<field name="model_id" ref="point_of_sale.model_pos_order"/> |
| 458 |
<field name="group_ids" eval="[(4, ref('point_of_sale.group_pos_user'))]"/> |
| 459 |
<field name="binding_model_id" ref="point_of_sale.model_pos_order" /> |
| 460 |
<field name="state">code</field> |
| 461 |
<field name="binding_view_types">list,kanban,form</field> |
| 462 |
<field name="code"> |
| 463 |
if records: |
| 464 |
action = records.action_pos_order_cancel() |
| 465 |
</field> |
| 466 |
</record> |
| 467 |
|
| 468 |
<record id="model_pos_order_send_mail" model="ir.actions.server"> |
| 469 |
<field name="name">Send Email</field> |
| 470 |
<field name="model_id" ref="point_of_sale.model_pos_order"/> |
| 471 |
<field name="binding_model_id" ref="point_of_sale.model_pos_order"/> |
| 472 |
<field name="binding_view_types">list,kanban</field> |
| 473 |
<field name="state">code</field> |
| 474 |
<field name="code"> |
| 475 |
if records: |
| 476 |
action = records.with_context(hide_default_template=True).action_send_mail() |
| 477 |
</field> |
| 478 |
</record> |
| 479 |
</odoo> |