Commit Graph

91233 Commits

Author SHA1 Message Date
Christophe Simonis 8ff7230e2d [FIX] migration: test if package is installed using its state.
checking if there is an installed version set is not enough because this field is not reset when the module is uninstalled
2014-10-07 14:57:26 +02:00
xmo-odoo 7c8c6a77c7 Merge pull request #2375 from odoo-dev/8.0-webclient-doc-xmo
Port web client tutorial fully (-ish), improve JS doc.
2014-10-07 10:50:59 +02:00
Xavier Morel 9cd2693286 [FIX] JS tutorial 2014-10-07 10:23:50 +02:00
Xavier Morel 393331f948 [FIX] sphinx 'project' value
The project name automatically gets the release and the literal string
"documentation" appended by default (and "html_title" can be set to generate a
title differently), so having "documentation" set in the project variable
duplicates it in the page title.
2014-10-07 10:22:53 +02:00
Xavier Morel 62c9589485 [ADD] port webclient RPC doc from web/doc 2014-10-07 10:22:53 +02:00
Xavier Morel 62fcce9054 [ADD] JS widgets reference documentation
Also fixed Widget#alive's behavior and tested it
2014-10-07 10:21:44 +02:00
Denis Ledoux 2c25fa2dc4 [MERGE] forward port of branch saas-3 up to 56f678c 2014-10-07 09:59:55 +02:00
Denis Ledoux 56f678c8e9 [FIX] gamification: on delete goal user, cascade
Otherwise, this is no more possible to delete users with gamification goals
2014-10-07 09:57:35 +02:00
xmo-odoo 1a29c81703 Merge pull request #2269 from odoo-dev/8.0-qweb-doc-and-fixes-xmo
QWeb documentation, fixes and improvements
2014-10-07 09:53:57 +02:00
Xavier Morel 5954335222 [ADD] pyqweb-specific stuff, pyqweb APIDoc 2014-10-06 19:13:46 +02:00
Xavier Morel c5dca416da [IMP] qweb: foreach handling
* fix mapping handling to match JS impl: current value set as _value instead
  of being lost
* add handling of integer parameter
* only set _size and _last if current iterable is sized
2014-10-06 19:13:45 +02:00
Xavier Morel d5e3d121e3 [ADD] qweb: call directive's body
* __content__ can't be used in Python implementation because safe_eval, so use
  ``0`` from Python implementation instead
* remove postfix from t-call tests because due to implementation details all
  whitespace crap following a t-name is added to rendered template in Python
  impl, and don't want to normalize whitespace.
2014-10-06 19:13:45 +02:00
Xavier Morel 2ffcff8fa9 [ADD] qweb: handling of t-att=mapping
Changed render_att_att to return an iterable of pairs instead of a pair, and
dispatched t-att on whether its result is a Mapping.

Also changed qweb test runner so it uses ordereddict for JSON mapping in
params, otherwise iteration order (and thus order of attributes in output) is
unpredictable and results don't/can't match expectations (as both are
strings).

Note that this relies on JS implementation details wrt iteration order of
mappings. Tests would probably be somewhat less brittle if rendering output
was parsed to XML... if that's possible (?)
2014-10-06 19:13:44 +02:00
Xavier Morel 14a677090b [ADD] running of XML cases to python qweb 2014-10-06 19:13:43 +02:00
Xavier Morel 494dcbd0e3 [IMP] qweb doc, tests
* document qweb based (mostly) on JS version
* convert JS qweb tests to (mostly) language-independent XML so they can be
  used for JS and Python implementations
* add some more tests (e.g. precedence between t-value and body in t-set)
* remove ``t-import``
* fix parity in foreach(dict) (and rename some variables to make array and
  object versions more similar)
2014-10-06 19:13:43 +02:00
Xavier Morel bed6b01c53 [ADD] qweb-js: escf, rawf for parity with Python version 2014-10-06 19:13:42 +02:00
Xavier Morel 4fb49a67f3 [ADD] qweb-js: jinja-style interpolation pattern 2014-10-06 19:13:41 +02:00
Xavier Morel 35f5fb46e7 [IMP] qweb-js: reimplement string interpolation compilation as a single pass 2014-10-06 19:13:40 +02:00
Xavier Morel 9fe71a5d18 [IMP] update qweb-js tests
* latest qunit
* template loading (handle async)
* add format tests
2014-10-06 19:13:40 +02:00
Martin Trigaux 8843974d04 Forward port of branch saas-3 up to fc9fc3e 2014-10-06 15:52:23 +02:00
Simon Lejeune e388cb8c32 [FIX] account: res_config: gain/loss exch. account onchange
Commit f4e350ca3 defined an `onchange_company_id` method, never executed
because another `onchange_company_id` was defined below. Merged the first
in the second.
2014-10-06 15:27:53 +02:00
Simon Lejeune 1029dbc4f3 [FIX] website_quote: forbid to define a quote template on a sale order
Defining a quote template may change the product list. The field template_id is now editable
only when the sale.order is in draft or sent state.
2014-10-06 15:13:30 +02:00
Jeremy Kersten 651d5748e3 [IMP] website_crm: allow the response from crm thanks page to be overridable 2014-10-06 14:34:29 +02:00
Jeremy Kersten c04b0443b7 [FIX] google_calendar: add missing parameter to logger_info 2014-10-06 14:32:28 +02:00
Martin Zlámal fc9fc3e0b8 [FIX] common.py: missing import
It was not possible to call "about" function via remote control
(XML-RPC), because it contains string translation without import.
2014-10-06 12:28:45 +02:00
Raphael Collet afb91fde81 [FIX] models: fields_get() shall not return info about fields not set up yet
When processing data files during a module installation/upgrade, not all fields
are set up yet, in particular relational custom fields.  Make fields_get()
ignore those fields, so that views can be created/updated and validated,
provided they do not refer to those fields...
2014-10-06 11:56:03 +02:00
Young Joy dfc2e1ce1b [FIX] project: typo in protect.task create
that typo will cause project task create error when set date_end before the time right now
2014-10-06 11:39:27 +02:00
Josse Colpaert f563be5cc0 Merge pull request #2918 from odoo-dev/8.0-wmsextramoves-jco
[IMP] Make sure invoice_state of picking is used when creating extra moves
2014-10-06 09:52:12 +02:00
Josse Colpaert f3bb39dc45 Merge pull request #2827 from odoo-dev/8.0-eanproductviews-2772-jco
8.0 eanproductviews 2772 jco
2014-10-06 09:50:01 +02:00
Josse Colpaert fc65efbb9b [FIX] Fix inheritance in point_of_sale views + ean visible on creation + landed costs views
[IMP] Set custom EAN not visible when multiple variants

[IMP] Change landed costs views + make ean visible upon creation
2014-10-06 09:14:20 +02:00
Josse Colpaert 899f2066e9 [FIX] Adapt product variants in order to show internal code and ean13 #2772
[IMP] Typo
2014-10-06 09:14:20 +02:00
Josse Colpaert 383f2b2c43 [IMP] Make sure invoice_state of picking is used when creating extra moves and take price of related move if there is one
When we would copy, it gives problems as it won't be invoiced the correct way on sale, so we provide for a simpler solution.
2014-10-06 09:10:09 +02:00
Jeremy Kersten ab7b5d7732 [FIX] website_crm: move the input hidden generated with kwargs at bottom of the form. Else, if the args is a field displayed later, form never look about the new value and error remains. When we post a form with 2 fields with the same name, we got only the first one into kwargs from controller. 2014-10-03 22:26:26 +02:00
Jeremy Kersten 24bec094c2 [IMP] hr_holiday/calendar : allow to pass no_email into context when we create a meeting to avoid to send a mail to attendees. 2014-10-03 20:43:48 +02:00
Jeremy Kersten 42c13efcee [IMP] google_calendar: add missing file google_calendar.xml 2014-10-03 18:08:28 +02:00
Jeremy Kersten f3346223ac [IMP] Google calendar - add function to allow the cron to run google calendar synchronization 2014-10-03 17:52:31 +02:00
Prashant Panchal ecacffcb6e [FIX] account_anglo_saxon: avoid two box purchase_ok field
as account_anglo_saxon depends from purchase and purchase already adds the field purchase_ok
Fixes #2630
2014-10-03 17:26:28 +02:00
Holger Brunn 4c6a998c29 [FIX] auth_ldap: remove insignificant spaces in login
strip spaces from user name as they will probably be ignored by ldap's search (rfc4518)
Fixes #2865
2014-10-03 17:02:12 +02:00
Arthur Maniet e6ca891714 Merge pull request #2894 from erwin-bas-solutions/translation-reconcile
[FIX] Account. Missing translation on write-off comment
2014-10-03 16:00:10 +02:00
Erwin van der Ploeg 2ec99aee18 [FIX] Account. Missing translation on write-off comment 2014-10-03 15:38:45 +02:00
Martin Trigaux 7e33a4746b Forward port of branch 7.0 up to b3485fb 2014-10-03 15:17:36 +02:00
Martin Trigaux b3485fb59c [FIX] event: double context 2014-10-03 15:15:12 +02:00
Martin Trigaux e11d44eab4 [FIX] event: missing context
This fixes some translation issues (templates not translated at event confirmation)
2014-10-03 15:12:04 +02:00
Julien Legros 5153b2d281 [FIX] website_quote: use dedicated email template if a quote template exists 2014-10-03 14:22:38 +02:00
Denis Ledoux 7aa5d397c8 [Revert] cb30783aba & 6349048ba0
[FIX] web: avoid force_reload in list editable
[FIX] web: force load record after reload page

These fixes prevent to open existing record form
2014-10-03 14:03:12 +02:00
Martin Trigaux 066fbb6613 [FIX] account_anglo_saxon: price difference, discount and taxes
When computing the price difference amount do not integrate the eventual discount and taxes included in the price.
Otherwise the total of the generated accounting enty would be higher than the total of the invoice. opw 611350
2014-10-03 12:19:01 +02:00
Denis Ledoux cd6dba5257 [MERGE] forward port of branch 7.0 up to 9066da3 2014-10-03 12:13:07 +02:00
Denis Ledoux 9066da3369 [FIX] point_of_sale: do not display False as currency if symbol is not set 2014-10-03 12:10:16 +02:00
Denis Ledoux 7cbd524448 [FIX] ir_translation: apply tools.ustr on the trad itself
tools.ustr(None) returns u'None', res[0] can be None.
2014-10-03 12:08:49 +02:00
Martin Trigaux cb30783aba [FIX] web: avoid force_reload in list editable
When creating a new record in list editable, due to previous commit 6349048, the load_record was called twice and the first record of the current list view (self.dataset.index) was used to fill the new record.
With this, we make sure a new record is indeed created.
Fix the web test to have a default_get call in mock models and increase the number of default_get assertions (for creations in list editable, the default_get is then called twice, not optimal but due to the absence of distinction between empty datarecord and filled with default values).
2014-10-03 11:41:00 +02:00