[IMP] website: make website page URL required

Commit [1] was made to avoid that the search snippet fails when there
are pages without URLS.

In master this can be reverted and the URL field can be made mandatory.

[1]: https://github.com/odoo/odoo/commit/f75ec6131eff9165b06d42d27a49dd756387f4a0

task-3443119

Part-of: odoo/odoo#136764
This commit is contained in:
Benoit Socias
2023-10-13 21:11:53 +00:00
parent 997aa444cb
commit b082a1a546
+1 -1
View File
@@ -22,7 +22,7 @@ class Page(models.Model):
_description = 'Page'
_order = 'website_id'
url = fields.Char('Page URL')
url = fields.Char('Page URL', required=True)
view_id = fields.Many2one('ir.ui.view', string='View', required=True, ondelete="cascade")
website_indexed = fields.Boolean('Is Indexed', default=True)
date_publish = fields.Datetime('Publishing Date')