Skip to content

Commit

Permalink
[IMP] account_invoice_mode: black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
phuctranfxvn committed Jan 10, 2021
1 parent b01e0a9 commit 2b10496
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion account_invoice_mode_at_shipping/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class StockMove(models.Model):
_inherit = "stock.move"

def _get_related_invoices(self):
""" Overridden from stock_account to return the customer invoices
"""Overridden from stock_account to return the customer invoices
related to this stock move.
"""
invoices = super()._get_related_invoices()
Expand Down
3 changes: 1 addition & 2 deletions account_invoice_mode_monthly/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ def _get_groupby_fields_for_monthly_invoicing(self):

@job(default_channel="root.invoice_monthly")
def _generate_invoices_by_partner(self, saleorder_ids, invoicing_mode="monthly"):
"""Generate invoices for a group of sale order belonging to a customer.
"""
"""Generate invoices for a group of sale order belonging to a customer."""
sales = (
self.browse(saleorder_ids)
.exists()
Expand Down
6 changes: 6 additions & 0 deletions setup/account_invoice_base_invoicing_mode/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,
)
6 changes: 6 additions & 0 deletions setup/account_invoice_mode_at_shipping/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,
)
6 changes: 6 additions & 0 deletions setup/account_invoice_mode_monthly/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 2b10496

Please sign in to comment.