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.

49 lines
2.4 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ********************************************************************** -->
  3. <!--Point Of Sale - Store Draft Orders Module for Odoo -->
  4. <!--Copyright (C) 2015-Today GRAP (http://www.grap.coop) -->
  5. <!--@author Sylvain LE GAL (https://twitter.com/legalsylvain) -->
  6. <!--This program is free software: you can redistribute it and/or modify -->
  7. <!--it under the terms of the GNU Affero General Public License as -->
  8. <!--published by the Free Software Foundation, either version 3 of the -->
  9. <!--License, or (at your option) any later version. -->
  10. <!--This program is distributed in the hope that it will be useful, -->
  11. <!--but WITHOUT ANY WARRANTY; without even the implied warranty of -->
  12. <!--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
  13. <!--GNU Affero General Public License for more details. -->
  14. <!--You should have received a copy of the GNU Affero General Public License-->
  15. <!--along with this program. If not, see <http://www.gnu.org/licenses/>. -->
  16. <!-- ********************************************************************** -->
  17. <openerp>
  18. <data>
  19. <!-- Model: pos.order -->
  20. <record id="pos_order_view_form" model="ir.ui.view">
  21. <field name="model">pos.order</field>
  22. <field name="inherit_id" ref="point_of_sale.view_pos_order_tree"/>
  23. <field name="arch" type="xml">
  24. <field name="state" position="after">
  25. <field name="is_partial_paid" invisible="1" />
  26. </field>
  27. <xpath expr="//tree[@string='POS Orders']" position="attributes">
  28. <attribute name="colors">red: is_partial_paid==True; blue: state=='draft'; gray: state in ('done','cancel'); black: state not in ('done','cancel')</attribute>
  29. </xpath>
  30. </field>
  31. </record>
  32. <!-- Model: pos.config -->
  33. <record id="pos_config_view_form" model="ir.ui.view">
  34. <field name="model">pos.config</field>
  35. <field name="inherit_id" ref="point_of_sale.view_pos_config_form"/>
  36. <field name="arch" type="xml">
  37. <field name="group_by" position="after">
  38. <field name="allow_store_draft_order"/>
  39. </field>
  40. </field>
  41. </record>
  42. </data>
  43. </openerp>