comprobante.xml
3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<odoo>
<data>
<record id="view_form_inherit_comprobante_recibido_ui" model="ir.ui.view">
<field name="name">Comprobante</field>
<field name="model">asw.comprobante</field>
<field name="inherit_id" ref="asw_tpv.view_form_comprobante_recibido_ui"/>
<field name="arch" type="xml">
<data>
<xpath expr="//button[@name='validar']" position="before">
<button name="abrir_wizard_ppf" class='btn btn-success' string="+ Producto por precio final" type="object" attrs="{'invisible':[('comp_estado','!=','b')]}"/>
<button name="recalcularTotal" class='btn btn-warning' string="Recalcular Monto" type="object" attrs="{'invisible':[('comp_estado','!=','b')]}"/>
</xpath>
<xpath expr="//group[1]" position="after">
<group string="Referencias" col="2">
<!--<field name="referencia_corr" widget="many2many_tags" />-->
<field name="referencia_compras_corr" widget="many2many_tags" />
</group>
</xpath>
</data>
</field>
</record>
<record id="view_form_inherit_comprobante_ui" model="ir.ui.view">
<field name="name">Comprobante</field>
<field name="model">asw.comprobante</field>
<field name="inherit_id" ref="asw_tpv.view_form_comprobante_ui"/>
<field name="arch" type="xml">
<data>
<xpath expr="//button[@name='validar']" position="after">
<button name="abrir_wizard_ppf" class='btn btn-success' string="+ Producto por precio final" type="object" attrs="{'invisible':[('comp_estado','!=','b')]}"/>
<button name="recalcularTotal" class='btn btn-warning' string="Recalcular Monto" type="object" attrs="{'invisible':[('comp_estado','!=','b')]}"/>
<button name="impresion_directa" class='btn btn-info' string="Impresion directa" type="object" attrs="{'invisible':[('comp_estado','=','b')]}"/>
<button name="abrir_wizard_cn" type="object" class="btn btn-info" string="Corregir núm. AFIP"/>>
</xpath>
</data>
</field>
</record>
<record id="view_form_inherit_comprobante_afip_ui" model="ir.ui.view">
<field name="name">Comprobante</field>
<field name="model">asw.comprobante</field>
<field name="inherit_id" ref="asw_afipws_fe.view_invoice_afipws_fe_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='afip_xml_response']" position="after">
<!--<field name="qr" />-->
<field name="afip_qr" />
<field name="afip_qr_img" widget="image"/>
</xpath>
</data>
</field>
</record>
<record id="view_inherit_search_comprobante" model="ir.ui.view">
<field name="name">Comprobante</field>
<field name="model">asw.comprobante</field>
<field name="inherit_id" ref="asw_tpv.view_search_comprobante"/>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='comp_fecha']" position="after">
<field name="referencia_corr"/>
</xpath>
<xpath expr="//group/filter[11]" position="after">
<filter string="Referencia Compra" domain="[]" context="{'group_by': 'referencia_corr'}"/>
</xpath>
</data>
</field>
</record>
</data>
</odoo>