Commit Graph
7570 Commits
Author SHA1 Message Date
Gaurav Panchal 3fe06da634 [IMP] project,project_issue,sale: display the current contract state on some various objects like issues or tasks.
Implements a dynamic widget for selection fields to display this state with color codes.
2015-05-08 11:20:54 +02:00
Christophe Matthieu 9de486eef5 [FIX] web: x2many field: when a record is create (with wizard) the starting_ids must be empty because if they are a onchange, the field recieve again the create commands (duplicate lines). Add destroy method to release the view event garbage 2015-05-06 12:09:29 +02:00
qdp-odoo c04065abd8 [IMP] accounting v9. Yeeeeaah 2015-05-05 17:28:04 +02:00
Frédéric van der Essen 6d31ba116c [IMP] web: add traceback to javascript error reports ( on Chrome and FF ) 2015-05-04 14:13:44 +02:00
Christophe Matthieu ce114bebd8 [IMP] test_new_api: add field and template to test the X2many communication between web client and server side 2015-05-04 12:24:52 +02:00
Christophe Matthieu 81d57c1cee [IMP] web: form_relational_widget: x2many in list view trigger an onchange on blur the x2many after the onchange of each line 2015-05-04 12:24:51 +02:00
Christophe Matthieu 6c0376e932 [IMP] web: form_relational_widget: remove unused javascript code 2015-05-04 12:23:37 +02:00
Aaron Bohy 560386a752 [FIX] ControlPanel: search options visible
Show the searchview buttons area if there is no searchview displayed in
the ControlPanel, since client actions may insert elements into it.
2015-05-04 08:41:07 +02:00
Arthur Maniet 7bede13b43 [ADD] web utils: xor function 2015-04-30 12:18:46 +02:00
Vidhin Mehta e09ea0de92 [IMP] web : replace timezone warning icon with a form widget 2015-04-30 11:24:43 +02:00
Yannick Tivisse 74f3cbc6a6 [IMP] New design : menus reorganization
- Several Modules have been splitted into several apps
  Examples :
      Human Resources : Splitted into Leaves, Recruitment, Expenses, Appraisals, Timesheets, Employees, Payroll
      Marketing : Mass Mailing, Events, ...
      Messaging : Chat, Agenda, Notes, Address Book, ...
- Generally, the related reports have been moved in the apps, as last menu
- Also, configuration menu (no_one group) have been moved into a config root menu
  exception made for the warehouse and lunch modules
- Configuration for typical frontend modules have been moved into the website settings
  Related modules : Ecommerce, blog, slides, forum
- When they are present, menus like 'product' or 'customers' have been moved
  ex : Customers in Sales menu, Product in POS menu
- A lot of sequences and xmlids have been added or modified in this commit
- List of apps :
1  Chat : Inbox, Channels
2  Agenda : Calendar
3  Notes
4  Address Book : The view contact is still laying in the mail module (1 app => 2 icons)
5  eCommerce : Still to define : Config + Orders Analysis + Shipping + incoming Amazon module
6  Sales : Dashboard (Sales Team Kanban), CRM, Sales (note that they are splitted into 2 submenus)
         Assignation, After-Sales (Invoicing and Services), Reports
7  Point of Sale : Dashboard (POS status), Orders, Reports
8  Project : Dashboard (Project Kanban), Search (all tasks, issues), Incoming Forecasts module, Reports
   Project.issue.version feature has been removed completely
9  Members : Dashboard (Members Kanban), Report, Config
10 Timesheets : Time Tracking, Approvals, Reports
11 Purchase : Purchase, Control (Products and Bills)
12 Warehouse : Dashboard (Warehouse Kanban), Operations, Inventory Control, Schedulers, Configuration
13 Manufacturing : Same menu structure
14 Mass Mailing : Mailings, Campaigns, Reports
15 Events : Events, Reports
16 Lead Automation : Campaigns, Reports
17 Surveys : Surveys, Reports
18 Human Resources : Dashboard (Departments Kanban), Employees, Contracts, Engagement (Gamification)
19 Recruitment : Job Positions, Applications, Resumes & Letters, Reports
20 Expenses : Expenses, Approvals, Reports
21 Leaves : My Leaves, Approvals, Reports
22 Appraisals : Appraisals, Interview, Reports --> Will probably be modified by the incoming refactoring
23 Payroll : Current Menu
24 Lunch : My Lunch, Manager, Configuration
25 Accounting : Same menus currently, waiting the new accounting to be merged
26 Fleet : Current menu
27 Sign : Incoming docusign module
28 No root menuitem with this sequence
29 Attendance : Attendance, Reports
   Sign in/out by project feature has been removed completely
30 Link Tracker (group_no_one) : Link Tracker, UTMs
   New view added : URL Shortner, which is the frontend view embedded in backend
31 Versionning : Website domain, Versions, Experiments
32 Slides (group_no_one) : Channels, Categories, Slides, Tags
33 No root menu item with this sequence
34 Livechat : Channels, History, Reports
35 Dashboards : My Boards, Configuration
36 App Store : Local Modules, Apps, Updates
Last Settings : Incoming Dashboard Settings, Sales, ...., Website Settings
General Pattern for all modules' settings :
| Module_name
|-- Settings : General Config view (checkbox screen)
|-- Record setting 1
|-- ...
|-- Record setting n
Example for Sale module
| Sales
|-- Settings : Checkbox screen
|-- Quotations
|---- Quotation Templates
|---- Report Layout Categories
|---- Contract Template
|---- Invoice Type
|-- Contract
|---- Deduplicate Contacts
|-- Delivery
|---- Delivery Methods
|---- Delivery Pricelist
2015-04-24 16:41:08 +02:00
Nicolas Martinelli 3d63c15a56 [MIGR] lunch: migration to the new API, cleaning and new
widget for displaying previous orders.

Detailed changes :
- previous order is not a computed field, with its own custom widget that has been designed
according the new spec for widgets;
- useless wizards have been removed, and replaced by some server actions that perform the
same action with less code and views;
- removed deprecated or incomplete reporting;
- some renaming to follow the new specifications of module coding
2015-04-23 10:27:08 +02:00
Yannick Tivisse 85da6b9991 [IMP] 'Trying to reconnect' banner : removed blur effect 2015-04-22 16:53:21 +02:00
Bhumi Patel 90f3af6d2e [FIX] web: form views in popups were looking for the edit button (that is not showed in a popup), and crashed
exempli gratia: In calendar, open an existing meetings from the calendar view and then click somewhere in the view.
2015-04-21 14:26:14 +02:00
Jusab Sida 6047b88b5c [FIX] web: remove search tools from form view 2015-04-21 10:09:37 +02:00
Christophe Matthieu 680a174747 [IMP] web_tests: add a tour to test AbstractManyField widget and one2many and many2many python api communication and on change trigger 2015-04-20 10:51:02 +02:00
Christophe Matthieu b4cb456800 [FIX] web: AbstractManyField: many to one set dataset.ids without use abstract field api. Need to clone the list to avoid the duplicate record on create. 2015-04-20 10:51:02 +02:00
Christophe Simonis 2328174cfd [FIX] web: session.js: use compatibility layer to avoid Dependency
error.

Better solution welcome.
2015-04-18 14:27:05 +02:00
Christophe Simonis 816953f01c [FIX] web: break dependency cicle. 2015-04-17 19:33:38 +02:00
Christophe Simonis 107b589a11 [FIX] *: correct previous forward port
Due to files renaming, some patched should be applied manually to the
correct files.
Forgot to `git add` these files when committing the forward port...
2015-04-17 17:08:17 +02:00
Christophe Simonis a9471c43b9 [MERGE] forward port of branch saas-6 up to e941c0f 2015-04-17 15:33:00 +02:00
Christophe Simonis 63f2c13a87 [MERGE] forward port of branch 8.0 up to 2492503 2015-04-16 19:40:48 +02:00
Christophe Simonis 2492503dcc [MERGE] forward port of branch saas-3 up to 50665b4 2015-04-16 19:25:53 +02:00
Christophe Simonis 50665b499a [MERGE] forward port of branch 7.0 up to d0ef1b9 2015-04-16 19:13:56 +02:00
dhr-odoo d0ef1b938d [FIX] Fixed wrong digits format issue for float fields when thousand separator is '.'
The function was returning the number value directly before proceeding to any formatting.
2015-04-16 15:30:20 +02:00
Christophe Matthieu 8139ba5307 [FIX] web: AbstractManyField: simplify the set value from on_change methods; use the good object and toggle the internal flag 2015-04-16 14:31:06 +02:00
Christophe Matthieu e6fdfaf231 [FIX] web: on2many editable list: remove hanlder to relad the view because no need (the deferred are good). Reset the dataset in set_value because on change send a list of command with all values (link, update, created). Link id into the dataset when update cammand if needed. 2015-04-16 12:52:48 +02:00
Christophe Matthieu 7d3cda215a [IMP] web: web.form_relational: Change widgets to use AbstractManyField. Remove custom insertion in the DataSet to improve the managment of cache and the odoo commands list. this.get('value') return the list of ids and virtual ids and get_value return a commands list. 2015-04-15 13:31:20 +02:00
Christophe Matthieu 145beaf73f [IMP] web: remove unused widget x2many_counter 2015-04-15 13:31:20 +02:00
Christophe Matthieu d8c52d677b [IMP] web: remove unused widget many2oneButton 2015-04-15 13:31:20 +02:00
Christophe Matthieu 64ce3df5d7 [FIX] web_kanban: display add button for many2many kanban view 2015-04-15 13:31:20 +02:00
Christophe Simonis 0e2a453fe2 [MERGE] forward port of branch 8.0 up to ba54a66 2015-04-14 12:22:33 +02:00
Nicolas Lempereur 00099db4f3 [FIX] css: move ie9 targetted rules to ie.css
Moving existing rules targetting IE9 or less to addons/web/static/src/css/ie.css
2015-04-13 18:24:10 +02:00
Nicolas Lempereur 8a285e6a62 [FIX] css: ie9 specific fixes
Create a new stylesheet for IE9 and less custom css.

The issue #6198 and #6201 is present in IE9 since a div with height 100% inside
a table-cell (i.e: td tag) element only take the minimum height possible for the
content.

For issue #6198: in IE9 a kanban tile could not be moved to an empty kanban,
this fix sets a minimum height for a empty column (80px, the size of two empty
tiles) so now a tile can be moved in the 80px in the top of the column.

For issue #6201: graphs took the minimum height in IE9, this fix set a fixed
height to improve the situation.

For issue #6200: in IE9, the list view could wrongly not go the next line
even if its width is 100%. For the given case, the display CSS property of
these listview is set to value "block".

opw-632415 opw-632417 opw-632416
2015-04-13 18:23:58 +02:00
Christophe Simonis 3206a35aed [MERGE] forward port of branch 8.0 up to 8ac8281 2015-04-13 12:07:58 +02:00
Aaron Bohy b4dd0b6f8c [IMP] Web: ControlPanel: properly and securely expose nodesets 2015-04-10 15:34:12 +02:00
Cedric Snauwaert 9d87d15db6 [ADD] new fields.Monetary + updated widgets
Enhance current widget="monetary" client-side feature and
convert it to a first-class type of field, allowing proper
server-side behavior.

- fields: add field.Monetary, similar to fields.Float but
  supporting a `currency_field` attribute instead of the
  decimal_precision attribute.
  `currency_field` indicates the field holding the
  related currency on the same record.
  The symbol of that currency is used when displaying
  the field, and the rounding of the currency is applied
  instead of the usual decimal precision.
- avoids application of a second decimal precision rounding,
  as was the case when the model field was a `fields.float`.
- removes the need for adding explicit boilerplate to each
  view containing a monetary field, i.e.:
    widget="monetary" options="{'currency_field': 'currency_id'}"
- res.currency: add new field decimal_places needed to round
  value at the correct decimal places
- web: cache all currencies, rounding and symbols at
  webclient startup to speedup monetary fields
- new widget monetary for list view + adapt widget monetary
  on form view

Limitations:
- if the currency_field is a related field, the server-side
  application of currency rounding will only work when the
  record already exists, not during creation (to be fixed)
- this field is only supported in the new API
2015-04-09 19:05:44 +02:00
Aaron Bohy d1056939ad [FIX] Web: pager for ListView in One2Many fields
The pager was not displayed in One2Many List views. This fix applies the
same behavior as in One2Many Kanban views, which is probably not the
best way to do it, but which works fine.

The issue was caused by 2 things:
   - The One2Many.FormView template removes the condition around  the
     buttons/pager divs of the FormView template. However, it was using a
     selector that does not seem to be used anymore. We thus removed it
     and the buttons/pager divs are now in the rendered One2Many List View
   - The rendered pager was appended to this.options.$pager whereas it
     should be appended to the corresponding div in its own template.

This commit should not be forwardported
2015-04-08 10:48:50 +02:00
Christophe Matthieu 8df3f14f4b [IMP] web: new AbstractManyField in order to avoid duplicated code 2015-04-07 14:06:58 +02:00
Christophe Matthieu 03d04fe5bb [FIX] web: wrong crash manager variable name 2015-04-07 14:06:58 +02:00
Nicolas Lempereur 37959d45f3 [FIX] qweb: css minified in multiple page for IE
On internet explorer 6, 7, 8 and 9, the limit of CSS rules in a stylesheet is
4095 (http://blogs.msdn.com/b/ieinternals/archive/2011/05/14/10164546.aspx).

This commit breaks down a CSS bundle in several pages for these IE versions.

To do this, the CSS tag added is of the kind : /web/css.0/{xmlid}/{version} in
which there is:

- the whole CSS if there is no more than one page,
- a list of @import pointing to the multiple pages.

note: if a modification lowers the number of page, an old page may stay in
ir_attachment (e.g: go from 4 to 3 pages, the old 4th page of another version
will not be deleted untill the number goes again up to 4).

Note: the method css(self) previously returned an unicode variable (the first
time) or an str variable (the following times, if already cached), the fix
also correct this so an str variable is always returned.

fixes #5050

opw-627116
2015-04-07 09:56:44 +02:00
Denis Ledoux 8121f29848 [FIX] web: float seen as changed with digits set to 0
Do not check float_is_zero for float fields with
digits specifically set to 0, it means
the rounding precision is infintie for those ones,
and tmp === val is enough.
2015-04-03 16:37:28 +02:00
Jérome Maes 093e39bd17 [IMP] web, website_blog, website_forum, website_sale : uniformize the way to add comment by redirecting to login form (if not logged) and keep the parameters (i.e. the comment) when redirecting to the comment route. The comment route must now be GET and POST. 2015-04-03 13:29:58 +02:00
Géry Debongnie d12bf0eb4a [FIX] web: don't crash when switching views in firefox
For some weird reasons, IE and Chrome (or jquery?) bind the global
variable 'event' to the last triggered event (I guess).  Of course,
our code depended on that behavior, but Firefox does not like it and
crashes when we try to read the 'event' variable.  This fix simply gets
the variable as first argument.
2015-04-03 11:13:53 +02:00
Christophe Matthieu e8e3a4bedf [IMP] web: allow to start the functional modules even if other modules are wrong. Adds the list of missing modules in modules can not be started. 2015-04-02 11:47:05 +02:00
Christophe Simonis 16f23dd43a [MERGE] forward port of branch 8.0 up to 8ad1105 2015-04-01 19:31:22 +02:00
Christophe Simonis 8ad11055bb [MERGE] forward port of branch saas-3 up to 12f600c 2015-04-01 19:13:25 +02:00
Christophe Simonis 12f600cec9 [MERGE] forward port of branch 7.0 up to 35077af 2015-04-01 19:07:59 +02:00
Cedric Snauwaert 80d3adc1f3 [FIX] web: when converting a node back to xml, correctly escape node content 2015-04-01 11:02:31 +02:00
David Monjoie 27594146b5 [IMP] web: added readonly checkmarks fix in saas file
I forgot to put the new rule of cc9f2919be in the saas file.
opw 630611
2015-03-31 14:28:52 +02:00