Skip to content

Commit

Permalink
[IMP]change manifest, add condition on payments widget
Browse files Browse the repository at this point in the history
  • Loading branch information
matteonext committed Aug 29, 2023
1 parent 55c1970 commit b9b1973
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sale_commission_settlement_payment_date/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Commission Settlement base on payment date",
"summary": "commission/sale_quick_commission",
"version": "14.0.1.0.0",
"author": "Nextev," "Odoo Community Association (OCA)",
"author": "Nextev," "Ooops404," "Odoo Community Association (OCA)",
"category": "Sales Management",
"license": "AGPL-3",
"depends": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
This module allows to add the invoice payment date until you want to settle commissions
This module allows to settle commissions up to a specified payment date.
This only applies to commission types with "invoice status = payment based".

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _get_agent_lines(self, agent, date_to_agent):
lambda r: r.commission_id.invoice_state == "paid"
and self.date_payment_to != "false"
):
if not self.check_payment_date(line):
if line.invoice_id.invoice_payments_widget != 'false' and not self.check_payment_date(line):
agent_lines -= line
return agent_lines

Check warning on line 25 in sale_commission_settlement_payment_date/wizard/wizard_settle.py

View check run for this annotation

Codecov / codecov/patch

sale_commission_settlement_payment_date/wizard/wizard_settle.py#L24-L25

Added lines #L24 - L25 were not covered by tests

Expand Down

0 comments on commit b9b1973

Please sign in to comment.