flectra/addons/point_of_sale/views/account_statement_view.xml
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

35 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_account_journal_pos_user_form" model="ir.ui.view">
<field name="name">account.journal.pos.user.form.inherit</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.view_account_journal_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='type']" position="after">
<field name="journal_user" attrs="{'invisible': [('type', 'not in', ['bank', 'cash'])]}"/>
</xpath>
<xpath expr="//notebook[last()]" position="inside">
<page string="Point of Sale" attrs="{'invisible': [('journal_user', '=', False)]}">
<group>
<group name="amount_authorized" attrs="{'invisible': [('type', '!=', 'cash')]}">
<field name="amount_authorized_diff"/>
</group>
</group>
</page>
</xpath>
</field>
</record>
<record id="view_account_bank_journal_form_inherited_pos" model="ir.ui.view">
<field name="name">account.bank.journal.form.inherit.pos</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.view_account_bank_journal_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='advanced_info']" position="inside">
<group string="Point of Sale">
<field name="journal_user"/>
</group>
</xpath>
</field>
</record>
</odoo>