Debian Codegraph @

addons/l10n_in_ewaybill_irn/views/l10n_in_ewaybill_views.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <record id="view_l10n_in_ewaybill_irn_inherit" model="ir.ui.view">
4 <field name="name">l10n.in.ewaybill.irn.form.inherit</field>
5 <field name="model">l10n.in.ewaybill</field>
6 <field name="inherit_id" ref="l10n_in_ewaybill.l10n_in_ewaybill_form_view"/>
7 <field name="arch" type="xml">
8 <xpath expr="//group[@name='document_details']" position="attributes">
9 <attribute name="invisible">state == 'pending' and is_process_through_irn or is_sent_through_irn</attribute>
10 </xpath>
11 <xpath expr="//field[@name='type_id']" position="attributes">
12 <attribute name="required">(
13 (state == 'pending' and not is_process_through_irn) or
14 (state != 'pending' and not is_sent_through_irn)
15 )
16 </attribute>
17 </xpath>
18 </field>
19 </record>
20 </odoo>