Files
odoo_source/addons/pos_discount/views/res_config_settings_views.xml
T
Joseph Caburnay fa111d449d [IMP] point_of_sale,*pos*: configure pos from general settings
Purpose:

- Move PoS settings in general settings to be consistent with the rest
  of Odoo (PoS being the only app where settings are split in two locations)
- Clean settings by enabling obvious settings or dropping unnecessary ones.

closes odoo/odoo#84719

Task-id: 2753430
Related: odoo/upgrade#3260
Related: odoo/enterprise#24425
Signed-off-by: Masereel Pierre <pim@odoo.com>
2022-06-03 16:39:51 +02:00

21 lines
1012 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.pos_discount</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="point_of_sale.res_config_settings_view_form" />
<field name="arch" type="xml">
<div id="warning_text_pos_discount" position="replace">
<div class="row">
<label string="Discount Product" for="pos_discount_product_id" class="col-lg-3 o_light_label"/>
<field name="pos_discount_product_id" attrs="{'required':[('pos_module_pos_discount', '=', True)]}"/>
</div>
<div class="row">
<label string="Discount %" for="pos_discount_pc" class="col-lg-3 o_light_label"/>
<field name="pos_discount_pc"/>
</div>
</div>
</field>
</record>
</odoo>