Commit Graph
104604 Commits
Author SHA1 Message Date
Jeremy Kersten ffa998d64c [IMP] website_membership: add search count
Show number of members found in the searchbox
2016-08-19 19:33:21 +02:00
Jeremy Kersten d8b7f6a60c [IMP] website_sale: show categories on mobile device
Task 20251
2016-08-19 19:33:21 +02:00
Jeremy Kersten 1feaee1daa [IMP] website_sale: show number of product found
Now you have the option to show the number of product found after one search.
2016-08-19 19:33:21 +02:00
Jeremy Kersten dedb3ce9ba [IMP] website_sale : add sort by
Now you can sort products by lst_price, name, ... via the UI

In some case the price list or b2b/b2c mode can altered the price
and the sort on lst_price can be sometimes wrong.
Eg: if price is displayed vat in (b2c), and mix rate of 6% and 21%, the sort
will be done on the htva price.
2016-08-19 19:33:21 +02:00
Jeremy Kersten 5189a66f5f [FIX] base: res partner fix name_get
Before this commit, if a partner was NOT company, but have 1 or more
contacts (delivery, invoice, ...), the nameget of the contact was empty.

Now we display the "<parent partner name>, <type contact>"
2016-08-19 19:33:21 +02:00
qsm-odoo b4cfe36b05 [IMP] *: replace snippet sections menu by a title
* web_editor, website, mass_mailing

This menu allowed to scroll to the snippets sections by clicking on
their corresponding icons. It was useless as the sections are not
taking a lot of height. This also appeared buggy as clicking on the
last icon highlighted only the second one as this second one was still
the first section visible on the screen when the last section was
fully visible.

This also added fours buttons to the interface which contains already a
lot of them. Now this is replaced by a title "Add blocks" which makes
the editor cleaner and also improved the performance to enter the edit
mode.
2016-08-19 17:44:28 +02:00
qsm-odoo cc2cd9108c [IMP] web_editor: put the "Quote" style after "Header" styles 2016-08-19 17:44:28 +02:00
qsm-odoo 74d7de465e [REF] website_blog: refactore cover option and change opacity behavior
* Isolate website_blog style
* Simplify/Correct the cover option JS
* Allow to modify the cover from the blog list page
* Change cover layout (use a more conventionnal odoo design with a
div which is full width, which contains a container(-fluid) then its
content) -> easier to customize.
* Refactore code to be understandable
* Change behavior of opacity filter: before this commit the cover
filter was not intuitive and did not work on IE or Edge, it mixed
the color of the bg-image and the bg-color in a complex way and the
opacity was just controlling if the image was visible clearly or not
(which led in general to ugly style if the opacity was used). Now, the
color in applied *on top* of the image so that its color changes the
hue of the underlying image. The opacity value controls only the
opacity value of the color to mix.

[MIGRATION] Note: as the opacity behavior has changed, the exact same
behavior is not reproductible at all. But for the change to make a bit
of sense in old databases, this should be applied for the field
"cover_properties" of blog posts (with changes in layout):

if cover_properties.background-color != "oe_none":
    cover_properties.opacity = 0.6
else:
    cover_properties.opacity = 1.0 - cover_properties.opacity
2016-08-19 17:44:28 +02:00
qsm-odoo ee19cf08e4 [IMP] website_blog: convert SASS to LESS 2016-08-19 17:44:28 +02:00
qsm-odoo d316dbd95c [IMP] website: rename "NEW/EDIT PAGE" buttons into "NEW/EDIT"
It is better because it then proposes to add a page, a product, a blog,
a forum, a job offer, ... (not only a page).
2016-08-19 17:44:28 +02:00
qsm-odoo f196afc80b [IMP] web_editor: come back to a more regular summernote colorpicker
Splitting the summernote colorpicker into bg colorpicker and foreground
colorpicker seems to have been a bad idea as people tend to click on
the recent color button thinking it will open a dropdown.

This commit keeps the design that had been decided for colorpicker
template and do not change the "background-color" snippet option.
However, the colors for background and foreground text changes are
now displayed in an unique dropdown again, with reviewed style.

+ adapt the rte tour
2016-08-19 17:44:27 +02:00
qsm-odoo 1d54874c13 [IMP] website: propose edition of company data in frontend
When clicking on the logo or the company adress in the website edit
mode, the user can now choose to be redirected to the form view of
the company so that it can edit the data.
2016-08-19 17:44:27 +02:00
qsm-odoo 3c98c78fc7 [IMP] website: allow to navigate through menus in edit mode
Now, when clicking on a menu item while being in edit mode, a modal
opens asking if we want to go to that page, edit that page, edit the
menu or do nothing (it only allowed to edit the menu item before).
2016-08-19 17:44:27 +02:00
qsm-odoo 0ab08050b9 [FIX] web_editor,website: stop closing web_editor dialog two times
This commit fixes two problems:

* Clicking on the save button of a web_editor dialog closed the dialog
two times because the button was created with the flag "close: true"
and binded to a handler which closes the dialog. This also prevented
to extend this handler by placing the this._super call in a deferred.

* Some web_editor dialog extended the save callback but forgot to use
the this._super, which prevents the "saved" event to be triggered
(currently not used anywhere but useful for custo and master).
2016-08-19 17:44:27 +02:00
qsm-odoo 9c07b67d10 [FIX] web_editor: visibility of customize snippet option button
Commit 57c09e8a8e was supposed to fix the problem but only made it
worse in some cases. Since the new option parenting system, the
customize button visibility should not be determined on creation as
parent and own options are appended on snippet focus. Also, removing
the dropdown header if it was alone was a bad idea as this is it which
contains the information of options and all the options have not
necessarily a <li/> tag in the dropdown.

For example, the many2one option has no <li/> in the dropdown and is
the only option of the field snippet. So with the previous commit, the
dropdown header was removed as there is no <li/> in the dropdown other
than this header. So as the header was removed, on snippet focus, there
was no way to determine the many2one option exists, so its on_focus
method was not called.

Now, the dropdown-header is always kept. The visibility of customize
button is determine on snippet focus.
2016-08-19 17:44:27 +02:00
qsm-odoo 1421c68207 [FIX] web_editor: adapt the forgotten rendering of updated contact fields
The frontend allow the rendering of fields thanks to converters and
their value_to_html and record_to_html methods. These methods were
changed with https://github.com/odoo/odoo/commit/3407fb70e4a5b16174234d10d97710572b6f808c#diff-d5a9a5d91bd3171e30e7facd628bdf5cL411.

The problem is that the web_editor also contains code which relies on
these methods and it was not adapted.
2016-08-19 17:44:27 +02:00
qsm-odoo ff9a9d703f [FIX] web_editor: properly handle many2one fields
The many2one fields and their search bar were not working anymore since
the loss of some functionnalities with commit b309f3ab54.

* The dropdown which regroups a snippet options list is hidden if it
does not contain any option. This was not the case anymore because it
now always contains a dropdown title. This is fixed by simply removing
this title if it is alone in the dropdown.

* Snippet options attached to an element whose parent is not editable
cannot be moved/deleted/duplicated as it is supposed to remain where
it is. This is often the case for many2one fields and the feature was
simply lost in the refactoring.
2016-08-19 17:44:27 +02:00
qsm-odoo 3049b154e9 [FIX] web_editor: paragraph dropdown style
Before commit a8ee18e172, the paragraph alignment dropdown menu was
too large for its content, so it was ugly. After that commit, it became
too small for its content, which is even more ugly.

This fix sets the width of this specific dropdown so that its content
fills exactly in (as with original summernote).
2016-08-19 17:44:26 +02:00
qsm-odoo f3d8ede492 [FIX] web_editor: make save/discard btns visible when too many options
The editor bar is sometimes filled with too many options, and these
hide the save and discard buttons on small screens. To solve the
problem, the description option (which take a lot of space) has now
a max-width and the save and discard buttons are always on top.
2016-08-19 17:44:26 +02:00
qsm-odoo 133df434f3 [FIX] website_blog: do not show current blog post as next post
At the bottom of each blog post there is a link to the next blog post
of the blog. If the current blog post is the last, the next blog post
which appears is the first one, which is ok. However, if there is only
one blog post in the blog, when viewing it, the next blog post which
was proposed was the current one (now nothing is proposed as next blog
post anymore).
2016-08-19 17:44:26 +02:00
qdp-odoo b17e4a0f6b [IMP] account: revamp statements and payments numbering.
Numbering of statements is not anymore automated, sequence of the journal is now only used for the numbering of account.move (for consistancy with payments). Name of statements now appears as 'reference'.
Cancelling of a statement line keeps in memory the old move's name to reuse it in the same fashion as for account.invoice (avoiding gaps in numbering).
Cancelling of a payment now keeps in memory the old move's name to reuse it in the same fashion as for account.invoice (avoiding gaps in numbering)
2016-08-19 17:41:36 +02:00
Aristobulo Meneses 814eae1fbd [FIX] website: avoid redirect to website after login
When logged in a user was redirected to the website instead of the backend.
This was due to a wrong group verification, at that point:
- request.uid = ID of the user authenticating (e.g. admin)
- request.env.uid = ID of the user that rendered the page (public)

As public does not belong to `base.group_user` group, the user was redirected to
the website.

Introduced at fd09ddb6 during migration.

Fixes #13203
Closes #13204
2016-08-19 17:16:30 +02:00
Raphael Collet 5c3a60eb50 [FIX] utm: in _dispatch, propagate errors
This avoids a miserable crash when switching between databases.
2016-08-19 16:35:25 +02:00
Thibault Delavallée 274e94d715 [REF] event: remove group_mail_scheduling as email scheduling is part of event management
In the interface using the email scheduler of events is limited to a group
that is not activated by default. However by default emails are sent and
therefore cannot be configured by the event maanger.

As managers should always be able to configure sent emails we decided to
remove the group and always give access to the email scheduling tab of the
event form view.
2016-08-19 15:49:37 +02:00
Thibault Delavallée df216b6bfe [IMP] base: limitate access to config settings to superuser or group_system members
Currently members of group_erp_manager (Access Rights) and group_system
(Settings) have theoritically access to config settings. However only
group_system members have access to the settings through the interface
as all menus are restricted to them. Moreover after changing a config settings
a check on ir.actions.todo is performed. This model is limited to group_system.

It is therefore not possible for group_erp_manager members to execute config
settings. This commit therefore change the check performed in config settings
to ensure user is superuser or a member of group_system to avoid unwanted
access rights errors further in the process.

[IMP] sale_stock: remove now unnecessary check
2016-08-19 15:47:54 +02:00
Srushti Patel 986b152f16 [IMP] product: ensure variant price is managed on the template
* variant prices should be read only on the variant
* added an help to explain how it works
* because variant prices are managed on the template via the Variant
  Prices button
2016-08-19 09:55:18 +02:00
Srushti Patel 9e84bf8217 [IMP] sale: remove payment term taken from partner on sale report
Normally payment term of the partner is set on the OS. However if you change
this behavior by manually removing it you probably don't want to have it
reappear in your report.
2016-08-19 09:55:01 +02:00
dut-odoo 8972bbd226 [FIX] gamification: goal definition: traceback when changing model
* self.model_id is already a recordset, no need to re-browse it
* id are expected in domain, not recordset

oversight from rev 0c649644db
2016-08-18 21:31:48 +02:00
Yannick Tivisse 8c91d690f0 [FIX] mail: Don't display follower settings (fa-cog) if not follower on the record
Y
2016-08-18 17:53:22 +02:00
Jainik Patel a4d7540ed9 [ADD] various: add missing icons for website apps 2016-08-18 16:45:38 +02:00
Haresh Shyara 0633bde576 [FIX] stock_account: stock_history report
* shadowing of "fields" import in the read_group function as it receives
  a "fields" arg. As we have to use fields.Datetime in this method,
  whe choosed to reimport it as "fieldsDatetime" to use it.
* cast not_real_cost_method_products.ids list to tuple, because
  psycopg2 only accept tuple for "IN" condition.
2016-08-18 15:48:49 +02:00
Thibault Delavallée 07a63ca22d [MERGE] event: improve emails sent by events and fix access rights issues 2016-08-18 15:33:23 +02:00
Jigar Patel 9f7d7c6809 [IMP] event: improve emails sent by event
* improve layout of confirmation and reminder emails
 * add default mails configuration on events: 2 reminders are added
   J-2 and J_15
2016-08-18 15:12:08 +02:00
Thibault Delavallée 6b87c731fb [FIX] event: fix access right issues
* Limitate rights of event user to reading an event

Event user should not be able to create events. Its rights should be limited
to reading events, creating and updating registrations. Only event managers
are allowed to create and modify events.

* Sudo access on ir.values in event config settings

Configuring events imply modifying auto confirmation parameter which is stored
into an ir.values. As this model is limited to values with user_id = uid we
have to sudo the access here as it is not a user-defined value.

* Add some tests for the various fixed issues
2016-08-18 15:09:40 +02:00
Thibault Delavallée 5916583885 [FIX] event: take contact data when changing contact
registration.onchange_partner_id() method updates registration contact data
(phone, email, name) based on the partner_id field. However the onchange
currently works only when no existing contact data is stored on the
registration. A second change of partner_id does not update the contact
data.

The condition is now inversed. This way when changing the partner, if it
has valid contact data, it will replace existing information.
2016-08-18 14:52:04 +02:00
Thibault Delavallée 450aa05cc6 [FIX] event: go to 1.0 (he deserves it) and fix typos in manifest 2016-08-18 14:41:36 +02:00
Martin Trigaux c73b2bd079 [I18N] export master source terms 2016-08-18 11:01:50 +02:00
Martin Trigaux a1a84834f9 [FIX] tools: correct typo in migration to new API
Avoid error during export of translation terms
2016-08-18 10:36:35 +02:00
Raphael Collet 16dece86b1 [MIG] openerp.report: convert to the new API 2016-08-18 09:32:45 +02:00
Raphael Collet d85bf78976 [MIG] openerp.tools.translate: convert code to the new API 2016-08-18 09:32:45 +02:00
Raphael Collet 1b59643d4b [MIG] openerp.service: convert code to the new API 2016-08-18 09:32:45 +02:00
Raphael Collet 41dbbe802c [FIX] add missing access rights on models 2016-08-18 09:32:45 +02:00
Raphael Collet 58cde6c2fb [MIG] openerp.modules: convert code to the new API
Also, convert function `init_models` to a registry method.
2016-08-18 09:32:45 +02:00
Fabien Pinckaers ecd9189684 [IMP] Allows to unlock a PO 2016-08-17 21:07:29 -07:00
Jeremy Kersten a4d8cf9ead [IMP] website_blog: allow to use publish date in future
Now, you can set the published date in the future.
There will be not visible by visitor until this date.

When a user publish a post, if the published date is in the
past, we update the publish date to now, else we keep the old
published date which one is in the future.
2016-08-17 10:32:57 +02:00
Jeremy Kersten 21bd473de7 [FIX] qweb: fix ir.qweb.field.contact
Before this commit when you edit a contact with the editor, you didn't see
the selected record before the save.

Now, you can edit a contact with the html editor.
We move the hacked field self (on res.partner) from website_partner to base.

2 bugs:
   field and record was reversed in call
   need to pass a browseRecord and not a dict, because we uses .env on it

This hack allow to use widget='contact' on the browse record
itself and not on a specific field from the browse record

Eg:
    <div t-field="partner.self" t-options='{
                 "widget": "contact",
                 "fields": ["address", "phone"]
    }'/>
2016-08-17 10:32:52 +02:00
Jeremy Kersten 4cfd86edaa [IMP] website: rename xml_id website.info to website.website_info
After this commit, the end user will be able to create the page /page/info.
2016-08-17 10:24:59 +02:00
Jeremy Kersten 6defad0340 [IMP] base: display the module which have missing dependences.
This commit closes #11796
2016-08-17 10:24:59 +02:00
Yannick Tivisse 2aaad4d256 Revert "[IMP] web,web_settings_dashboard: Move 'About' menu to settings dashboard"
This reverts commit 328af5dc86.
2016-08-17 10:07:51 +02:00
Yannick Tivisse 328af5dc86 [IMP] web,web_settings_dashboard: Move 'About' menu to settings dashboard
Fp request: In the user preferences menu, remove "About Us" and put the version
number in the Settings dashboard somewhere, as well as the link to switch to
developer mode. Odoo is not a desktop application anymore.
2016-08-17 09:12:04 +02:00