diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-07 15:06:30 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-07 15:06:30 +0700 |
| commit | aefbbe76d0cb228d6928180991f59829d3ef2139 (patch) | |
| tree | 973ec1693a81ff3075111f3b35af5d4b8dc68290 /indoteknik_custom/models/website_page_content.py | |
| parent | c0152c8cc6fcd72e74b0b4bca1d39dbdd2000788 (diff) | |
Add website page content
Diffstat (limited to 'indoteknik_custom/models/website_page_content.py')
| -rw-r--r-- | indoteknik_custom/models/website_page_content.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indoteknik_custom/models/website_page_content.py b/indoteknik_custom/models/website_page_content.py new file mode 100644 index 00000000..a09de543 --- /dev/null +++ b/indoteknik_custom/models/website_page_content.py @@ -0,0 +1,10 @@ +from odoo import models, fields + + +class WebsitePageContent(models.Model): + _name = 'website.page.content' + _rec_name = 'url_path' + _sql_constraints = [('url_path_unique', 'unique(url_path)', 'URL Path already exists!')] + + url_path = fields.Char(string='Url Path') + content = fields.Html(string='Content')
\ No newline at end of file |
