Commit Graph
101139 Commits
Author SHA1 Message Date
Darshan Kalola 62406fa4bf [REM] point of sale: removed useless wizard and code
Never called or not used
2016-02-17 17:04:26 +01:00
Martin Trigaux 7d93f9904e [IMP] point_of_sale: remove complete_name and iface_fullscreen
complete_name is actually the existing orm field display_name
field iface_fullscreen is never used, cf TODO
2016-02-17 17:04:26 +01:00
Martin Trigaux 8ab5b8664a [IMP] point_of_sale: remove unused action
Never called
2016-02-17 17:04:26 +01:00
Darshan Kalola fcdd43010a [REF] point_of_sale: split files per model 2016-02-17 17:04:22 +01:00
Martin Trigaux d1c3c6518d [REF] point_of_sale: move files to appropriate folders 2016-02-17 16:28:27 +01:00
Christophe Matthieu 41d3c9b165 [FIX] web_kanban_gauge: max_value can be null 2016-02-17 16:06:57 +01:00
Richard Mathot 59ffd288b8 [FIX] website_sale_delivery: missing explicit dependency
1e936c9df4 assumes that website_sale_stock
is installed.

As website_sale_delivery depends on website_sale and delivery (that
depends on sale_stock), website_sale_stock should be auto-installed, but
not always BEFORE website_sale_delivery.
So we mark this dependency as explicit.
2016-02-17 15:57:28 +01:00
Richard Mathot 1e936c9df4 [IMP] website_sale_delivery: tracking number on customer portal 2016-02-17 15:28:38 +01:00
Géry Debongnie f508074851 [MERGE] web client: js libraries cleanup
Various steps have been taken to put the web client on a diet. Most
notably:

- remove many useless libraries
- custom builds for nvd3 and jquery ui
- remove web_editor (didn't work anyway)
- lazy loading of raphaeljs (for the diagram view)
2016-02-17 09:51:42 +01:00
Géry Debongnie 715a5ba096 [REM] web_view_editor: remove addon web_view_editor
It did not work anymore, and will be replaced by a new view editor in
the future.
2016-02-17 09:47:47 +01:00
Christophe Matthieu 7d6e63dddc [IMP] web_diagram: lazy load of jquery.mousewheel and raphael lib 2016-02-17 09:47:47 +01:00
Christophe Matthieu 2463d02050 [IMP] website: remove useless MutationObservers lib 2016-02-17 09:47:47 +01:00
Christophe Matthieu 4105da9c7f [IMP] website: remove useless jquery.placeholder lib 2016-02-17 09:47:47 +01:00
Christophe Matthieu 3cb7d907a3 [IMP] web_kanban_gauge: remove justgage lib and use d3 2016-02-17 09:47:46 +01:00
Christophe Matthieu 7fdd33c47b [IMP] web: move ZeroClipboard lib into website_links addon 2016-02-17 09:47:46 +01:00
Christophe Matthieu 831246fc9d [IMP] web: remove spin lib and replace by an image with css to spin 2016-02-17 09:47:46 +01:00
Christophe Matthieu 0208b91def [IMP] web: remove useless jquery.validate lib 2016-02-17 09:47:46 +01:00
Christophe Matthieu 1c02be8974 [IMP] web: remove useless jquery.notify lib 2016-02-17 09:47:46 +01:00
Christophe Matthieu a56f27a3c9 [IMP] web: reduce jquery-ui lib (remove useless modules)
Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, sortable.js, autocomplete.js, datepicker.js, menu.js, tooltip.js
2016-02-17 09:47:46 +01:00
Christophe Matthieu 1a2b1e69dd [IMP] web: remove useless jQuery.timeago lib
Replace call by moment(date).fromNow()
2016-02-17 09:47:45 +01:00
Christophe Matthieu 8d90abc66a [IMP] web: remove useless jquery.textext lib 2016-02-17 09:47:45 +01:00
Christophe Matthieu 63bbb87032 [IMP] web: reduce nv.d3 files size (remove useless models)
https://github.com/novus/nvd3

grunt concat:
css.src: ['src/css/axis.css', 'src/css/scatter.css', 'src/css/tooltip.css', 'src/css/bars.css', 'src/css/lines.css', 'src/css/main.css', 'src/css/pie.css']
js.src: ['src/core.js', 'src/dom.js', 'src/interactiveLayer.js', 'src/tooltip.js', 'src/utils.js', 'src/models/axis.js', 'src/models/scatter.js', 'src/models/multiBar.js', 'src/models/legend.js', 'src/models/lineChart.js', 'src/models/line.js', 'src/models/discreteBarChart.js', 'src/models/pieChart.js', 'src/models/discreteBar.js', 'src/models/multiBarChart.js', 'src/models/pie.js']
2016-02-17 09:47:45 +01:00
Richard Mathot 929ff48e17 [FIX] l10n_pa: bad XML indentation 2016-02-17 09:32:43 +01:00
Yannick Tivisse 76ed5965b7 [IMP] delivery: Do not open Put in Pack wizard if no related packaging_id
When clicking on the 'Put in Pack' button, do not open the wizard
to select the packaging_id if no packaging_id is available for this carrier
('package_carrier_type').

Example:
- If the carrier is Fedex, it makes sense to open the wizard
- If there are no packaging, it doesn't
2016-02-17 09:15:44 +01:00
Raphael Collet 92144ef64b [FIX] fields: do not add triggers for the fields of an abstract model
This avoids recomputing a computed field defined on an abstract model, which
crashes because the model's table does not exist in database.
2016-02-16 17:05:05 +01:00
Raphael Collet e3ed3d67fb [IMP] models: factor code in _onchange_eval
The factorization enables new-API onchange methods to return values as old-API
onchange methods.
2016-02-16 16:39:18 +01:00
Yannick Tivisse 631e8bd46a [IMP] Purchase: Prevent PO creation on Vendor Bills
On the field 'Add Purchase Order' on vendor bills, don't allow the
user to create a new purchase order.

The button 'Set to Done' is not clear. This button will prevent the
creation of new invoices for this purchase order. Done is not a 'final'
state and the naming is not clear. Fp proposes to rename the state
'Locked' and the button 'Lock Bills'.
2016-02-16 09:59:13 +01:00
Yannick Tivisse 006de6b38d [IMP] base: Remove ir.actions.todos on module install
And jump to the App Switcher automatically on module install/upgrade.
That way, we can remove a lot of ir.actions.todo in the code.
2016-02-15 17:40:47 +01:00
Fabien Pinckaers d2a20c324d [IMP] Usability on task: no need for sum since it's rewritten bellow (and could be confusing if >80 in list 2016-02-15 14:28:28 +01:00
Aaron Bohy 30c655b43d [FIX] sales_team: remove useless RPC
do_action() can directly be called with the xmlid.

Also some code linting.
2016-02-12 12:15:15 +01:00
Aaron Bohy a4dade389b [IMP] mail: batch RPCs at init
Remove the RPC to retrieve the action_id of the client action as do_action()
can take directly the xml_id, and batch the RPC to retrieve the menu_id with
the initial RPC used to fetch channel slots, emojis...
2016-02-12 12:04:02 +01:00
Aaron Bohy 452bf80aff [IMP] mail: remove 'Send Mail' button in Discuss
as it was more confusing than useful.
2016-02-12 12:04:01 +01:00
Aaron Bohy a1821d470a [REF] im_livechat: remove dummy match_rules() function
introduced in 9 at d2574b7018.
2016-02-12 12:04:01 +01:00
Christophe Simonis 9a805c90ed [MERGE] forward port of branch saas-9 up to d70fde0 2016-02-10 18:40:56 +01:00
Christophe Simonis d70fde0330 [MERGE] forward port of branch saas-7 up to cab5c48 2016-02-10 18:37:01 +01:00
Christophe Simonis cab5c480e2 [MERGE] forward port of branch 9.0 up to f7432ef 2016-02-10 18:33:01 +01:00
Christophe Simonis f7432efb95 [MERGE] forward port of branch saas-6 up to 07d7147 2016-02-10 18:17:21 +01:00
Christophe Simonis 07d7147846 [MERGE] forward port of branch 8.0 up to cdf21eb 2016-02-10 18:03:42 +01:00
xmo-odoo 686b039651 [REM] mistaken file addition 2016-02-10 17:38:37 +01:00
Jeremy Kersten 5d14c2c0ff [FIX] website_forum: don't display user profile link in post when it is private
Return 404 for seo when profile is private.
2016-02-10 17:09:20 +01:00
Raphael Collet 0b27a37156 [FIX] ir_translation: validate translation values and do not sanitize them
The value validation was de facto nullified by escaping invalid translations in
`XMLTranslator.process_text`.  Reimplement it by checking whether the
translated term can be translated back to its source term in the field value.
The sanitization of translated terms is now gone, as not all terms should be
sanitized (like attribute values).
2016-02-10 16:10:18 +01:00
Martin Trigaux 669b6f7b3d [FIX] tools: less strict evaluation of translations
Do not parse the translation of an attribute value.  The content of a
translatable node attribute (such as 'string') should not be tested for
XML/HTML validity: the value can contain special chars such as `&` in its
source and should not be escaped when evaluated.

This fixes escaped page title in the partner form
`Sales & Purchases` => `Ventes & Achats`
2016-02-10 16:10:18 +01:00
Denis Ledoux c2d230ad68 [MERGE] forward port of branch 9.0 up to 47bb1bd 2016-02-10 15:55:48 +01:00
Denis Ledoux 47bb1bd225 [FIX] account, purchase, sale, currency: companies rates
In Odoo 9.0, the field `company_id` has been moved
from the `res.currency` model to the `res.currency.rate`
model.

The different reports applying the currency rates on the amount
at date have not been updated according to this change. This
includes the sales, purchases and invoices analysis report.

Basically, before 9.0, there was one `res.currency`
per existing currency per company. A simple `JOIN`
on the `res_currency` table was therefore enough
to apply the currency rate.

From 9.0, the currency records are shared between
companies. It's the rates (`res.currency.rate`) that can be
set a on specific company. The simple `JOIN` on
`res_currency` is therefore no longer enough: the company condition
must be added. Only rates from the specific company
(e.g the company of the invoice) must be considered, or rates
without companies.

We take the opportunity to factor out the method, so, if a correction
must be done, it must be done in one place only.

opw-669129
2016-02-10 15:53:21 +01:00
Goffin Simon fbf6f2cd9b [FIX] delivery: Delivery method without redirect on courier provider's website
A UserError must be sent if the delivery method set on the delivery order
has no redirect on courier provider's website.

opw:668960
2016-02-10 14:46:11 +01:00
Olivier Dony e901ef2938 [FIX] website: confusion/dangerous config options for CDN
Users are tempted to enable all features they
see under the former "Speed" section of the
website settings, even if they have no idea
what they do.
One of them was `CDN Base URL` and had a default
value that was wrong and very likely to break
your website if enabled by mistake.

This commit replaces the default value with
a placeholder that looks more like a `sample`
URL, and makes the fields required when the
CDN option is enabled.

It also moves the whole "Speed" options to
technical features / debug mode.
2016-02-10 13:40:57 +01:00
Denis Ledoux 4c4ccd7b14 [FIX] account: settings, Assets management & Revenue recognition
The checkbox `Assets management & Revenue recognition`
actually installs only the assets management. The revenue
recognition is not installed when checking this box.

Actually, the revenue recognition is not even
available within the community edition. This box
couldn't therefore possibly install this module.

opw-669093
2016-02-10 11:25:08 +01:00
Denis Ledoux 911112c322 [FIX] mail: announcement bar URl displayed on print
On printing, the announcement bar URL was displayed
in the printing result.
e.g.
`https://services.openerp.com/openerp-enterprise/ab/register/...`
was displayed at the top of the print.

This is related to the revision 50a4ca31f8.

This is due to this simple typo, the according CSS rule was
never applied because of it.
2016-02-10 10:51:13 +01:00
Denis Ledoux a9c9f78ed9 Revert "[IMP] mail: remove deprecated annoucement bar"
This reverts commit 50a4ca31f8.
This causes retro-compatibility issues if you do not
update the `assets_backend` qweb views.

Closes #10853
2016-02-10 10:50:56 +01:00
Aaron Bohy d2574b7018 [FIX] im_livechat: match_rules: backward-compatibility
Add a dummy 'match_rules()' function for backward-compatibility of commit
d8605b79, as 'match_rules()' was called from  server-side 'im_livechat.loader'
template.
2016-02-10 09:42:42 +01:00