LaOsaCoop/Odoo16#14 migration pos_customer_required
This commit is contained in:
parent
b062c383d5
commit
08fca37c6d
27 changed files with 1438 additions and 0 deletions
16
pos_customer_required/views/assets.xml
Normal file
16
pos_customer_required/views/assets.xml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) -->
|
||||
<odoo>
|
||||
<template id="assets" inherit_id="point_of_sale.assets">
|
||||
<xpath expr=".">
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/pos_customer_required/static/src/js/PaymentScreen.js"
|
||||
/>
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="/pos_customer_required/static/src/js/ProductScreen.js"
|
||||
/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
27
pos_customer_required/views/pos_config_view.xml
Normal file
27
pos_customer_required/views/pos_config_view.xml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2004 apertoso NV - Jos DE GRAEVE <Jos.DeGraeve@apertoso.be>
|
||||
Copyright 2016 La Louve - Sylvain LE GAL <https://twitter.com/legalsylvain>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) -->
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="view_pos_config_form">
|
||||
<field name="name">view.pos.config.form</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">
|
||||
<xpath expr="//div[@id='pos_interface_section']" position="inside">
|
||||
<div class="col-12 col-lg-6 o_setting_box" id="require_customer">
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="require_customer" string="Require Customer" />
|
||||
<div class="content-group mt16">
|
||||
<field
|
||||
name="require_customer"
|
||||
class="o_light_label"
|
||||
widget="radio"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
21
pos_customer_required/views/pos_order_view.xml
Normal file
21
pos_customer_required/views/pos_order_view.xml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2004 apertoso NV - Jos DE GRAEVE <Jos.DeGraeve@apertoso.be>
|
||||
Copyright 2016 La Louve - Sylvain LE GAL <https://twitter.com/legalsylvain>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) -->
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="view_pos_order_form">
|
||||
<field name="name">view.pos.order.form</field>
|
||||
<field name="model">pos.order</field>
|
||||
<field name="inherit_id" ref="point_of_sale.view_pos_pos_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//sheet" position="inside">
|
||||
<field name="require_customer" invisible="1" />
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='partner_id']" position="attributes">
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'readonly': [('state', '=', 'invoiced')], 'required': [('require_customer', '!=', 'no')]}</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue