Created
July 14, 2017 19:49
-
-
Save drkpkg/c576275723cc6a4530a3ffd93962168c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<openerp> | |
<data> | |
<!-- Vista de formulario --> | |
<record model="ir.ui.view" id="contadesk_fv_factura_form"> | |
<field name="name">Virtual Invoice</field> | |
<field name="model">contadesk.factura.virtual</field> | |
<field name="type">form</field> | |
<field name="arch" type="xml"> | |
<form string="Virtual Invoice" version="7.0" create="0"> | |
<header> | |
<button name="validar" string="Valid" class="oe_highlight" | |
states="draft" type="object" /> | |
<button name="imprimir" | |
string="Print" | |
icon="STOCK_PRINT" | |
states="V" | |
type="object"/> | |
<button name="anular" | |
string="Anular" | |
confirm="Este Cambio anula permanentemente la factura fiscal. Desea continuar?" | |
states="V" | |
type="object" | |
groups="contadesk_facturacion.contadesk_fv_void"/> | |
<field name="state" | |
widget="statusbar" | |
statusbar_visible="draft,V,A" | |
statusbar_colors="{'E':'blue','N':'blue','C':'blue'}"/> | |
<field name="printed" invisible="1" /> | |
</header> | |
<sheet> | |
<group col="4"> | |
<group colspan="4" col="4"> | |
<group colspan="3" col="2"> | |
<h1> | |
<label string="Invoice" />: | |
<field name="name" readonly="1" class="oe_inline" /> | |
</h1> | |
</group> | |
<group colspan="1" col="1"> | |
<field name="qr_file" | |
widget="image" | |
class="oe_avatar" | |
attrs="{'invisible':[('tipo_factura','in',['man'])]}" | |
nolabel="1" /> | |
<button name="generate_qr" | |
string="Generate QR" | |
class="oe_link" | |
type="object" | |
attrs="{'invisible':['|',('tipo_factura','in',['man']),('state','not in',['draft','valid'])]}"/> | |
</group> | |
</group> | |
<group colspan="2"> | |
<field name="company_id" readonly="1" /> | |
<field name="warehouse_id" invisible="1" /> | |
<field name="dosificacion_id" | |
domain="[('company_id','=',company_id),('state','=','VI')]" class="oe_edit_only" | |
readonly="1"/> | |
<field name="partner_id" | |
readonly="1"/> | |
<field name="cod_cliente" | |
attrs="{'readonly': [('state', '!=', 'draft')]}"/> | |
<field name="cliente_id" | |
domain="[('customer','=',True)]" | |
class="oe_edit_only" | |
attrs="{'readonly': [('state', '!=', 'draft')]}"/> | |
<field name="nit_cliente" | |
attrs="{'readonly': [('state', '!=', 'draft')]}"/> | |
<field name="razon_cliente" | |
attrs="{'readonly': [('state', '!=', 'draft')]}"/> | |
<field name="direc_cliente" | |
attrs="{'readonly': [('state', '!=', 'draft')]}"/> | |
<field name="lugar" | |
attrs="{'readonly': [('state', '!=', 'draft')]}"/> | |
<field name="fecha_emision" | |
attrs="{'readonly': [('state', '!=', 'draft')]}"/> | |
</group> | |
<group colspan="2"> | |
<field name="nit_emp" readonly="1" /> | |
<field name="razon_social" readonly="1"/> | |
<field name="numero_factura" readonly="1"/> | |
<field name="num_autorizacion" readonly="1"/> | |
<field name="codigo_control" | |
readonly="1" | |
attrs="{'invisible':[('tipo_factura','in',['man'])]}"/> | |
<field name="actividad_id" | |
readonly="1"/> | |
<field name="fecha_limite" readonly="1" | |
attrs="{'invisible':[('tipo_factura','in',['man'])]}"/> | |
</group> | |
<group colspan="2"> | |
<field name="tipo_factura" readonly="1"/> | |
<field name="doc_origen" | |
attrs="{'readonly': [('state', '!=', 'draft')]}"/> | |
<field name="currency_id" | |
attrs="{'readonly': [('state', '!=', 'draft')]}"/> | |
</group> | |
</group> | |
<notebook> | |
<page string="Detalle"> | |
<field name="line_ids" nolabel="1" | |
attrs="{'readonly': [('state', '!=', 'draft')]}"> | |
<tree editable="bottom"> | |
<field name="product_id" /> | |
<field name="codigo" /> | |
<field name="cantidad" /> | |
<field name="unidad_venta" /> | |
<field name="descripcion" /> | |
<field name="precio_unidad" /> | |
<field name="descuento" /> | |
<field name="precio_total" /> | |
</tree> | |
</field> | |
</page> | |
</notebook> | |
<group col="4"> | |
<group colspan="2"> | |
<field name="comentario" | |
colspan="2" | |
nolabel="1" | |
attrs="{'readonly': [('state', '!=', 'draft')]}"/> | |
</group> | |
<group class="oe_subtotal_footer oe_right" colspan='2' col="2"> | |
<field name="valor_art" | |
widget='monetary' | |
options="{'currency_field': 'currency_id'}" | |
readonly="1"/> | |
<field name="descuento" | |
widget='monetary' | |
options="{'currency_field': 'currency_id'}" | |
readonly="1"/> | |
<div class="oe_subtotal_footer_separator oe_inline"> | |
<label for="monto_total" /> | |
</div> | |
<field name="monto_total" | |
nolabel="1" | |
class="oe_subtotal_footer_separator" | |
widget='monetary' | |
options="{'currency_field': 'currency_id'}" | |
readonly="1"/> | |
</group> | |
</group> | |
</sheet> | |
</form> | |
</field> | |
</record> | |
<!-- Vista de Arbol --> | |
<record model="ir.ui.view" id="contadesk_fv_factura_tree"> | |
<field name="name">Virtual Invoices</field> | |
<field name="model">contadesk.factura.virtual</field> | |
<field name="type">tree</field> | |
<field name="arch" type="xml"> | |
<tree string="Virtual Invoices" version="7.0" | |
colors="blue:state=='draft';black:state=='V';gray:'A'" | |
create="0"> | |
<field name="name" /> | |
<field name="razon_cliente" /> | |
<field name="fecha_emision" /> | |
<field name="numero_factura" /> | |
<field name="codigo_control" /> | |
<field name="doc_origen" /> | |
<field name="valor_art" /> | |
<field name="descuento" /> | |
<field name="monto_total" /> | |
<field name="state" /> | |
</tree> | |
</field> | |
</record> | |
<record id="contadesk_fv_fvsearch" model="ir.ui.view"> | |
<field name="name">Facturas Virtuales</field> | |
<field name="model">contadesk.factura.virtual</field> | |
<field name="arch" type="xml"> | |
<search string="Search"> | |
<field name="name" string="Name" filter_domain="['|',('name', 'ilike', self), ('codigo_control', 'ilike', self)]" /> | |
<separator /> | |
<filter string="Validados" name="validado" domain="[('state','=','V')]" context="" /> | |
<filter string="Anulados" domain="[('state','=','A')]" context="" /> | |
<filter string="Borrador" domain="[('state','=','draft')]" context="" /> | |
<group expand="0" string="Agrupar por..."> | |
<filter string="Sucursal" domain="[]" context="{'group_by':'partner_id'}" /> | |
<filter string="Company" name="companys" domain="[]" context="{'group_by':'company_id'}" /> | |
<filter string="Dosificacion" name="dosis" context="{'group_by':'dosificacion_id'}" | |
help="Invoicing Parameters" /> | |
</group> | |
</search> | |
</field> | |
</record> | |
<!-- Vista de Accion --> | |
<record model="ir.actions.act_window" id="contadesk_fv_factura_action"> | |
<field name="name">Facturas Fiscales</field> | |
<field name="type">ir.actions.act_window</field> | |
<field name="res_model">contadesk.factura.virtual</field> | |
<field name="view_type">form</field> | |
<field name="view_mode">tree,form</field> | |
<field name="context">{'search_default_validado':1}</field> | |
</record> | |
<menuitem id="contadesk_fv_main" name="Virtual Invoicing" | |
parent="base.menu_base_partner" | |
groups="contadesk_facturacion.contadesk_fv_creator,contadesk_facturacion.contadesk_fv_void" /> | |
<!--base.group_sale_salesman,base.group_sale_manager,--> | |
<menuitem id="contadesk_fv_factura_menu" action="contadesk_fv_factura_action" | |
name="Fiscal Invoices" | |
parent="account.menu_finance_receivables" | |
groups="contadesk_facturacion.contadesk_fv_creator,contadesk_facturacion.contadesk_fv_void"/> | |
<!--base.group_sale_salesman,base.group_sale_manager,--> | |
</data> | |
</openerp> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment