Add issue8636.diff [account_payment_sepa] da434be20358 Include only validated mandates on lines to pay domain

This commit is contained in:
Raimon Esteve 2019-09-19 15:27:02 +02:00
parent 31982e5128
commit b4f20d539b
2 changed files with 14 additions and 0 deletions

12
issue8636.diff Normal file
View File

@ -0,0 +1,12 @@
diff -r 81512db82709 trytond/trytond/modules/account_payment_sepa/account.xml
--- a/trytond/trytond/modules/account_payment_sepa/account.xml Mon May 06 14:57:12 2019 +0200
+++ b/trytond/trytond/modules/account_payment_sepa/account.xml Thu Sep 19 14:50:07 2019 +0200
@@ -9,7 +9,7 @@
<field name="name">Receivable with Mandate</field>
<field name="sequence" eval="25"/>
<field name="domain"
- eval="['AND', ['OR', ('debit', '&gt;', 0), ('credit', '&lt;', 0)], ('party.sepa_mandates', '!=', None)]"
+ eval="['AND', ['OR', ('debit', '&gt;', 0), ('credit', '&lt;', 0)], ('party.sepa_mandates.state', '=', 'validated')]"
pyson="1"/>
<field name="count" eval="True"/>
<field name="act_window" ref="account_payment.act_move_line_form"/>

2
series
View File

@ -48,3 +48,5 @@ issue8369.diff # [trytond] Sort keys of PYSON XML value
issue8375.diff # [trytond] n_sign_posn and p_sign_posn are considered as string by trytond.convert
issue8637.diff # [trytond] Use new related API for _changed_values
issue8636.diff # [account_payment_sepa] da434be20358 Include only validated mandates on lines to pay domain