Skip to content

Commit

Permalink
[IMP]sale_order_invoice_date: black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bizzappdev committed Jan 2, 2023
1 parent cdc2081 commit 1e4feb7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sale_order_invoice_date/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Sale Order Invoice Date",
"summary": "Display the invoice date on Sales Order analysis reports",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"author": "Camptocamp, Odoo Community Association (OCA)",
"maintainers": ["ivantodorovich"],
"website": "https://github.com/OCA/sale-reporting",
Expand Down
2 changes: 1 addition & 1 deletion sale_order_invoice_date/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ def _compute_invoice_date(self):
not_invoiced.invoice_date = False
for rec in invoiced:
rec.invoice_date = max(
[d for d in rec.invoice_lines.move_id.mapped("invoice_date") if d],
(d for d in rec.invoice_lines.move_id.mapped("invoice_date") if d),
default=False,
)
6 changes: 6 additions & 0 deletions setup/sale_order_invoice_date/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 1e4feb7

Please sign in to comment.