You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tested on runbot, with this result: <CorporateName>Deco Addict2345678901234567890123456789012</CorporateName> <TradeName>Deco Addict23456789012345678901234567890</TradeName> <AddressInSpain> <Address>77 Santa Barbara Rdsdg</Address> <PostCode>30740</PostCode> <Town>Pleasant Hill</Town> <Province>Murcia</Province> <CountryCode>ESP</CountryCode> </AddressInSpain> <ContactDetails> <Telephone>(603)-996-3829</Telephone> <WebAddress>http://www.deco-addict.com</WebAddress> <ElectronicMail>[email protected]</ElectronicMail> <ContactPersons>Deco Addict23456789012345678901234567890</ContactPersons> </ContactDetails>
You can check that TradeName is limited to 40, but ContactPerson is not limited.
To Reproduce
Affected versions: 16.0
Steps to reproduce the behavior:
Go to l10-spain report runbot
Select ES Company
Configure spanish state and vat on company
Create invoice for a partner with spanish state and vat
Confirm invoice and click on action/Create facturae file (uncheck 'sign generated file')
Expected behavior
We spect that xml file has limited fields to 40 characters
t-lenght is not applied with t-out with code
Module
qweb_report_parameter or l10n_spain/l10n_es_facturae
Describe the bug
On OCA/l10-spain, on facturae module, this t-lenght is not applied:
<ContactPersons t-length="40" t-out="administrative_partner.name or partner.name" />
https://github.com/OCA/l10n-spain/blob/908103615bd3e2a9d810afa14ae631a995070ae2/l10n_es_facturae/views/report_facturae.xml#L183
But this is applied right:
<TradeName t-length="40" t-out="partner.name" />
https://github.com/OCA/l10n-spain/blob/908103615bd3e2a9d810afa14ae631a995070ae2/l10n_es_facturae/views/report_facturae.xml#L123
I tested on runbot, with this result:
<CorporateName>Deco Addict2345678901234567890123456789012</CorporateName> <TradeName>Deco Addict23456789012345678901234567890</TradeName> <AddressInSpain> <Address>77 Santa Barbara Rdsdg</Address> <PostCode>30740</PostCode> <Town>Pleasant Hill</Town> <Province>Murcia</Province> <CountryCode>ESP</CountryCode> </AddressInSpain> <ContactDetails> <Telephone>(603)-996-3829</Telephone> <WebAddress>http://www.deco-addict.com</WebAddress> <ElectronicMail>[email protected]</ElectronicMail> <ContactPersons>Deco Addict23456789012345678901234567890</ContactPersons> </ContactDetails>
You can check that TradeName is limited to 40, but ContactPerson is not limited.
To Reproduce
Affected versions: 16.0
Steps to reproduce the behavior:
Expected behavior
We spect that xml file has limited fields to 40 characters
@etobella
The text was updated successfully, but these errors were encountered: