Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
smetl committed Aug 17, 2018
1 parent 61f1b12 commit d2c7193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/account_facturx/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ def _import_facturx_invoice(self, tree):
if elements:
date_str = elements[0].text
date_obj = datetime.strptime(date_str, DEFAULT_FACTURX_DATE_FORMAT)
invoice_form.date_due = date_obj.strftime(DEFAULT_SERVER_DATE_FORMAT)
invoice_form.date = date_obj.strftime(DEFAULT_SERVER_DATE_FORMAT)

# Due date.
elements = tree.xpath('//ram:SpecifiedTradePaymentTerms/ram:DueDateTime/udt:DateTimeString', namespaces=tree.nsmap)
if elements:
date_str = elements[0].text
date_obj = datetime.strptime(date_str, DEFAULT_FACTURX_DATE_FORMAT)
invoice_form.date = date_obj.strftime(DEFAULT_SERVER_DATE_FORMAT)
invoice_form.date_due = date_obj.strftime(DEFAULT_SERVER_DATE_FORMAT)

# Invoice lines.
elements = tree.xpath('//ram:IncludedSupplyChainTradeLineItem', namespaces=tree.nsmap)
Expand Down

0 comments on commit d2c7193

Please sign in to comment.