Commit Graph
97190 Commits
Author SHA1 Message Date
Joren Van Onder c59e06d572 [IMP] pos_mercury: add phone number to the Mercury configuration
Make it as easy as possible for users to create a MercuryPay account.
2015-08-18 10:23:56 +02:00
pvy 698f750db9 [FIX] l10n_sg is back, compliant with the new accounting 2015-08-18 10:00:46 +02:00
pvy 496c0eb51d [FIX] l10n_ve is back, compliant with the new accounting 2015-08-18 10:00:06 +02:00
David Monjoie 8c31ecd368 [REV] website_crm,website_sale: revert afc9507
The website_crm module doesn't depend on website_sale, so the
salesteam_id field may not exist on website in contactus.

There is clearly a strange overlap with the website salesteam
between website_crm and website_sale, as indicated by the xml_id's.

The previous version didn't crash when the xml_id was not found,
though, while this one would always crash when you try to use
website_crm without website_sale, so I prefer to revert it.

A proper fix would be to set the salesteam at the level of the
website module, but I'm not sure it would make sense considering
that it wouldn't be used at all unless you happen to install one
of those two modules.

In the meantime, I'm reverting afc9507f3a.
2015-08-17 17:02:09 +02:00
Cedric Snauwaert 5d18080d3c [FIX] account_tax_python: fix possible security injection 2015-08-17 16:37:44 +02:00
Christophe Matthieu 03e982b93f [FIX] web: need to initialize values into the cache 2015-08-17 16:17:22 +02:00
Lionel Sausin (Numérigraphe) 7a6e94edd8 [IMP] list_databases: Ignore special databases
Automatically ignore template databases identified in Postgres,
and databases where connexion is not allowed
2015-08-17 15:17:51 +02:00
Thomas Groutars d861cdc1c4 [ADD] account: add tax_group on invoice to make reporting easier + create tax_group retention for l10n_co 2015-08-17 15:06:48 +02:00
Martin Geubelle 638db1f085 [IMP] crm: improve crm.team kanban view
Hide stuff corresponding to opportunities if use_opportunities is False
2015-08-17 11:17:05 +02:00
Christophe Matthieu 384d717dcd [FIX] website: remove col-md-12 obsolete bootstrap fix 2015-08-17 10:12:15 +02:00
Aaron Bohy b1705b1915 [FIX] web: debug manager: view metadata
the modal content should now be given in the options
2015-08-17 09:40:37 +02:00
Aaron Bohy 6658c65851 [IMP] web_calendar: quick create: generic text
as the quick create is also used to create e.g. leads, not only events.
2015-08-17 09:27:44 +02:00
Christophe Simonis 98ef7e29f3 [FIX] web: correct x2many js test tour.
Now that users are ordered by name, we need to explictly choose the
correct participants.
2015-08-16 00:52:04 +02:00
Christophe Simonis 1009eeda78 [FIX] ajax.js: stringify error for debugging help 2015-08-16 00:51:43 +02:00
Christophe Simonis cf33db868e [FIX] js tests: log full DOM on error 2015-08-15 18:25:56 +02:00
Christophe Simonis 7bf07f928e [FIX] fields: correct m2m query generation to handle translations 2015-08-15 16:57:35 +02:00
Christophe Simonis 73e652818b [MERGE] forward port of branch saas-6 up to 8d95f6d 2015-08-15 16:57:35 +02:00
Christophe Simonis 8d95f6dcdf [MERGE] forward port of branch 8.0 up to 19b5ba2 2015-08-14 17:26:04 +02:00
Denis Ledoux 19b5ba2b08 [FIX] website: condition to flag a menu as active in the top menu
1. A menu with `/page/website.***` should be flagged as `active`
if the current url is `/page/***`. This is a retro-compatibility
patch for c9d41679fb, so the
menu is marked as active without having to rename it, by
removing this `website.` thing.

2. If you defined two menus with as url `/page/test` and `/page/test2`
Both menus were flagged as `active` when you browsed the url
`/page/test2`, because it started by both menus urls.

Fixes #3059
Closes #3070
2015-08-14 17:11:16 +02:00
Mathias Neef c9d41679fb [FIX] website*: active class in menu
In the top menu bar, the `active` class is set when the
menu url matches the page url (the url in the browser url bar)

A while ago, we made so all urls
`/page/website.***'
were automatically redirected to
`/page/****`

Therefore, if the menu url still contains this `website.` prefix,
the active class wasn't set on it, while it should.

Fixes #3059
Closes #3070
2015-08-14 17:10:46 +02:00
Goffin Simon e4742f3d1f [FIX] mass_mailing: Newsletter
Using bootstrap classes.

opw:647204
2015-08-14 16:55:33 +02:00
Thomas Groutars 9979939cd1 [IMP] ir_model: add table and columns fields for many2many fields
The fields are properly reflected for base many2many fields.  Moreover, the
code has been improved to remove a custom many2many field whose table is still
used by another field.

Onchange methods have been added:
- When name, model and comodel are chosen, propose table and column names.
- When table is modified, propose column names if the table is already used by
  another many2many field.
2015-08-14 16:37:29 +02:00
Raphael Collet eadc08f531 [FIX] models: default value is lost when sharing field with another class 2015-08-14 16:30:45 +02:00
Aaron Bohy 3758e65b2b [FIX] web_kanban: remove unreachable return
introduced by forwardport fe2b5f35.
2015-08-14 16:29:45 +02:00
Aaron Bohy 316772e91c [IMP] crm: next activity buttons style
Remove pipes as they broke the layout in the new design (a little bit in the
old one as well...)
2015-08-14 16:29:45 +02:00
Aaron Bohy fc3a903dbf [FIX] web: oe_button: don't override bootstrap rules
Remove the style defined on oe_button as it overrides bootstrap rules like
btn-primary, btn-default...
2015-08-14 16:29:44 +02:00
Aaron Bohy 63f9cf58a7 [IMP] account: reconciliation: remove unused classname 2015-08-14 16:29:44 +02:00
Christophe Simonis 0f2c7fa4ab [MERGE] forward port of branch saas-3 up to e95e9f8 2015-08-14 16:02:57 +02:00
Christophe Simonis e95e9f8878 [MERGE] forward port of branch 7.0 up to 11cd8ba 2015-08-14 16:02:31 +02:00
Christophe Simonis 856cb6fcb0 [FIX] models: distribute ORDER BY direction 2015-08-14 15:42:37 +02:00
Christophe Simonis dac52e344c [FIX] models: "ORDER BY" on many2one fields
When ordering results on a many2one fields, results are ordered by
order of the target model. The code was wrongly assuming that this
`_order` attribute only contains `_classic_read` fields (that can be
directly read from the table in database). Now correctly generate the
"ORDER BY" clause using the current table alias.

`res.users` can now be sorted by name.
2015-08-14 15:42:37 +02:00
Christophe Combelles 11cd8ba06c [FIX] web_kanban: access gravatar with current scheme
When Odoo is accessed in https, inserting the gravatar
image using the http protocol leads to a security
alert in most browsers.

Closes #3042
2015-08-14 15:35:48 +02:00
Christophe Matthieu 7c10cb47f1 [FIX] web: readonly fields not transferred from dialog to 2many field
Transfer options to 'data_create' and 'data_update'
Add tour to check the fix
2015-08-14 15:34:58 +02:00
Raphael Collet e0cd26376c [FIX] web: make the web client process the new output format of onchange
The dataset implementation has been improved to handle the result of a `read`
on ids that are already modified in the dataset: the lists `to_create` and
`to_write` are updated properly.
2015-08-14 15:09:04 +02:00
Raphael Collet 9f81c6d651 [IMP] models, fields: change output format of method onchange for x2many fields
Use `field.convert_to_onchange` to format the output of method `onchange`.  By
default it behaves like `convert_to_read`.  This is useful for the many2one
case, as the client automatically receives the display name of the record.

For the *2many case, we return a list of dicts values, in recordset order, with
all the known fields in the view:

    [{id: 42, name: "Existing record"}, {name: "New record"}, ...]

Each dictionary contains the values of all known fields in the view.  The
client is responsible of determining which fields are dirty by computing the
difference with former values.

Since the method `onchange` now uses `field.convert_to_onchange`, the method
`field.convert_to_write` has been simplified, as it no longer needs its extra
parameters `target` and `fnames`.
2015-08-14 15:09:04 +02:00
Thibault Delavallée 36ffa5bc69 [IMP] res_partner_title: simplify model
Titles are now just for contacts (people), not for companies
anymore. For that purpose directly adding the suffix (Ltd, ...)
in the name is sufficient.

The domain field is therefore removed.

Updated data, demo, views, code and res.partner model accordingly.
2015-08-14 15:06:36 +02:00
Nicolas Martinelli 71503be1d8 [FIX] account: check price in on_change_unit_amount only if product_id
If no product is defined, there is no need to get any amount or
pricetype. Moreover, variable unit was not defined.
2015-08-14 14:16:10 +02:00
qsm-odoo 532d4243a6 [IMP] web, website: Split base.xml into base.xml/base_common.xml
This allows to always have the templates in base_common.xml in the
frontend.
2015-08-14 13:56:51 +02:00
qsm-odoo ef2df79c66 [IMP] base: Load web_icon_data for root menus
The enterprise frontend appswitcher needs to load the icons for the
root menus too
2015-08-14 13:56:50 +02:00
qsm-odoo 07c020d7e5 [IMP] website: PDFJS lib - GitHub import
* Import src, web and external directories from PDFJS GitHub repo
2015-08-14 13:54:49 +02:00
qsm-odoo 70719843bf [IMP] web_kanban: provide session user context
* Kanban templates now have access to the object "user_context" which
contains the current uid, lang and timezone
2015-08-14 13:54:49 +02:00
Damien Bouvy 033c0a03e2 [FIX] hr_holidays,base,calendar,portal: missing groups on menuitems
I do not think portal users need to log the holidays or the see the list of installed modules
Also, I got tired of the generic cube icon for portal in the new design; feel free to change it if you find something more meaningful
2015-08-14 13:40:20 +02:00
Antony Lesuisse 4feb82dd49 [REM] website: kanban helper
website_project has been removed and this helper is now useless.
2015-08-14 13:33:31 +02:00
Damien Bouvy ad4679176f [FIX] project_timesheet,project_issue_sheet: groups in view: when the doc says list, it means list; not list 2015-08-14 13:32:12 +02:00
Antony Lesuisse 3286dc2ec7 [MERGE] project_issue: website portal
- Remove portal_project move rules to project
- Add issues in the /my/home frontend portal
- Remove website_project, task access is backend only
2015-08-14 13:19:31 +02:00
Damien Bouvy 60514d0d0d [REM] website_project: this half-finished module does not make sense anymore since public projects have been removed 2015-08-14 13:19:04 +02:00
Damien Bouvy 6ca900ab01 [IMP] website_rating_project_issue: remove public projects
- remove public project
- some data was depending on demo data, moved it to demo
- add website_published mixin on projects
- remove project members from frontend view

Since public projects do not exist anymore, project.project objects now have the website_published mixin; any project with the rating activated and published on the website will be visible in the "Project Customer Satisfaction" link for public users
The frontend template has also been modified to remove the team members photo since project members have disappeared as of 9398fe9 by our dear @tde-banana-odoo
2015-08-14 13:19:04 +02:00
Dharmraj Jhala 56c5d0afeb [IMP] website_project_issue: frontend view for issues under My Account page of website, and removed link to the backend and its related files
[ADD] website_project_issue_sheet: link module between website_project_issue and project_issue_sheet
Frontend integration of issues:
    - issues details
    - chatter integration
    - timesheets
2015-08-14 13:19:04 +02:00
Damien Bouvy 8bd6074f03 [IMP] project,project_issue,project_timesheet,project_issue_sheet: project visibility and access rights modifications
[REM] portal_project: move ALL the things
- move portal access rights from portal_project  and website_project_issue to project and project_issue
- move portal menuitems back to their respective module
- remove public visibility of projects
- adapt demo data to have a 'Demo Portal' project
- add correct access rights for account.analytic.line for portal users
- small view tweak (do not display 'timesheet' tab if one can't see antyhing in it anyway)
2015-08-14 13:19:03 +02:00
Damien Bouvy 8db80880a6 [FIX] project_issue: missing api.returns decorator on project_issue.message_post() 2015-08-14 13:19:03 +02:00