Skip to content

Commit

Permalink
FIX docstrings not allowed in completion rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed May 13, 2024
1 parent b1a4414 commit f8b08f4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions account_statement_completion/data/data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
>Match from line amount (based on supplier invoice amount)</field>
<field name="sequence">60</field>
<field name="python_completion_rule">
""" If line amount match an open supplier invoice,
update partner and account. """
# We check only for debit entries
amount = int(stmt_line["amount"])
if amount &lt; 0:
Expand Down Expand Up @@ -46,7 +44,6 @@
>From line reference (based on previous move_line references)</field>
<field name="sequence">70</field>
<field name="python_completion_rule">
''' Update partner if same reference is found '''
ref = stmt_line.get('ref')
if ref:
partner = None
Expand All @@ -72,7 +69,6 @@
>From line reference (based on payment line reference)</field>
<field name="sequence">10</field>
<field name="python_completion_rule">
""" Search in account.payment.line """
ref = stmt_line.get('ref')
if ref:
payment_line = env["account.payment.line"].search([
Expand Down

0 comments on commit f8b08f4

Please sign in to comment.