[FIX] Prevent pushing translation for technical attributes add via view inheritance 

When exporting translation of an XML view, any text of the tag `<attribute>` is exported even if it is a technical attribute like 'context' or 'attrs'. For example, the module the translation template of the module `account_analytic_analysis` has many terms like `{'required': [('type','=','contract')],....`

This patch limits the export to only translatable attributes like `string` or `palceholder`.

This is similar to PR #4185 for `v8.0`.