[TMP]
This commit is contained in:
parent
e4ea0a3187
commit
624181c903
@ -57,9 +57,9 @@ class GolemMember(models.Model):
|
||||
if payment_ids:
|
||||
payment_ids = payment_ids.sorted(lambda r: r.payment_date, reverse=True)
|
||||
today = fields.Date.today()
|
||||
last_payment_id = None
|
||||
for payment in payment_ids:
|
||||
if payment.payment_date < today:
|
||||
last_payment_id = None
|
||||
last_payment_id = payment
|
||||
break
|
||||
if last_payment_id:
|
||||
|
@ -57,6 +57,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
|
Loading…
Reference in New Issue
Block a user