Commit Graph
105034 Commits
Author SHA1 Message Date
Raphael Collet 72afd28230 [FIX] remove or convert old-API calls 2016-08-31 17:21:55 +02:00
Raphael Collet 16696b2a05 [FIX] openerp, web: make execute and call_kw invoke methods in the new API
Also refactor the test to prevent private methods to be remotely called.
2016-08-31 17:21:55 +02:00
Raphael Collet 604a1c5fcd [REM] api: remove method wrappers
Methods can no longer be called in both APIs.
2016-08-31 17:21:53 +02:00
Raphael Collet 8ea5f49391 [REM] models: remove _columns 2016-08-31 17:21:53 +02:00
Raphael Collet 32c762803a [REF] fields: add prefetch on new-API fields 2016-08-31 17:21:52 +02:00
Raphael Collet ddaa187f69 [IMP] fields: add translate on all fields, and normalize its value 2016-08-31 17:21:51 +02:00
Raphael Collet f8c845bbdb [REF] models: delegate o2m and m2m schema update to the field 2016-08-31 17:21:51 +02:00
Raphael Collet 31f829c394 [REF] models: replace old-API column get/set by field read/write 2016-08-31 17:21:50 +02:00
Raphael Collet 73bdc181ff [REF] fields: replace old-API _symbol_get/_symbol_set by field converters 2016-08-31 17:21:49 +02:00
Raphael Collet f49f80380e [REF] models: use _fields instead of _columns 2016-08-31 17:21:49 +02:00
Raphael Collet b33b455706 [REF] models: replace get_pg_type(column) by field.column_type
In method `_auto_init`, use new-API fields instead of columns.
Also remove the deprecated attribute `size` from reference fields.
2016-08-31 17:21:48 +02:00
Raphael Collet 2b587d34ff [REM] openerp.osv.fields: remove old-style function fields 2016-08-31 17:21:48 +02:00
Raphael Collet 0fc697a3f7 [REF] fields: implement sparse fields as computed fields 2016-08-31 17:21:47 +02:00
Raphael Collet b258f4b842 [REF] fields: implement company-dependent fields as computed fields 2016-08-31 17:21:47 +02:00
Raphael Collet 6956696eb2 [REM] models: remove _defaults 2016-08-31 17:21:46 +02:00
Raphael Collet 86599bcc5a [REM] models: remove _inherit_fields 2016-08-31 17:21:45 +02:00
Raphael Collet ff5e44d2de [REM] models: remove _all_columns 2016-08-31 17:21:45 +02:00
Denis Vermylen (dve) 6eca5d038f [FIX] website_sale: handle no partner address case
when purchasing products from website, if partner did not have a country set
the "pay now" button was broken. Now you get redirected to the billing form
to fill in your address.
2016-08-31 17:17:38 +02:00
Denis Vermylen (dve) c255342e8f [IMP] payment_*: change payment icon
take the payment icon from the acquirer image field, instead of a static
unchangeable icon. Change the acquirer image on all acquirers data.
2016-08-31 17:17:38 +02:00
Denis Vermylen (dve) 782c4b5665 [IMP] payment: hide fields on acquirer form view
Fields are hidden when needed, some moved to debug mode.
2016-08-31 17:17:38 +02:00
Denis Vermylen (dve) 23f3bde20d [FIX] payment: change custom acquirer to work
- custom acquirer auto_confirm field changed to none.
- changed default_acquirer_button to actually display a button
  used wire transfer's template (transfer_acquirer_button)
- set dependance to module_payment_transfer as it doesn't work without
  and use transfer as provider.

Note: This is a quick fix to make it work, it's quite ugly.
      Before the fix it didn't work an people duplicated the transfer
      payment acquirer and edited it.
      One downside for usability is that the payment icon will be the one
      from transfer.
2016-08-31 17:17:38 +02:00
Denis Vermylen (dve) 1a4af28067 [IMP] sale: remove website_portal from settings 2016-08-31 17:17:37 +02:00
Denis Vermylen (dve) 4ee51c9cfd [IMP] website_sale: move Pricelist menuitem
moved from catalag submenu to settings > eCommerce.
2016-08-31 17:17:37 +02:00
Denis Vermylen (dve) f90290d1c2 [IMP] website,w_sale: Website Admin settings view
- Add optional products and pricelists to ecommerce section
- add mail template sent when confirming a sale order
- rename and clarify using radio widgets
2016-08-31 17:17:37 +02:00
Denis Vermylen (dve) fbe3608c7e [FIX] web: avoid autoresize duplicates
In web_planner, changing pages would take more and more time after
a few clicks if autoresize was called on textareas. Every time we
would change page, autoresize was called on all textareas and added
an additional textarea for each one, doubling the amount on each page
change.
The autoresize function in dom_utils was checking too shallowly for
duplicates and created a new textarea where autoresize would again be
called upon on a later stage.
This commit fixes both problems.
2016-08-31 17:17:37 +02:00
Thibault Delavallée 275ee5825d [FIX] tools: sanitizer: decode pipe character
Mako uses pipe character in several occasions like |safe to tell an email is
safe. However the sanitizer will encode it, leading to template not correctly
rendered. Like other special characters used in mako, it is now decoded
after sanitize.
2016-08-31 16:27:55 +02:00
stefanorigano 262fe732ba [IMP] website: replace snippet thumbnails with better ones 2016-08-31 16:37:20 +02:00
stefanorigano 0cdfbc0fbe [REF] website: snippets layout/style improvements
* s_banner
    - Remove text-container hardcoded style (user will be able to use the
        new transparent color palette instead)
    - Improve indicators visibility on both dark or light bg
    - Cursor: pointer for navigation buttons
* s_cover
* s_quote: remove the whole snippet
* s_three_columns
* s_reference
    - Remove Quotes
    - Add new logo demo images
* s_button: rename from "Button" to "Call to Action" + some design
* s_feature_grid
2016-08-31 16:37:20 +02:00
stefanorigano 8c035a7a41 [IMP] web_editor: add transparent grayscale color palette
These colors were usually hardcoded in some snippets (.s_banner for
example) to increase text legibility over background images.

This commit will let the user personalize them.
2016-08-31 16:37:20 +02:00
stefanorigano 8ef4535327 [IMP] website: unable/enable snippet options for some snippets (parts)
* Remove background position and color options for parallax
* Add background/color options for .jumbotron (button and big message)
* Add background/color options for s_cover and s_banner text container
2016-08-31 16:37:20 +02:00
stefanorigano bcf2c87cd0 [IMP] website: adapt logo size to menu items 2016-08-31 16:37:20 +02:00
stefanorigano 937d299887 [IMP] website: replace images and better use them in snippets
* Reduce images number (remove unused ones)
* Improve images quality (so that they can be used for parallax too)
* Make them all available in the website library
* Snippet demo/default images are in a separate folder and a separate
record to allow theme customization (this was already the case for the
cover snippet but the system has been extended)
* Some snippet style improvements
2016-08-31 16:37:20 +02:00
stefanorigano a5400b7ad7 [IMP] website: add icons to all snippet options 2016-08-31 16:37:20 +02:00
stefanorigano 1634cad46c [REF] web_editor: editor UI style and stability improvements
* Review style of some UI components
* Rename some content
* Define a font-family less variable to be used to avoid that themes
customizations affect the UI. Note: theme should ideally not redefine
the font family of the body but of the #wrapwrap element but this is
done for safety.
* Overwrite other theme's customisations
* Minor style fixes
2016-08-31 16:37:20 +02:00
qsm-odoo 4d68d779dc [IMP] web_editor: force web_editor overlay option buttons to stay on one line
Before this commit, when the snippet was too narrow, the buttons broke
over multiple lines.
2016-08-31 16:37:20 +02:00
qsm-odoo c204d621bb [IMP] website_blog: use valid website snippet as default content for blog post
Adapt the default content of blog post to be a valid website snippet.
Previous content was not entirely possible to remove (there still was
a remaining .container) and was not easily customizable (user had to
remove it if he wants something great).

Note: maybe we should adapt the snippets so that they are callable with
custom content or do something like what has been done for default
content for job positions (see commit 00cfb0889b).
2016-08-31 16:37:20 +02:00
qsm-odoo 1c87f1d3bb [IMP] website(_blog): remove "Style" (blog-style) snippet option
The "bigger text" option was an useless option as redundant with the
summernote editor one.

The "narrow" option always resulted in an ugly layout with bugs in
many contexts.

Note: the styling classes are kept for compatibility for now.

+ Adapt demo data of website_blog which rely on the "narrow" option.
Use up to date snippets with reduced column width to get the same
result.
2016-08-31 16:37:20 +02:00
qsm-odoo d6f30345a3 [IMP] web_editor,website: rename "background image options" option
"Background Image Options" -> "Background Image Sizing"
2016-08-31 16:37:20 +02:00
qsm-odoo a7f7efac4c [IMP] web_editor: improve usability to select image in media dialog
Before this commit, we had to click on the image we want, then click
on save in the modal footer. Now we can also double click on the image
we want, with the same result.

Same goes for icons.
2016-08-31 16:37:20 +02:00
qsm-odoo 0659d94d7f [IMP] web_editor: open link dialog on double click on a link
(Also refactore the code so that the implementation is the same for
the media dialog opening on double click on an image).
2016-08-31 16:37:20 +02:00
qsm-odoo 323c949ec4 [IMP] web_editor: lint file rte.summernote.js 2016-08-31 16:37:20 +02:00
qsm-odoo 0305de1929 [IMP] web_editor: change tooltip for parent button in editor
"Select Container Block" -> "Select Parent Container"
2016-08-31 16:37:20 +02:00
Jeremy Kersten 80d65ab350 [IMP] website_payment: show payment method in footer
Xpath has been altered and logos displayed in right column or portal.

The pupose of these logos is to know when you arrive on the website (ecommerce)
 with which payment method you can paid.
2016-08-31 15:28:10 +02:00
Denis Vermylen (dve) 3d53a74052 [FIX] theme_*: restore category to theme
category was changed to "Website" so it'd appear under the website
category in the store, but it needs to be "Theme" otherwise it doesn't
appear in the "Choose your theme" menu after installing website.
2016-08-31 13:32:11 +02:00
Jeremy Kersten 5c0de8f00a [FIX] event: fix get_range_str and add tests
Fix format_tz call
Fix week and month computation
Add test wich tests change month and year !
2016-08-31 13:23:14 +02:00
Jeremy Kersten 7bcf255355 [FIX] payment_stripe: execute test on nightly only
Avoid runbot red with:
  ConnectionError: HTTPSConnectionPool(host=api.stripe.com, port=443):
  Max retries exceeded
2016-08-31 13:23:14 +02:00
Jeremy Kersten 7346eeb590 [REF] website_sale: tokenization - improve desgin
Update design for registered cards

@courtesy of @fhe-odoo
2016-08-31 13:23:14 +02:00
Raphael Collet e481cfce72 [FIX] base: make constraint on ir.model.fields.relation_table more robust
The constraint checks the table name with a regexp, and the latter crashes when
the field has value `False`.
2016-08-31 11:58:56 +02:00
Jeremy Kersten b717f3c4be [FIX] event - fix delta date compute
Before this commit 1st September is not Tomorrow of 31 August
2016-08-31 10:36:10 +02:00
Jeremy Kersten 890cb5dba1 [FIX] website_sale: multi-image, fix group assignation in res_config
Old code introduced an error, because every body was public user and
so the menu e.g. login appears even when you was logged in.

Courtesy of @kangol
2016-08-30 17:50:44 +02:00