Daily updates from Odoo
Wednesday, June 5, 2019
2 changes · master
Code cleanup and technical improvements
This update removes a redundant attachment file-name field that usually duplicated existing attachment information. It simplifies how attachments are stored and handled across many Odoo apps, reducing maintenance overhead without changing the core user experience.
Original PR description
*base, account_facturx, attachment_indexation, base_import_module, calendar, crm, hr_recruitment, l10n_be_edi, l10n_generic_coa, l10n_it_edi, mail, mass_mailing, mrp, snailmail, test_mail, web, web_editor, web_unsplash, website, website_blog, website_form, website_sale_digital, website_theme_install. This commit removes the field `datas_fname` from `ir.attachment` as it was unnecessary and most of the time the duplicate of `name` or `url`. task: #1909865
This update aligns several document-related apps with a core platform change by using the standard attachment name instead of an older filename field. It reduces duplicated data handling and helps keep document, invoice, signing, and localization workflows compatible with the updated platform.
Original PR description
*account_invoice_extract, account_reports, documents, documents_account, documents_product, documents_projet, documents_sign, hr_contract_salary, l10n_mx_edi, sign. Following the removal of the field from `base/ir.attachement` This commit replaces all relevant usage of `datas_fname` by `name` and removes redundant usages of `datas_fname`. related to: odoo/odoo#32976 task: #1909865