Copy Full Address to clipboard

One annoyance that I have with Party module is that sometimes I need to copy to clipboard the full_address to paste it in some webapp or document.

It is much better since we have the ability to copy a row, or just a field.

I do not see a technical way to solve this problem other than adding the full_address to the view, but this seems excessively wasteful and bad taste.

I am wondering how many people would be using such a feature, that is if there is an elegant way to implement it.

  • Useful
  • Not useful
0 voters

I have similar problems when copying the IBAN. In the UI the iban is shown as formated but some websites do not accept the formated version and need the compact version.

I’m wondering if it makes sense to add a “Copy” widget which justs shows an icon like the URL widget and copies the value of the field into de clipboard.

Copying to clipboard can be achieved with:

I do not see a technical way to solve this problem other than adding the full_address to the view, but this seems excessively wasteful and bad taste.

Depending on the use case it might be possible to use the label or vcard report (or define your own).

An elegant way could be to offer a summary of the current record like in the URL widget. But is it worth the effort?

To be clear, every time I want to copy an address I think: isn’t there a better way to do this?
The answer is probably not worth the effort.

Label does not work because you can not select the address if the party has multiple addresses.

Currently the best way is to save an export and just export all the party addresses and copy the one you want.

With SEPA will use in the future a structured address instead of their current schema (#13190) · Issues · Tryton / Tryton · GitLab, the address form may become even more complex.
So I think we will need to have two options on the adresse form like two tabs, one with the “Full Address” field and another with all the fields composing the address.

We may go even further by allowing to edit the “Full Address” and use one the parsing library to fill the detail fields. (Maybe this makes sense only for new addresses).

The formatted version of IBAN is to help human to type it without error so requesting the compact version is a UI design mistake.

This won’t help the current topic because the adresse is not a widget but a record composed of multiple widgets.