fix when there are several cards
This commit is contained in:
parent
e207d754a4
commit
a9afcb685d
1 changed files with 2 additions and 0 deletions
|
|
@ -268,6 +268,8 @@ class CardPage(OperationsPage, LoggedPage):
|
|||
|
||||
def parse(self, el):
|
||||
label = CleanText('//div[contains(@class, "lister")]//p[@class="c"]')(el)
|
||||
if not label:
|
||||
return
|
||||
label = re.findall('(\d+ [^ ]+ \d+)', label)[-1]
|
||||
# use the trick of relativedelta to get the last day of month.
|
||||
self.env['debit_date'] = parse_french_date(label) + relativedelta(day=31)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue