Skip to content

Commit

Permalink
move client action code to website
Browse files Browse the repository at this point in the history
  • Loading branch information
ged-odoo committed Jan 31, 2025
1 parent 20d739f commit ee383c5
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 15 deletions.
13 changes: 2 additions & 11 deletions addons/html_builder/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,10 @@
'auto_install': True,

# any module necessary for this one to work correctly
'depends': ['base', 'html_editor', 'website'],

# always loaded
'data': [
# 'security/ir.model.access.csv',
'views/views.xml',
],
'depends': ['base', 'html_editor'],

'assets': {
'web.assets_backend': [
'html_builder/static/src/website_preview/**/*',
],

# this bundle is lazy loaded when the editor is ready
'html_builder.assets': [
('include', 'web._assets_helpers'),
Expand All @@ -40,7 +32,6 @@
'web/static/lib/bootstrap/scss/_maps.scss',

'html_builder/static/src/**/*',
('remove', 'html_builder/static/src/website_preview/**/*'),
],
'html_builder.inside_builder_style': [
('include', 'web._assets_helpers'),
Expand Down
5 changes: 5 additions & 0 deletions addons/website/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
'digest',
'web',
'web_editor',
'html_builder',
'http_routing',
'portal',
'social_media',
Expand Down Expand Up @@ -178,6 +179,7 @@
'views/ir_model_views.xml',
'views/res_partner_views.xml',
'views/neutralize_views.xml',
'views/website_builder_views.xml',
'wizard/base_language_install_views.xml',
'wizard/blocked_third_party_domains.xml',
'wizard/website_robots.xml',
Expand All @@ -192,6 +194,9 @@
'post_init_hook': 'post_init_hook',
'uninstall_hook': 'uninstall_hook',
'assets': {
'web.assets_backend': [
'website/static/src/website_preview/**/*',
],
'web.assets_frontend': [
'website/static/src/interactions/**/*',
'website/static/src/core/**/*',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@ function isTopWindowURL({ host, pathname }) {
);
}

registry.category("actions").add("egg_website_preview", WebsiteBuilder);
registry.category("actions").add("website_builder_action", WebsiteBuilder);
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<odoo>
<data>
<record id="html_builder.website_preview" model="ir.actions.client">
<record id="website.website_preview" model="ir.actions.client">
<field name="name">Website Preview</field>
<field name="tag">egg_website_preview</field>
<field name="tag">website_builder_action</field>
</record>

<menuitem name="Website Preview"
id="menu_website_preview"
action="html_builder.website_preview"
action="website.website_preview"
sequence="1"
/>
</data>
Expand Down

0 comments on commit ee383c5

Please sign in to comment.