Commit Graph
25 Commits
Author SHA1 Message Date
Antoine (anso) 1fdb9aa896 [IMP] mass_mailing_themes: use title snippets in Event template
Use snippets instead of raw H3 to add more dropouts for the user

Task-2714386

Part-of: odoo/odoo#99311
2023-07-19 21:59:57 +02:00
Antoine (anso) d3e226057e [IMP] mass_mailing_themes: reorder template list
Purpose is to give a more natural ordering in themes instead of looking like
a random ordering.

Task-2714386

Part-of: odoo/odoo#99311
2023-07-19 21:59:57 +02:00
Antoine (anso) dfa715ec62 [IMP] mass_mailing_themes: add training theme
Add 'training' theme, which is absolutely not something to use to train
yourself writing themes, but actually to sell trainings, like software
trainings to learn to write themes.

Task-2714386

Part-of: odoo/odoo#99311
2023-07-19 21:59:57 +02:00
Antoine (anso) e9f5189444 [IMP] mass_mailing_themes: add roadshows theme
Add a theme about roadshows followup & roadshow schedule, used notably by
rock stars.

Task-2714386

Part-of: odoo/odoo#99311
2023-07-19 21:59:56 +02:00
Antoine (anso) 6d4b684263 [IMP] mass_mailing_themes: add newsletter theme
Add a 'newsletter' theme that contains notably a photo of Fgi and Al, which
is probably the best motivational to use it.

Task-2714386

Part-of: odoo/odoo#99311
2023-07-19 21:59:56 +02:00
Antoine (anso) a2f5c7f1bf [IMP] mass_mailing_themes: add coffeebreak theme
Add a new theme: 'coffeebreak' which, as it name implies, is about coffee.
And blocks.

Task-2714386

Part-of: odoo/odoo#99311
2023-07-19 21:59:56 +02:00
Antoine (anso) 9e689fc642 [REF] mass_mailing_themes: rename themes
Some mail themes had to be renamed to fix inconsistencies and prepare future
changes

  * Newsletter -> Event
  * Tech -> Blogging
  * VIP -> Coupon
  * Bold -> Magazine
  * Solar -> Promotion

Also bump version, as new themes imply quite a bit change for this module.

Task-2714386

Part-of: odoo/odoo#99311
2023-07-19 21:59:56 +02:00
Antoine Guenet ee8442d3c0 [FIX] mass_mailing_themes: fix newsletter template's main image's width
Before this commit, the main image of the newsletter template had a set
width which doesn't do anything because it gets overridden by CSS, but
it confuses the conversion process.

X-original-commit: c23fe6dc5efe46990a5473f696966a2774ae16d4
Part-of: odoo/odoo#124465
2023-06-09 17:01:43 +02:00
Louis Wicket (wil) 04189318cc [I18N] *: update master translations
Currently, only stable releases see their translations updated. This has
resulted in master accumulating outdated stuff for years, which can be
confusing for users testing master on runbot.

This one-shot commit resynchronizes master translations based on the
content from 16.0 and removes empty PO files (i.e. no longer containing
translations).

closes odoo/odoo#121629

Related: odoo/enterprise#41171
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-05-22 17:52:07 +02:00
Martin Trigaux 077bbd0b0b [I18N] *: export master source terms
closes odoo/odoo#121563

Related: odoo/enterprise#41140
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-05-17 10:34:00 +02:00
Guillaume (gdi) 3952fbd15f [IMP] mass_mailing, *: add TikTok to templates
*: mass_mailing_themes, website_mass_mailing

This commit adds TikTok to the already existing social networks in all
email marketing templates (droppable blocks and default mail templates).

task-3235451

closes odoo/odoo#116837

Signed-off-by: Arthur Detroux (ard) <ard@odoo.com>
2023-05-11 09:36:21 +02:00
Louis Wicket (wil) 0c53d28133 [IMP] *: remove "French spacing"
According to Wiktionary, French spacing is "the archaic practice (though
still current in French) of inserting a space around colons, semicolons,
question marks, and exclamation marks". This is not standard practice in
English and most languages of the world.

The purpose of this commit is to start purging the code from this typo,
as it may reflect poorly on the software for some people.

closes odoo/odoo#116167

Related: odoo/enterprise#38542
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-03-24 12:50:13 +01:00
Martin Trigaux 1be5eae8ef [I18N] *: remove nl_BE files
They dates from < 2027 and are quite outdated. Favour the nl
translation instead.
n_BE is not on Transifex so it was not possible to correct bad
translations.

closes odoo/odoo#115845

X-original-commit: d04c8b7e484db8306d858c891a7a2b11885fdcd9
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-03-20 16:51:30 +01:00
Mathieu (mano) 934069f834 [IMP] web_editor, mass_mailing: add and sort shapes
This commit is the first step towards the addition of various SVG shapes
for the website app.

The purpose of this commit is to add the new shapes SVGs and to sort the
current shape menu into new categories.

The avoid duplicating the shapes added in mass_mailing, the 3 shapes:
   - Circle
   - Slanted
   - Triangle (corner)

Are now in the web_editor, their existing reference in mass_mailing
template have have been changed to their new locations. To adapt to
`b1a3a3b18370ad76280726298602815769dce1c2` the paths have been changed
and a new record for `s_tech_default_image.jpg` have been created in
the new file `mass_mailing_themes/data/ir_attachment_data.xml` since 
it's an image only used in themes. (Also removing  `noupdate=0` from
the data element in `mass_mailing/data/ir_attachment_data.xml` 
since it is the default value).

I also removed the .png and old .jpg of this image since now the shape 
is applied directly on the image. 

Since the shapes + their image are converted in a base64 img+svg on
save, we can move the assets of the current website shapes in use 
without compatibility issue. Therefore these shapes were renamed and 
moved their new folder category.

The SVG width and height of the new and previous shapes was set to
600x600 since they are mostly squarish and are going to be rendered in a
square preview in the future.

To simulate the future preview of the shape selection menu, the
`we-button img` width was set to
`$o-we-sidebar-content-field-dropdown-grid-item-height` and the
`we-button` width to `1/4` in the file `wysiwyg_snippets.scss`.

It makes the preview 60x60 and displayed in a four tiles layout.

Note : 

- If later on the SVG are rendered as inline-svg rather than base64
the current IDs inside the .svg might conflict if multiple svg are
on the same page.

- The previous shapes might look a bit weird with the squarish ratio
in preview, alternatives solutions should be explored during the 
implementation of the new UI. 

task-3094258

closes odoo/odoo#110673

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-03-17 23:24:06 +01:00
Martin Trigaux 1a8772769e [I18N] *: export 16.0 source terms
closes odoo/odoo#100573

Related: odoo/enterprise#31507
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2022-09-20 13:48:49 +02:00
Elisabeth Dickinson 4b5ac5d21e [IMP] mass_mailing_themes: update template thumbnails
Part-of: odoo/odoo#95940
2022-08-11 17:56:27 +02:00
Elisabeth Dickinson 4bd33d9abd [IMP] mass_mailing_themes: fix footers according to snippets
Part-of: odoo/odoo#95940
2022-08-11 17:56:27 +02:00
Elisabeth Dickinson 1aa9961996 [IMP] mass_mailing_themes: correct headers' logo area
There was a mistake on the sizing of the columns. To make room for more
social icons, the logo's column is reduced while the social
column is enlarged.

Part-of: odoo/odoo#95940
2022-08-11 17:56:27 +02:00
Elisabeth Dickinson d6eb4e3a68 [IMP][REM] mass_mailing_themes: rename images and remove unused images
In the previous version of the mail builder, the snippets had different
styles and images according to the selected template.
Now the snippets just use the default image so there's no need for
duplicates in the templates' folders.

The snippet `two_cols` no longer exists since the new version of the
mail builder, its images have been removed.

The header snippet uses the user's company logo, not the template's
default logo. If no logo image is used in the template,
there is no need for it in the folder.

The remaining images have been renamed for more consistency, except for
logo images that are .png format; these must have custom names (not
starting with `s_default_image_xxx`, as this forces .jpg).

Part-of: odoo/odoo#95940
2022-08-11 17:56:26 +02:00
Elisabeth Dickinson b218de746f [IMP] mass_mailing_themes: replace all px-3 classes with inline style
Part-of: odoo/odoo#95940
2022-08-11 17:56:26 +02:00
Elisabeth Dickinson 48d17c3ac8 [IMP] mass_mailing_themes: adapt templates after snippet adjustments
Part-of: odoo/odoo#95940
2022-08-11 17:56:26 +02:00
Elisabeth Dickinson 8db441a283 [IMP] mass_mailing: improve theme_default and default SCSS
In previous versions of templates, all the styles were needed in every
template in `<styles id="design-element">`. This is no longer the
case and it has been cleaned up to only use the styles that differ from
the "default" ones found in the  `mass_mailing_design_constants.js` file.

There was a priority problem (ex: `a.btn` inside `p` takes
`p`'s text color instead of `.btn`), this is resolved by placing the
default styling in `theme_default.css`

`theme_default.scss` contained classes that were no longer necessary or
would override styles from the builder. These have been removed from the
SCSS file and from snippets and templates where these were applied.
If the styles are needed, they should be added as inline styles.

The theme_default template was calling snippets with `t-call`
which prevented customization of the theme.
Snippets have been added in full with further customization.

task-2835454

Part-of: odoo/odoo#95940
2022-08-11 17:56:18 +02:00
Elisabeth Dickinson 907211dce2 [IMP] mass_mailing_themes: replace theme_tech static image with shape
This theme was using a static image which was designed in a triangle
shape but could not be edited with the `Shapes` option.

In order for the user to be able to change the shape of this image,
much like in the previous commit, a square version of the image is used
as an `original-src`, and the triangle version of it is used as `src`
in the theme.

task-2836942

Part-of: odoo/odoo#95974
2022-08-09 11:32:07 +02:00
Romeo Fragomeli 1fcd098af5 [REF] *: BS5: migration
Automated change made by a lot of RegEx to change all think that is
possible to automate.

https://getbootstrap.com/docs/5.1/migration

Task ID: 2766483

Part-of: odoo/odoo#95450
2022-07-07 13:30:24 +02:00
Thibault Delavallée d480ecea4e [ADD][MOV] mass_mailing_themes: move to community
Rationale

Due to business decisions mass mailing themes are moved to community repository.
As some other moves are planned, notably coupon or mobile UI that are coming
to community repository, this makes sense to have mailing templates along
with the mobile UI.

Having a responsive and mailing-friendly mailing is now part of community
standards.

For any questions please refer to decision makers.

Task-2903948

closes odoo/odoo#95379

X-original-commit: 58ec2382e4e16ca8cff468a7d731d1de84df66ff
Related: odoo/enterprise#29142
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-07-05 21:09:52 +02:00