author Jorge Garcia <>
Thu, 19 Feb 2015 15:56:38 +0100
changeset 9922 4a2e9dbecf82
parent 9911 444911e2b851
permissions -rw-r--r--
Fixed issue 28818: Not possible to apply taxes dataset in 2.50

This issue is related with the Openbravo ERP 2.50

When installing the 'Taxes: Configuration for Spain (Impuestos para España)'
and trying to apply taxes dataset in the enterprise module management
window this error appears in the window: isCashVat property does not exist.

The solution is to add this column to the core of Openbravo. To match the
Openbravo ERP 3 definition, the definition was copied from that version
and transplanted to the Openbravo ERP 2.50.

This three xml files had changed:

In those files, we had set the definition of the new column.

Now, the dataset of the 'Taxes: Configuration for Spain (Impuestos para
España)' is applied correctly in Openbravo 2.50
<?xml version="1.0"?>
  <database name="VIEW C_INVOICE_HEADER_V">
    <view name="C_INVOICE_HEADER_V"><![CDATA[SELECT i.ad_client_id, i.ad_org_id, i.isactive, i.created, i.createdby, i.updated, i.updatedby, to_char('en_US') AS ad_language, i.c_invoice_id, i.issotrx, i.documentno, i.docstatus, i.c_doctype_id, i.c_bpartner_id, bp.value AS bpvalue, oi.c_location_id AS org_location_id, oi.taxid, dt.printname AS documenttype, dt.documentnote AS documenttypenote, i.c_order_id, i.salesrep_id, COALESCE(, AS salesrep_name, i.dateinvoiced, AS bpgreeting,, bp.name2, AS bpcontactgreeting, bpc.title, NULLIF(, AS contactname, bpl.c_location_id, bp.referenceno, i.description, i.poreference, i.dateordered, i.c_currency_id, AS paymentterm, pt.documentnote AS paymenttermnote, i.c_charge_id, i.chargeamt, i.totallines, i.grandtotal, i.m_pricelist_id, i.istaxincluded, i.c_campaign_id, i.c_project_id, i.c_activity_id FROM c_invoice i JOIN c_doctype dt ON i.c_doctype_id = dt.c_doctype_id JOIN c_paymentterm pt ON i.c_paymentterm_id = pt.c_paymentterm_id JOIN c_bpartner bp ON i.c_bpartner_id = bp.c_bpartner_id LEFT JOIN c_greeting bpg ON bp.c_greeting_id = bpg.c_greeting_id JOIN c_bpartner_location bpl ON i.c_bpartner_location_id = bpl.c_bpartner_location_id LEFT JOIN ad_user bpc ON i.ad_user_id = bpc.ad_user_id LEFT JOIN c_greeting bpcg ON bpc.c_greeting_id = bpcg.c_greeting_id JOIN ad_orginfo oi ON i.ad_org_id = oi.ad_org_id LEFT JOIN ad_user u ON i.salesrep_id = u.ad_user_id LEFT JOIN c_bpartner ubp ON u.c_bpartner_id = ubp.c_bpartner_id]]></view>