Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qweb_report_parameter t-lenght does not work with t-out code #940

Open
angelmoya opened this issue Oct 15, 2024 · 0 comments
Open

qweb_report_parameter t-lenght does not work with t-out code #940

angelmoya opened this issue Oct 15, 2024 · 0 comments
Labels

Comments

@angelmoya
Copy link
Member

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:

  1. Go to l10-spain report runbot
  2. Select ES Company
  3. Configure spanish state and vat on company
  4. Create invoice for a partner with spanish state and vat
  5. 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

@etobella

@angelmoya angelmoya added the bug label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant