5.0: changes for Tryton 5.0

This commit is contained in:
Frederik Jaeckel 2024-12-11 10:31:19 +01:00
parent 569b4e2fc8
commit 504aab41a1
14 changed files with 34 additions and 33 deletions

View file

@ -24,7 +24,7 @@ this repository contains the full copyright notices and license terms. -->
</ram:SpecifiedTaxRegistration>
</py:def>
<py:def function="TradeAddress(address)">
<ram:PostcodeCode py:if="address.postal_code">${address.postal_code}</ram:PostcodeCode>
<ram:PostcodeCode py:if="address.zip">${address.zip}</ram:PostcodeCode>
<py:with vars="lines = (address.street or '').splitlines()">
<ram:LineOne py:if="len(lines) > 0">${this.quote_text(lines[0])}</ram:LineOne>
<ram:LineTwo py:if="len(lines) > 1">${this.quote_text(lines[1])}</ram:LineTwo>