diff --git a/reports/__manifest__.py b/reports/__manifest__.py
index 4362d00..790beda 100644
--- a/reports/__manifest__.py
+++ b/reports/__manifest__.py
@@ -14,6 +14,7 @@
],
'data': [
'views/invoice_report.xml',
+ 'views/sale_report.xml',
],
'demo': [],
'images': [],
diff --git a/reports/__pycache__/account.cpython-36.pyc b/reports/__pycache__/account.cpython-36.pyc
index 9642e58..a73b701 100644
Binary files a/reports/__pycache__/account.cpython-36.pyc and b/reports/__pycache__/account.cpython-36.pyc differ
diff --git a/reports/account.py b/reports/account.py
index 64f1fd8..6bff874 100644
--- a/reports/account.py
+++ b/reports/account.py
@@ -1,4 +1,5 @@
from odoo import models, api, fields
+import datetime
from datetime import date
@@ -14,6 +15,8 @@ class AccountMove(models.Model):
sale_id = self.env['sale.order'].sudo().search([('name', '=', rec.invoice_origin)])
for doc in sale_id:
rec.print_date = doc.signed_on
+ else:
+ rec.print_date = date.today()
def compute_signature(self):
diff --git a/reports/views/invoice_report.xml b/reports/views/invoice_report.xml
index 3174f58..0927ada 100644
--- a/reports/views/invoice_report.xml
+++ b/reports/views/invoice_report.xml
@@ -27,8 +27,8 @@
E & OE
- Print Date:
- Signed by:
+ Print Date:
+ Signed by:
@@ -47,8 +47,8 @@
E & OE
- Print Date:
- Signed by:
+ Print Date:
+ Signed by:
@@ -67,12 +67,8 @@
E & OE
- Print Date:
-
-
- Signed by:
-
-
+ Print Date:
+ Signed by:
@@ -91,9 +87,8 @@
E & OE
- Print Date:
-
- Signed by:
+ Print Date:
+ Signed by:
\ No newline at end of file
diff --git a/reports/views/sale_report.xml b/reports/views/sale_report.xml
new file mode 100644
index 0000000..f3034ef
--- /dev/null
+++ b/reports/views/sale_report.xml
@@ -0,0 +1,67 @@
+
+
+
+
+ Validity:
+ Sales Code:
+ RFQ
+
+
+ NOTE:
+ All prices quoted are new materials.
+
+
+ Kind Regards
+
+
+
+
+
+
+ Validity:
+ Sales Code:
+ RFQ
+
+
+ NOTE:
+ All prices quoted are new materials.
+
+
+ Kind Regards
+
+
+
+
+
+
+ Validity:
+ Sales Code:
+ RFQ
+
+
+ NOTE:
+ All prices quoted are new materials.
+
+
+ Kind Regards
+
+
+
+
+
+
+ Validity:
+ Sales Code:
+ RFQ
+
+
+ NOTE:
+ All prices quoted are new materials.
+
+
+ Kind Regards
+
+
+
+
+
\ No newline at end of file