Commit Graph
96659 Commits
Author SHA1 Message Date
Simon Lejeune cd9e5d2e12 [REF] web, website: autosize in assets_common 2015-07-23 14:02:41 +02:00
Simon Lejeune 11c9baa1a2 [FIX] crm: planner: bootlint and useless style removal 2015-07-23 14:02:41 +02:00
Simon Lejeune 5666cd3643 [REF] web_planner: javascript & dom cleaning
* Correct inheritance of async method
* Correct calls to do_hide/show
* Fetch the template in `willStart`
* Correct bootstrap structure for the layout, remove useless branding
  and dom depth
* Each planner page is now in its own bootstrap grid
* Compatibility between both webclients
2015-07-23 14:02:40 +02:00
Simon Lejeune 2de2a8064c [ADD] website: o_hidden class used in widget's do_show/do_hide/do_toggle 2015-07-23 14:02:40 +02:00
Simon Lejeune 74c5f772f3 [ADD] web: framework: do_toggle on widget 2015-07-23 14:02:40 +02:00
Joren Van Onder b5967cc071 [REF] website_sale: port to new web_planner 2015-07-23 14:02:40 +02:00
Joren Van Onder e7f6f1e44a [REF] website: port to new web_planner 2015-07-23 14:02:40 +02:00
Joren Van Onder 73aac228ef [REF] crm: port to new web_planner 2015-07-23 14:02:40 +02:00
Joren Van Onder 05dfa34870 [REF] project: port to new web_planner 2015-07-23 13:56:07 +02:00
Joren Van Onder b2eafca067 [REF] web_planner: refactor to make less brittle and reliant on layout
This introduces a new way to define web_planners. They now take the
following form:

<template id="project_planner">
    <t t-call="web_planner.pages">
    <t t-call="web_planner.category">
        <t t-set="menu_categorytitle" t-value="'Prepare'"/>
        <t t-set="menu_categoryclasses" t-value="'fa-flag-checkered'"/>
        <t t-call="web_planner.page">
            <t t-set="page_title" t-value="'Welcome'"/>
            <t t-set="hide_mark_as_done" t-value="True"/>
            <t t-set="hide_from_menu" t-value="True"/>
            <!-- content here -->
        </t>
    </t>
</template>

The menu is not manually created anymore, it is automatically generated.

Pages do not have to be part of a category and can just be defined as
children of web_planner.pages. A page can have hide_mark_as_done and
hide_from_menu, these are optional and will both default to False when
omitted.
2015-07-23 13:56:07 +02:00
Nandan Jani c505f00c3e [ADD] stock,delivery: delivery slip for pickings 2015-07-23 13:46:51 +02:00
Damien Bouvy 53f138fc41 [FIX] sale_contract: modify transifex config file to reflect module name change
[IMP] payment_ogone: a single import of datetime is usually enough
This commit also removes a "0" file that was commited by accident
2015-07-23 11:51:59 +02:00
Damien Bouvy e8fa3c0669 [IMP] website_quote: display breadcrumb when viewing an online quote 2015-07-23 11:40:31 +02:00
Damien Bouvy 6ff851633a [IMP] hr_timesheet: do not display "Cost/Revenue" stat button in contract template form view 2015-07-23 11:40:31 +02:00
Nicolas Martinelli 3124e3faab [FIX] payment_ogone: convert date received by Ogone
Ogone sends back the date with format MM/DD/YY
See https://secure.ogone.com/ncol/param_cookbook.asp

opw-642757
2015-07-23 11:40:30 +02:00
Damien Bouvy fa7f9ed560 [ADD] sale_contract_asset: link module between account_asset and sale_contract
Allows you to set deferred revenue categories on your contracts and contract templates; contracts will set their revenue category on the lines of their invoices
2015-07-23 11:40:30 +02:00
Damien Bouvy ecdb8a60cb [IMP] sale_contract: recurring view refactoring, new fields and unit of measure
- add contract_type field on account.analytic.account and real_quantity on account.analytic.invoice.line
- refactor contract form and list views for better clarity (hide unnecessary fields depending on the type of contract)
- divide account_analityc_account class according to contract type for future work
- divide contract template menu in 3 menus depending on contract_type
- add on_change_uom behaviour on account recurring lines
- rewrite tests in python
- add new report (pivot & graph)
- end date of contract is now computed from the template recurring rules
- small fixes & usability improvements
2015-07-23 11:40:30 +02:00
Damien Bouvy d8f0231afc [RENAME] account_analytic_analysis -> sale_contract 2015-07-23 11:40:30 +02:00
Martin Trigaux 20dbd2675a [FIX] account,sale: helper message
search tool instead of tool search
Courtesy of Lionel Sausin
2015-07-23 11:30:42 +02:00
qsm-odoo 22bb892b80 [FIX] calendar: Notification (style and new API)
for compatibility with the enterprise edition.

Also add type=button as the type attribute should always be specified for the
<button> element (different browsers may use different default types).
2015-07-23 10:51:12 +02:00
qsm-odoo 86c399f3bd [IMP] web: New notification system
Backport of the Notification system
2015-07-23 10:51:12 +02:00
Géry Debongnie 84197b51ee [FIX] web_kanban: fix problems introduced by someone
Someone really smart decided to change web_kanban by moving something
from web to web_kanban.  This makes sense, but it is a problem because
the code in web is not shared between enterprise and community, but
web_kanban is shared.

Also, it was put in kanban_view.  If we have a module system in
javascript, is might be a good idea to use it.

So, this commit moves the code in a new file, and update the code to
the last version from enterprise. Yay for two codebase in parallel.
2015-07-23 10:07:18 +02:00
Aaron Bohy a500f3b01b [IMP] web(_kanban): accesskeys for switch buttons
More elegant solution to add accesskeys on switch buttons for list, kanban and
form views.
2015-07-23 09:25:18 +02:00
Géry Debongnie d5a8ad53e6 [REM] web_kanban: remove sass and css files
web_kanban use less, but the old sass and css files were still there.
As a result, some people still try to change them, but it is useless.
2015-07-23 09:00:23 +02:00
Christophe Simonis 3ea8d14d2b [FIX] account,analytic: move test from account to analytic 2015-07-22 19:11:44 +02:00
Christophe Simonis e182f19694 [FIX] *: various bug were introduced during last forward-port 2015-07-22 18:33:04 +02:00
qdp-odoo 11d153ca9a [FIX] l10n_si is back, compliant with the new accounting 2015-07-22 16:43:12 +02:00
Christophe Simonis 67366dfb5e [MERGE] merge upstream branch.
Forward ports generates a lot of conflicts to resolve. Rebasing
(even with rerere) will force me to re-resolve most of the conflicts.
2015-07-22 16:29:42 +02:00
qdp-odoo 8ac40acb0d [IMP] account*: various usability improvements 2015-07-22 16:19:02 +02:00
Christophe Simonis 2cf91d16a5 [MERGE] forward port of branch saas-6 up to 63e92cb 2015-07-22 16:17:54 +02:00
Christophe Matthieu 2989d84397 [FIX] website_sale: 'website_sale_options.website_sale' module name is use twice 2015-07-22 16:16:04 +02:00
Christophe Simonis 63e92cbc96 [MERGE] forward port of branch 8.0 up to 9abf868 2015-07-22 14:09:00 +02:00
Martin Trigaux 9abf868948 [FIX] google_calendar: missing part of caac19c1
Modify all references of google_attendee['email']
2015-07-22 12:22:35 +01:00
Nicolas Lempereur c0e24fc9ce [FIX] event_sale, website_event_sale: treat edge case of 0 seats_max
When the max seats available is set to 0, there should not be a limit to
the seats available.

Previously this was not taken into account in the frontend event ticket
sale, so an event would appear to be sold out.

fixes #6999
opw-645542
2015-07-22 12:32:15 +02:00
Christophe Matthieu d74e0c3e9d [FIX] web: database_manager.html include cleditor
The cleaditor.js library no longer exists.
2015-07-22 12:15:25 +02:00
Christophe Matthieu b6ddfe617f [FIX] base, web : move apps.js from base to web
'base.apps' JavaScript module 'require' the web widgets. This module is only useful if web is installed.
2015-07-22 12:15:25 +02:00
Jérome Maes 99ac98a064 [FIX] im_odoo_support : remove incompatible code, and fix namespace
The removed code stood for optional dependencies to im_chat module (integrate 'odoo support' in chat contact list). Since the new javascript system (require and define) doesn't allow optional dependency, this code will always crash if im_chat was not installed, causing warning in the js console.

The 'im_livechat.im_livechat' js dependency is a wrong conversion of the code to the new js system. im_livechat is not a dependency, but is loaded from OpenERP service server. Since this one runs under odoo-saas6 version, im_odoo_support will load js code fomr this version, and so require to use 'openerp' js object instead of the 'require' dependency.
2015-07-22 12:15:25 +02:00
Christophe Matthieu 242e5231f0 [FIX] web, mail: move 'mail.compatibility' in mail
'mail.compatibility' javascript module require 'mail.mail'
2015-07-22 12:15:25 +02:00
Christophe Matthieu fe0885f28a [FIX] web: move 'web_kanban.Many2ManyKanbanView' in web_kanban
'web_kanban.Many2ManyKanbanView' javascript module in web require 'web_kanban.KanbanView'
2015-07-22 12:15:25 +02:00
Christophe Matthieu 264bb780a1 [IMP] web: web modules return readable logs and phantomjs logs
boot.js log:

* ``Missing dependencies``:
  These modules do not appear in the page. It is possible that the JavaScript
  file is not in the page or that the module name is wrong
* ``Failed modules``:
  A javascript error is detected
* ``Rejected modules``:
  The module returns a rejected deferred. It (and its dependent modules) is not
  loaded.
* ``Rejected linked modules``:
  Modules who depend on a rejected module
* ``Non loaded modules``:
  Modules who depend on a missing or a failed module
2015-07-22 12:15:25 +02:00
Christophe Matthieu 71732dceb6 [IMP] web: module can be asynchronous loaded if it return a deferred
Each module can return a deferred. In that case, the module is marked as loaded
only when the deferred is resolved, and its value is equal to the resolved value.
The module can be rejected (unloaded). This will be logged in the console as info.

Remove if_dom_contains from the website, the modules return a rejected deferred if
the DOM doesn't contains the seleted values.
2015-07-22 12:15:24 +02:00
Martin Trigaux caac19c102 [FIX] google_calendar: attendee's email is not required
You may get a google_attendee without email from Google, cf #3853
2015-07-22 10:37:50 +01:00
Martin Trigaux 4ac9bfb619 [I18N] website: missing terms
The content of website.layout_footer_copyright is modified in several modules
but the terms were missing in .pot file.
2015-07-22 09:40:32 +01:00
Aaron Bohy dfad968515 [FIX] board: forgotten o-closed-menu
in the renaming of commit 27df65c878.
2015-07-22 10:31:21 +02:00
Martin Trigaux 0fb1b6a856 [FIX] point_of_sale: method expects id
The method add_payment expects to recieve the id of a journal, not a browse
record. Introduced at 4b548d9
Courtesy of bluesoft83
2015-07-22 08:54:21 +02:00
Goffin Simon aa3ce8b594 [FIX] crm: Company name in crm lead
The onchange on partner field must not fill the company name if
the partner is not a company or not in a company. If the partner
is not a company, the contact name field must be filled with the
partner name.

opw:644878
2015-07-20 16:30:41 +02:00
bpa-odoo 3eed48ffcf [IMP] stock: change reordering rule stat button text
Now depends on the number of reordering rules. If the
number == 1, the min and max qty for this rule are
displayed instead of the "Reordering Rules" string.
2015-07-20 15:47:26 +02:00
Goffin Simon e0ceab9efd [FIX] calendar: group_by with calendar
Delete the code introduced by 656f8241d5
Group by didn't work in calendar tree view, group of records showed (0)
as number of related records for each group.

closes #7602
opw:644735
2015-07-20 15:41:47 +02:00
David Monjoie df9725df26 [IMP] web_editor,website: added scalable margins in less
The original commit by fka used to define less variables like this:
@px-4: 4px
@px-8: 8px

The goal was to be able to change the margin values in
media queries for smaller screens.
However, as the less is only compiled once in css, those
variables didn't really help as you couldn't redefine them
from inside a media query and have the less magically
reassign the margins on the fly.

I created less helper functions to be able to easily redefine
the margins for smaller screens from inside media queries.

The task also required to replace the nbsp in the html by the
newly created mr and ml classes.

This is also the first phase of the sass -> less transition.
2015-07-20 15:00:24 +02:00
qdp-odoo 61ecac539e [FIX] account: improved message that appears on bills when a supplier has some outstanding debits 2015-07-20 11:40:06 +02:00