From be9f2840a3959598b7a99fb71d75ca237f907944 Mon Sep 17 00:00:00 2001 From: Teppo Naakka Date: Thu, 29 Oct 2015 00:09:12 +0200 Subject: [PATCH 1/7] guess-fixed view definition --- view/account_invoice.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/view/account_invoice.xml b/view/account_invoice.xml index 982bbdc..52a5eda 100644 --- a/view/account_invoice.xml +++ b/view/account_invoice.xml @@ -7,14 +7,15 @@ account.invoice - + - + + From df14c22be2b8fdc583a4b9fdb191d73d42cc99a3 Mon Sep 17 00:00:00 2001 From: Teppo Naakka Date: Sat, 28 Nov 2015 14:26:23 +0200 Subject: [PATCH 2/7] WIP: v9 compatibility --- model/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/account_invoice.py b/model/account_invoice.py index bcaf9c5..c33746f 100644 --- a/model/account_invoice.py +++ b/model/account_invoice.py @@ -47,7 +47,7 @@ def _compute_ref_number(self): @api.one def _compute_barcode_string(self): primary_bank_account = self.partner_bank_id or \ - self.company_id.bank_ids and self.company_id.bank_ids[0] + self.company_id.partner_id.bank_ids and self.company_id.partner_id.bank_ids[0] if (self.amount_total and primary_bank_account.acc_number and self.ref_number and self.date_due): amount_total_string = str(self.amount_total) From 738d719a520adce55a9ca7d22c1f33d3e0bec1fd Mon Sep 17 00:00:00 2001 From: Teppo Naakka Date: Sat, 28 Nov 2015 14:27:29 +0200 Subject: [PATCH 3/7] tidy up view definition --- view/account_invoice.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/account_invoice.xml b/view/account_invoice.xml index 52a5eda..3576b0d 100644 --- a/view/account_invoice.xml +++ b/view/account_invoice.xml @@ -7,9 +7,9 @@ account.invoice - + - + From 68aa156bda3b21b8111cd1cf60a3c96548fe6ba1 Mon Sep 17 00:00:00 2001 From: Teppo Naakka Date: Sat, 28 Nov 2015 14:34:56 +0200 Subject: [PATCH 4/7] WIP: fix call to the document --- report/report_invoice.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report/report_invoice.xml b/report/report_invoice.xml index b7dcc44..67a2ebe 100644 --- a/report/report_invoice.xml +++ b/report/report_invoice.xml @@ -497,8 +497,8 @@ From 37b176e5677677fa4341bfc30b2c2581442223fb Mon Sep 17 00:00:00 2001 From: Teppo Naakka Date: Sun, 6 Dec 2015 14:24:18 +0200 Subject: [PATCH 5/7] change doc variable from o to doc --- report/report_invoice.xml | 94 +++++++++++++++++++-------------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/report/report_invoice.xml b/report/report_invoice.xml index 67a2ebe..7c004a3 100644 --- a/report/report_invoice.xml +++ b/report/report_invoice.xml @@ -15,13 +15,13 @@
-
-
-
- VAT: - + VAT: +
@@ -152,7 +152,7 @@ Invoice number - + @@ -160,13 +160,13 @@ Invoice reference - + Invoice Date - + @@ -174,31 +174,31 @@ Date due - + Date fulfilled - + Payment term - + Our reference - + Your reference - + @@ -208,7 +208,7 @@
- +
@@ -225,7 +225,7 @@ - + @@ -257,29 +257,29 @@
@@ -245,7 +245,7 @@ + t-field-options='{"widget": "monetary", "display_currency": "doc.currency_id"}'/>
Total Without Taxes - +
Taxes - +
Total - +
-
+
@@ -290,17 +290,17 @@ - + @@ -312,26 +312,26 @@
-
- +
- +
- +
-
Kotipaikka: - +
Kotipaikka: +
Y-tunnus: - +
@@ -349,12 +349,12 @@
- + IBAN - + - - + +
IBAN @@ -376,7 +376,7 @@
-
@@ -391,7 +391,7 @@
-
@@ -432,7 +432,7 @@
- Laskun numero + Laskun numero
@@ -446,7 +446,7 @@
- +
@@ -457,13 +457,13 @@
- +
Euro -
@@ -472,11 +472,11 @@
- + + t-att-src="'/report/barcode/?type=%s&value=%s&height=%s&width=%s' %('Code128', doc.barcode_string, 60, 600)"/>
- +
From b818c1325adbb9f44f851ec7bea394b40725533f Mon Sep 17 00:00:00 2001 From: Teppo Naakka Date: Sun, 6 Dec 2015 15:19:07 +0200 Subject: [PATCH 6/7] compatibility fixes --- report/report_invoice.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/report/report_invoice.xml b/report/report_invoice.xml index 7c004a3..eff7849 100644 --- a/report/report_invoice.xml +++ b/report/report_invoice.xml @@ -186,7 +186,7 @@
@@ -225,14 +225,14 @@ - +
+ t-field-options='{"widget": "monetary", "display_currency": "doc.currency_id"}'/> + t-field-options='{"widget": "monetary", "display_currency": "doc.currency_id"}'/>
Payment term - +
- + @@ -241,7 +241,7 @@ - + -
+
@@ -290,12 +290,12 @@ - +
- @@ -354,7 +354,7 @@ - +
IBAN From a13cbb37fc69867cd9575b61a415a98fd9bbd763 Mon Sep 17 00:00:00 2001 From: Teppo Naakka Date: Wed, 9 Dec 2015 17:26:50 +0200 Subject: [PATCH 7/7] barcode alignment fixed --- report/report_invoice.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report/report_invoice.xml b/report/report_invoice.xml index eff7849..013f166 100644 --- a/report/report_invoice.xml +++ b/report/report_invoice.xml @@ -473,7 +473,7 @@
-