odoo/odoo#199786

Created by Dhruv Chauhan (chdh)

Blocked

  • Merge method
  • Review
  • CI
label
odoo-dev:master-imp-update-footer-chdh
head
c2c6255c27ede7a7e441336eef7c2d8cc20eae7d
odoo/odoo
master #199786 missing r+

[IMP] website: update about us footer using gpt

The existing "About Us" footer templates are static. We integrated GPT-generated text to update the footer automatically when the user comes from the configurator flow.

Key changes:
1. We use the _process_snippet method to retrieve text(placeholders) from the template.
2. These placeholders are passed to GPT, which generates AI-generated text.
3. The _update_snippet_content method replaces the existing text with the AI-generated text.
4. Finally, we update the arch_db view with the modified content.

Here, while updating the footer content, we first check if a website-specific view exists. If it does, we choose that arch to update
otherwise, we fall back to the generic view. This is necessary because, in earlier steps, we may have already created
or modified website-specific footer views (for example, when updating the footer links for certain templates).

This PR ensures that the footer content is modified when the user comes from the configurator flow.

task-4484445