diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py index 77f0f47569a..0bed25f87bc 100644 --- a/addons/account/__openerp__.py +++ b/addons/account/__openerp__.py @@ -150,6 +150,9 @@ module named account_voucher. 'test/test_edi_invoice.yml', 'test/account_report.yml', ], + "js": [ + 'static/src/js/edi_invoice.js' + ], 'installable': True, 'active': False, 'certificate': '0080331923549', diff --git a/addons/account/static/src/js/edi_invoice.js b/addons/account/static/src/js/edi_invoice.js new file mode 100644 index 00000000000..c31c803d665 --- /dev/null +++ b/addons/account/static/src/js/edi_invoice.js @@ -0,0 +1,50 @@ +/*--------------------------------------------------------- + * OpenERP Web_edi + *---------------------------------------------------------*/ +// +openerp.edi.InvoiceEdiView = Class.extend({ + init: function(element, edi){ + var self = this; + this.edi_document = eval(edi.document) + this.$element = element; + QWeb.add_template("/web_edi_invoice/static/src/xml/edi_invoice.xml"); + this.$_element = $('
| + Pay this Invoice in Online + | +
|
+ + |
+
| + Paypal + Google Checkout + Bank wire Transfer + + | +
+
+
+
+
+ Phone:
+
+
| Description | +Date | +Origin | +Your Reference | +
|---|---|---|---|
| Product Description | +Quantity | +Unit Price | +Discount | +Price | +||||||
|---|---|---|---|---|---|---|---|---|---|---|
| + | ||||||||||
| + | Net Total: | +|||||||||
| + | Taxes: | +|||||||||
| + | ||||||||||
| + | Total: | +|||||||||
+
| + | |||||||||