-
- Downloads
[IMP] account*: update invoice page view on customer portal
*account_payment, l10_in(_sale), sale(_stock), web With this commit: The invoice preview in portal (/my/invoices..) is now the HTML version of the PDF report. The HTML preview is based on the invoice report to closely match what is already done in Odoo. The invoice preview is displayed in an 'iframe', it is mandatory since: 1. Reports are rendered as a separate page as it returns the whole page after rendering, which has tag <html>, <head> etc 2. Reports are having their own layouts and their own assets that we we cannot load in the page directly or it will break the website layout. 3. We can not use report template with t-call because internally reports are using extra params like context_timestamp, company, DateTime, user etc which is used in header/footer -- There will be a chatter (as a modal) to display/see the history of the document -- For responsive purpose, we use new tables with limited column (Description, Quantity and Amount) for responsive purpose (small screen). It also adds some bootstrap classes to reports for responsive purpose. -- The 'Pay Now' button remains if you already paid with 'wire transfer'. -- Add margin after the header and before the footer to look like the real printed document, without alterating the real printed version Task ID: 39876
Showing
- addons/account/controllers/portal.py 23 additions, 7 deletionsaddons/account/controllers/portal.py
- addons/account/report/account_invoice_report.py 14 additions, 0 deletionsaddons/account/report/account_invoice_report.py
- addons/account/static/src/js/account_portal_sidebar.js 58 additions, 0 deletionsaddons/account/static/src/js/account_portal_sidebar.js
- addons/account/views/account.xml 6 additions, 0 deletionsaddons/account/views/account.xml
- addons/account/views/account_portal_templates.xml 66 additions, 173 deletionsaddons/account/views/account_portal_templates.xml
- addons/account/views/report_invoice.xml 46 additions, 8 deletionsaddons/account/views/report_invoice.xml
- addons/account_payment/views/account_portal_templates.xml 87 additions, 58 deletionsaddons/account_payment/views/account_portal_templates.xml
- addons/l10n_in/views/report_invoice.xml 1 addition, 1 deletionaddons/l10n_in/views/report_invoice.xml
- addons/l10n_in_sale/views/report_invoice_view.xml 1 addition, 1 deletionaddons/l10n_in_sale/views/report_invoice_view.xml
- addons/sale/report/invoice_report_templates.xml 66 additions, 3 deletionsaddons/sale/report/invoice_report_templates.xml
- addons/sale_stock/views/account_invoice_views.xml 2 additions, 1 deletionaddons/sale_stock/views/account_invoice_views.xml
- addons/web/static/src/scss/layout_background.scss 1 addition, 1 deletionaddons/web/static/src/scss/layout_background.scss
- addons/web/static/src/scss/layout_boxed.scss 1 addition, 0 deletionsaddons/web/static/src/scss/layout_boxed.scss
- addons/web/static/src/scss/layout_clean.scss 2 additions, 0 deletionsaddons/web/static/src/scss/layout_clean.scss
- addons/web/static/src/scss/layout_standard.scss 3 additions, 0 deletionsaddons/web/static/src/scss/layout_standard.scss
- addons/web/views/report_templates.xml 4 additions, 1 deletionaddons/web/views/report_templates.xml
Loading
Please register or sign in to comment