-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX]l10n_us_check_writing_address: Add missing parser, Fix travis
- Loading branch information
1 parent
c0adc3a
commit e378024
Showing
7 changed files
with
116 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2017 Ursa Information Systems <http://www.ursainfosystems.com> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import check_print |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2017 Ursa Information Systems <http://www.ursainfosystems.com> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
import time | ||
from odoo import api, models | ||
|
||
|
||
class ReportCheckPrintTop(models.AbstractModel): | ||
_name = 'report.l10n_us_check_writing_address.report_check_base_top' | ||
_inherit = 'report.account_check_printing_report_base.report_check_base' | ||
|
||
@api.multi | ||
def render_html(self, docids, data=None): | ||
payments = self.env['account.payment'].browse(docids) | ||
paid_lines = self.get_paid_lines(payments) | ||
docargs = { | ||
'doc_ids': docids, | ||
'doc_model': 'account.payment', | ||
'docs': payments, | ||
'time': time, | ||
'fill_stars': self.fill_stars, | ||
'paid_lines': paid_lines | ||
} | ||
return self.env['report'].render( | ||
'l10n_us_check_writing_address.report_check_base_top', | ||
docargs) | ||
|
||
|
||
class ReportCheckPrintBottom(models.AbstractModel): | ||
_name = 'report.l10n_us_check_writing_address.report_check_base_bottom' | ||
_inherit = 'report.account_check_printing_report_base.report_check_base' | ||
|
||
@api.multi | ||
def render_html(self, docids, data=None): | ||
payments = self.env['account.payment'].browse(docids) | ||
paid_lines = self.get_paid_lines(payments) | ||
docargs = { | ||
'doc_ids': docids, | ||
'doc_model': 'account.payment', | ||
'docs': payments, | ||
'time': time, | ||
'fill_stars': self.fill_stars, | ||
'paid_lines': paid_lines | ||
} | ||
return self.env['report'].render( | ||
'l10n_us_check_writing_address.report_check_base_bottom', | ||
docargs) | ||
|
||
|
||
class ReportCheckPrintMiddle(models.AbstractModel): | ||
_name = 'report.l10n_us_check_writing_address.report_check_base_middle' | ||
_inherit = 'report.account_check_printing_report_base.report_check_base' | ||
|
||
@api.multi | ||
def render_html(self, docids, data=None): | ||
payments = self.env['account.payment'].browse(docids) | ||
paid_lines = self.get_paid_lines(payments) | ||
docargs = { | ||
'doc_ids': docids, | ||
'doc_model': 'account.payment', | ||
'docs': payments, | ||
'time': time, | ||
'fill_stars': self.fill_stars, | ||
'paid_lines': paid_lines | ||
} | ||
return self.env['report'].render( | ||
'l10n_us_check_writing_address.report_check_base_middle', | ||
docargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters