Skip to content

Commit

Permalink
[IMP] pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
i-vyshnevska committed Feb 17, 2021
1 parent 88c695a commit 1cbbfac
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions l10n_ch_isr_payment_grouping/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AccountMove(models.Model):
_inherit = "account.move"

def _get_invoice_reference_ch_invoice(self):
""" This sets ISR reference number which is generated based on
"""This sets ISR reference number which is generated based on
customer's `Bank Account` and set it as `Payment Reference` of
the invoice when invoice's journal is using Switzerland's
communication standard
Expand All @@ -19,7 +19,7 @@ def _get_invoice_reference_ch_invoice(self):
return self.l10n_ch_isr_number

def _get_invoice_reference_ch_partner(self):
""" This sets ISR reference number which is generated based on
"""This sets ISR reference number which is generated based on
customer's `Bank Account` and set it as `Payment Reference` of the
invoice when invoice's journal is using Switzerland's communication
standard
Expand Down
11 changes: 7 additions & 4 deletions l10n_ch_isr_payment_grouping/tests/test_l10n_ch_payment_isr.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ def _filter_vals_to_test(self, vals):
]

def test_payment_isr_grouping(self):
"""Create multiple invoices to test grouping by partner and ISR
"""
"""Create multiple invoices to test grouping by partner and ISR"""
invoices = (
self.create_supplier_invoice(self.supplier_isrb1, ISR1)
| self.create_supplier_invoice(self.supplier_isrb1, ISR2)
Expand Down Expand Up @@ -126,7 +124,12 @@ def test_payment_isr_grouping(self):
# different partner, different payment
(ISR2, self.supplier_isrb2.id, 1, 42.0),
# not ISR, standard grouping
("1234 5678 {}".format(inv_no_ref.name), self.supplier_iban.id, 3, 126.0,),
(
"1234 5678 {}".format(inv_no_ref.name),
self.supplier_iban.id,
3,
126.0,
),
# different ISR reference, different payment
(ISR1, self.supplier_isrb1.id, 1, 42.0),
]
Expand Down
6 changes: 6 additions & 0 deletions setup/l10n_ch_qr_bill_scan/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 1cbbfac

Please sign in to comment.