Commit Graph
94321 Commits
Author SHA1 Message Date
Géry Debongnie c8a8fec622 [REF] web_X: update to the new module system 2015-03-18 09:01:49 +01:00
Géry Debongnie 4b77bbf51c [REF] web_kanban: update to the new module system 2015-03-18 09:01:49 +01:00
Géry Debongnie 99b8674761 [REF] base: update apps to the new module system 2015-03-18 09:01:49 +01:00
Géry Debongnie 5ed9c00e30 [IMP] web: add compatibility layer
This compatibility file reexports every symbols from the modules to the
old openerp namespace.  The goal is to allow old unconverted odoo addons
to interact seamlessly with the new web client.
2015-03-18 09:01:49 +01:00
Géry Debongnie e8a00bc50d [REF] web: add module system to the web client
This commit introduces a new module system for the javascript code.
Instead of using global (namespaced) variables everywhere (like
openerp.web.whatever, ...), each file declare one (or more) module
with its dependencies.  Each module will be loaded after its
dependencies, and will be given a reference to the return values.

This change is a massive departure from the way the client worked
previously.  It will sadly break some/most history, but I am sure that
the future git ecosystem will allow you to easily browse the history
past this revision (one can dream).

This commit feature:
* main namespace is now odoo instead of openerp
* a way to define modules and dependencies (inspired by requirejs)
* many files have been splitted in simpler subfiles
* basic support for debugging in odoo.__DEBUG__
* no global variable (i.e. nothing in window.openerp)
* many bug fixes, many new bugs

Future vision: this modularization should simplify future code
development, simplify debugging and will allow a serious testing effort
2015-03-18 09:01:49 +01:00
Géry Debongnie 9036084f06 [FIX] calendar/mail: correctly use registries
These two addons were doing evil things with the way registries works.
1. they create a new registry to add something in it,
2. they replace the existing reference with another
3. they don't use the "add" method.

Seriously, original coder, what were you thinking?
2015-03-18 09:01:48 +01:00
Hitesh Trivedi f2987ea412 [IMP] website_blog : onboarding. The cover image of a blog post is editable (opacity, color, size, ...). Add a new tour, views improvements and new default images 2015-03-17 09:09:27 +01:00
Hitesh Trivedi 5b9276bf29 [IMP] base : remove the has_image field which is not used anymore 2015-03-17 09:09:27 +01:00
Jérome Maes eb62431317 [FIX] website_forum : clean template by removing useless contruction. 2015-03-16 15:04:54 +01:00
Richard Mathot 8a857fad07 [REM] hr_expense,hr_holidays: unnecessary context added by ff1d3849af 2015-03-16 09:24:00 +01:00
Fabien Pinckaers 2390289d4a [IMP] typo 2015-03-14 23:12:22 -07:00
Fabien Pinckaers c18644ddab [IMP] better tooltip / button 2015-03-13 00:03:07 -07:00
Parth Gajjar f76ca21b15 [IMP] website_forum : improve tag ordering, add 'in menu' checkox when create a forum, customize welcome_message on a forum, better fetch link title when insert it, display answers of a question on form view, ans some changes in faq 2015-03-12 15:41:10 +01:00
Ajay javiya 9804ee91c5 [FIX] sale_stock: traceback when create a sale order 2015-03-12 15:02:51 +05:30
Yannick Tivisse 386ec152ec [IMP] web_kanban: rebuilt kanban.css from sass by using the makefile 2015-03-11 15:45:28 +01:00
Yannick Tivisse 9ec5240a1a [IMP] Kanban view, better layout for all the items : messages, tags, ... 2015-03-11 15:45:28 +01:00
Yannick Tivisse 27a7cab52b [IMP] group by product_template,serial_number in stock valuation reporting 2015-03-11 15:33:01 +01:00
Mitesh Savani cf925c2a58 [TEST] website_forum: add testing tour for the forum. 2015-03-11 14:58:20 +01:00
Ravi Gadhia dc3fbb17fa [IMP] ir_ui_view, view_form: add information about the user
being able to create and write on many2one and many2many records in a form view.

Indeed before this commit users had always the possibility to create or edit records
leading to a crash if no access rights were granted. Now the option is
not displayed if the user has no rights to do it.

Tests have been added for this feature.
2015-03-11 11:21:18 +01:00
rmu-odoo 420479658e [IMP] procurement: display number of procurements in exception 2015-03-11 11:15:36 +01:00
Amit Vora d6fe36f1f7 [IMP] sale: put stat button with invoices on sale order.
invoice_exists field has been removed, because invoice_count can be used when the
old field was used.
invoiced_rate field has been removed, because it was never used except in a
test.

Also added a stat button with deliveries on sale order.
2015-03-11 11:13:37 +01:00
Nicolas Lempereur 6de2fa858a [IMP] doc: separate pivot view
the type="pivot" attribute doesn't seem to work, in the code when
it works, `<pivot>` is used and has two undocumented attributes.
2015-03-11 10:52:02 +01:00
Hitesh Trivedi 51cdceba3e [FIX] web: automatic scroll towards tour popups that are not on screen 2015-03-11 10:24:35 +01:00
Christophe Simonis 0a65947499 [MERGE] forward port of branch saas-6 up to 648a558 2015-03-10 19:25:43 +01:00
Christophe Simonis 648a558dd7 [IMP] stock: speed up _location_used method. 2015-03-10 19:07:26 +01:00
Christophe Simonis 41ab66be78 [FIX] point_of_sale: search tax_ids key in the right place 2015-03-10 19:01:04 +01:00
Christophe Simonis 9eccc71a14 [MERGE] forward port of branch 8.0 up to c0496ed 2015-03-10 18:33:30 +01:00
Christophe Simonis c0496ed03a [MERGE] forward port of branch saas-3 up to f8a9405 2015-03-10 18:00:43 +01:00
Christophe Simonis f8a94057e5 [MERGE] forward port of branch 7.0 up to a5e3269 2015-03-10 17:51:16 +01:00
Nicolas Lempereur a5e32690b0 [FIX] tests: UTC used in test when it should not
The test for account followup use UTC time, but the default `date_maturity`
and `date_due` of an account invoice come from fields.Date.context_today`.

One failing test for project_timesheet also used `today` instead of
`context_today`.

So depending on the test user timezone, an error of one day (if UTC time
and user time are on different day) occured which failed the tests.

For example:

* user has GMT+1 timezone, test fails 0:00am–1:00am (11:00pm-0:00am in UTC)
* user has GMT+3 timezone, test fails 0:00am–3:00am (9:00pm-0:00am in UTC)

This fix removes UTC use in the tests.
2015-03-10 17:33:43 +01:00
Xavier Morel ef020a2574 [FIX] web_calendar: conversion of moment format strings to fullcalendar
AM/PM format specifier wasn't correctly converted, and was thus
displayed as a literal A/a in fullcalendar
2015-03-10 17:31:08 +01:00
Xavier Morel ddab9f8125 [FIX] web_calendar: display view's @string in quick create dialog
The quick create popup tried to look up the parent's .string and
.name (or the parent's field_widget's) *but* the calendar view didn't
have a .string, and its .name gave priority to the view's name (as
returned by fields_view_get) as opposed to its @string.

Store the view arch's @string to CalendarView#string, so the quick
create dialog can find and use it.
2015-03-10 17:31:07 +01:00
Christophe Simonis 058cfd7a86 [FIX] hr_timesheet: correct context used in action 2015-03-10 17:28:18 +01:00
Xavier Morel 82fee7dfe8 [FIX] web_calendar: incorrect style of quick_create dialog
Replace jquery-ui dialog by bootstrap modal
* fixes general styling (jquery-ui styled heading)
* fixes z-index stacking (jquery-ui dialog appeared on top of
  "slow-create" boostrap modal)
* fixes disappeared close button
2015-03-10 17:03:19 +01:00
Jamin Shah 5428d46280 [IMP] analytic: better chatter message at contract creation, based upon its type 2015-03-10 16:39:30 +01:00
Denis Ledoux 89093a2616 [FIX] hr_timesheet_sheet: performance improvment of timesheet report
It always better to avoid doing the same join multiple times when
possible.

opw-629857
2015-03-10 16:20:40 +01:00
Jamin Shah a25d06815f [IMP] account: add product to invoice demo data
This will avoid "undefined" data in "Invoice Analysis" reporting view.
2015-03-10 15:40:59 +01:00
Nandan Jani 742acbb454 [IMP] website_quote : make history work and clean the template and refactor js. Improved update quote button when quotation is accepted it will display back to sale order button, and updated Edit Template link. 2015-03-10 15:29:19 +01:00
Nandan Jani ed9f8fdbb4 [IMP] website_quote: allow the user to print web quotation to pdf. This required to add col-xs-XX class on snippets, extract SaleOrder Content into a new template to create the report to print. The hidden-print class has been added into rendering report style, since wkhtmltopdf don't really support media-print CSS class.
Conflicts:
	addons/website_quote/data/website_quotation_demo.xml
2015-03-10 15:29:19 +01:00
Nicolas Martinelli f7de3f0603 [FIX] account: product variants prices in invoices
when a customer invoice is created directly,
if a product variant is selected,
it now computes the price from the product variant and
not from the product template.

opw: 629285
2015-03-10 14:56:25 +01:00
David Monjoie 6758b4cfc5 [FIX][REF] purchase: prevent confirming order if no stockable item
After discussing with jco, we decided to keep it simple and have a coherent behavior between different versions, we then changed the behavior from the one of jbefficient PR at https://github.com/odoo-dev/odoo/commit/92adf673f7bed26b89b441b8fcd4d4061d685fb3.
2015-03-10 14:22:32 +01:00
Nicolas Lempereur 9abf7a2010 [FIX] mass mailing: keep menu when back in backend
The menu was not present in 8.0 when going back from the mass mailing email
composer to the backend. This fix adds the current action id as a return_action
query string parameter and return to the correct action.

fixes #5591

opw-629526
2015-03-10 13:51:08 +01:00
Jérome Maes f798d84322 [FIX] website_rating_project_issue : fix the domain to retrieve rating of particular project and use website.image_url to display user avatar. 2015-03-10 13:05:44 +01:00
Amit Vora d4990c1b4c [MOVE] contact: module merged in mail. This module contains only one menu item
to display contacts in the Messaging menu. In order to lessen the number of modules this
view has been directly integrated into the mail module.
2015-03-10 11:45:46 +01:00
Denis Ledoux 9e4a8e814f [FIX] mail: suggested recipient for emails without author
When a message had no author (this is accepted),
a recipient without full_name, name and email address
was added to the suggested recipients of the thread,
leading to a "(no email address)" within the suggested recipients,
which is not really useful.

opw-629797
2015-03-10 11:38:44 +01:00
Bhavik Bagdiya 30b70cf573 [IMP] stock: click on the Kanban card to open all operations 2015-03-10 11:36:19 +01:00
Géry Debongnie 1fe4cef530 [FIX] web: fix issue with search view input
This patch hopefully solves an annoying issue with the search view:
when the user types really fast (or uses a barcode scanner for example),
the resulting search string was (sometimes) missing the last few
characters.  I'm unclear on the exact reason why it happens.  From the
code, I can only guess that it happens because the scanner use a TAB
key instead of ENTER (TAB is handled in keydown event, ENTER in keyup),
or that the key events aren't in a correct order (if the user press a
key A, then press ENTER, then release ENTER, then release A, it results
in an empty key).

Anyway, the way this patch probably solves the issue is by using the
keypress event for triggering the search view.  I hope that in every
case, the keypress event are correctly ordered.  It leads to some code
I'm not really proud of this patch, but the key event handling are
quite messy.  Also, I need to handle the search string also when the
keyup event is fired, because it might change the search (for example
backspace trigger a keyup, but not a keypress).
2015-03-10 11:28:56 +01:00
Bhumi Patel c73c6e757d [IMP] account_analtytic_analysis: Contract/Analytics field appear in the Sales Order after enabling full accounting features
Code courtesy of Bhumi Patel <bpa@openerp.com> and Yannick Tivisse
<yti@odoo.com>
2015-03-10 10:44:21 +01:00
Denis Ledoux a8d520552b [FIX] website_quote: do not display notifications in website quote
Some information should be hidden from the customer.
Changes of price, for instance.

opw-629746
2015-03-10 10:39:43 +01:00
Jay Patel ff45ff4864 [FIX] stock_calendar: move ugly button on Procurement Exceptions form view 2015-03-10 10:28:39 +01:00