Commit Graph
99161 Commits
Author SHA1 Message Date
Raphael Collet b0d0625277 [IMP] ir_model: in method write(), prevent the update of critical fields
Also fix code that tries to rename models!
2015-06-15 12:19:52 +02:00
Thomas Groutars 5c0bfaafd1 [IMP] ir_model: enable the creation of transient custom models
Rename the field 'osv_memory' on 'ir.model' into 'transient', and make it a
regular field instead of a computed one.  When instantiating a custom model,
use its value to make transient models.

This commit alone will make your server crash on an existing database.  A small
database migration is needed: simply add a boolean column `transient` (with
default value false) in table `ir_model`.
2015-06-15 12:19:52 +02:00
Christophe Matthieu b8527edcd2 [FIX] web: database_manager: remove unused javascript files who displayed error inside the chrome console 2015-06-15 11:34:48 +02:00
Jeremy Kersten 237564626e [REF] base: res_country - rename phone_prefix to phone_code
Thanks to 'The en_US police' for feedback
2015-06-15 11:20:31 +02:00
sha-odoo 0a2fd78b81 [IMP] crm: res.partner kanban view: filter the displayed meetings
when clicking on the meetings of a partner.
2015-06-15 11:08:09 +02:00
Nicolas Martinelli ea59856caf [FIX] mrp: display Produced Products done in black instead of grey
Keep consistency between Consumed Product and Finished Products

opw-642267
2015-06-15 11:06:04 +02:00
Christophe Matthieu 2a832f23a3 [FIX] web: can't load the page database mangager because session_instance.js is missing 2015-06-15 10:46:40 +02:00
Josse Colpaert 2cb3a90c1c [IMP] Barcode interface and transfer wizard in picking form instead
Pack operations will not appear in a transfer wizard or bar code interface anymore, but
in the picking form itself.  Some wizards are still needed however to ask whether a
backorder needs to be created and whether we need to do an immediate transfer

The biggest change in the model is in the picking where the locations of the picking
are not a related anymore, but need to be set. That is why the tests need to be changed.
This allows also to have pickings without moves initially and just move one pack e.g.
Locations won't be visible on stock moves in a picking either.  (as they should be those of the picking)

In order to avoid confusion, the pack operations are created immediately when stock is reserved and we
are not waiting until the wizard or the bar code interface is launched anymore.

The recompute button previously in the barcode interface will only appear when the reservation changed
and the user indicated in the pack operations that something was moved already.  Otherwise it will
recompute the pack operations.  That way the reservation on the stock moves, is reflected by the pack operations.

Return pickings are not confirmed automatically when confirming the return wizard.
That should make it possible to choose another location for the return.  (Don't return in output e.g.)

Barcode scanning is not in this commit.
2015-06-15 10:18:17 +02:00
Hitesh Trivedi 0bfb7d6915 [IMP] sales_team: Make sales team company specific 2015-06-15 09:09:56 +02:00
Olivier Dony 839b739ab5 [FIX] account, l10n_be: disable/remove WIP references to financial reports
To be done under @qdp-odoo's supervision
2015-06-15 04:36:24 +02:00
Damián Soriano f7742add26 [FIX] tests: restore openerp.tests.common.DB for backwards compatibility
It was removed at 2df9060d97 and broke
tests in community modules that relied on it.

Tests using it should switch to the new get_db_name() method.

Closes #7054
2015-06-15 00:52:20 +02:00
Antony Lesuisse 82c80b72fa [IMP] document: hide document configuration 2015-06-14 23:02:37 +02:00
Peter Niederlag 777188f3f3 [CLA] datenbetrieb UG 2015-06-12 16:39:18 +02:00
Laurent Mignon (ACSONE) e17844c946 [FIX] server: graceful shutdown must send SIGINT instead of SIGTERM to workers
Workers do not specifically handle SIGTERM so it can be used to
force quit them, but the graceful shutdown is triggered by SIGINT.

Closes #6998
2015-06-12 16:11:59 +02:00
Goffin Simon cc6c4f2408 [FIX] stock: theoretical quantity
The default real quantity must be the theoretical quantity.
2015-06-12 15:30:22 +02:00
Nicolas Lempereur 8ae67f6a54 [FIX] fields: correct sides effect of change to old api
The commit 3269ad8f get back the behaviour of 7.0 (which changed in
october 2014) that when a field is overrided via the old api, attributes
of a previous definition of the field are lost.

This fix corrects the case when this behaviour might have had an effect
so specified attributes overrided don't get lost.

related to opw-639712
2015-06-12 15:09:06 +02:00
Nicolas Lempereur 3269ad8f48 [FIX] fields: throw truthy values on old api field
In 7.0, a field overriding an inherited model would overwrite all the
previously set field attributes. In v8 the new API allow us to keep
previous attribute, and only overwrite attributes of our wish.

Following the commit 7b1ef708 (october 2014) an old api field overriding
could conserve previous attributes values in some cases (if the new value
is falsy (None, "", 0, False, (), {}, [], ...) when it should not. It
was partly an optimization to diminish the size of orm registries
dictionaries to save memory (this patch has been tested with all odoo
modules and added +/- 3M).

This commit (proposed by rco) should overwrite falsy value (so the
behavior of v7 for old api fields overwritting is re-introduced) and
get back the behavior of old api in V7.

closes #7035
opw-639712
2015-06-12 15:08:54 +02:00
Nicolas Martinelli 5ada7bb0d0 [FIX] purchase: does not use minimum seller qty if delivery address is customer
This prevents to use the minimum quantity of the seller in case of dropshipping
2015-06-12 14:05:03 +02:00
Goffin Simon 3a9e6828f1 [FIX] stock: Unit of Measure
When the uom(Unit) set by default is not in the same category than the uom category of the product,
the uom of the product is set.
When the uom is changed, the theoretical quantity and the real quantity are recomputed.

opw:641027
2015-06-12 13:23:40 +02:00
Damián Soriano 2df9060d97 [FIX] tests: db name moved from constant to function
Avoids initializing the DB constant too early
when subcommand modules are loaded, making them
unable to run db-backed tests later.

Closes #6984
2015-06-12 12:43:01 +02:00
Damián Soriano de20e18faa [CLA] Adhoc.com.ar 2015-06-12 12:43:01 +02:00
Nicolas Martinelli ed6a622c02 [FIX] stock: choose quants depending on original move when scrapping
When a product is scrapped, we set the reservation_id of the scrapped move on
the quant corresponding to the original move (e.g., the move which brought a
manufactured product from production to stock). By doing so, we will subtract
the quantity to scrap from the appropriate quant.

opw-641852
2015-06-12 12:38:55 +02:00
Denis Ledoux a29e291b69 [FIX] point_of_sale: ACLs & security rules
POS users/managers should not have any access
to the account.move/account.move.line, since
they are not accountants.

Regarding the bank statements, they should only
have access to the ones coming from the POS
specifically.

opw-628000
2015-06-12 12:33:48 +02:00
Christophe Matthieu bd3f6e447e [IMP] web: split misc.js into misc.js and session_instance.js 2015-06-12 12:02:34 +02:00
pvy 69ff9d1eaa [IMP] stock_account: added property stock accounts to remove dependencies 2015-06-12 10:10:28 +02:00
Moises Lopez a0f44726b1 [CLA] add missing vauxoo people 2015-06-12 09:39:51 +02:00
nafex f5585731f4 [FIX] website_sale: allow to reset field
When filling the form (for invoice or delivery details), once a field has been
filled, it's no longer possible to remove the value of this field.
e.g. set a company, not possible to remove it when modifies the address

This is due to the `get(key)` call that is considered as False with empty
strings. Instead, check the existance of the key.
Still not accepting mandatory in the form (not checked in this method).

Fixes #7017
2015-06-12 09:37:45 +02:00
Goffin Simon d1c5aa79d5 [FIX] project: active_test
When a project is duplicated, the disabled automated actions don't
have to be applied.

opw:642129
2015-06-12 08:52:18 +02:00
Fabien Pinckaers f9735c1b78 [IMP] opportunity view form, two buttons 2015-06-11 23:07:52 +02:00
Christophe Matthieu 9f000449dc [IMP] boot.js: add debugging features on odoo.__DEBUG__ object: get_missing_jobs and get_waited_jobs 2015-06-11 17:11:21 +02:00
Christophe Matthieu 8f1bb1f72b [IMP] qweb2.js: display with console.debug the error message and the template name when the qweb try to compute a wrong template 2015-06-11 17:11:21 +02:00
Denis Ledoux b94e365dc7 [FIX] event: Attendees stat button in event form/kanban
The stat button count included only reserved seats,
while, when clicking on the button, all attendees
were displayed: draft, confirmed, canceled, done.

Usability speaking, this isn't right.

Besides, once the attendee actually attended the event,
it wasn't anymore included in the count, which is not logical
either: by "Confirmed", you expect the reserved attendees
and the attendees already there.

In addition, on the kanban view, the link said "confirmed" attendees
as well, but redirected to the list with all attendees.
The "expected attendees" value on the kanban was along a "report"
link, bringing to the report where only confirmed seats are displayed.

Kind of non-sense.

Finally, the decision made:
 - For an event, the more natural count that you want to see first
 is the "expected" attendees, including draft, reserved and attended
 attendees.
 - Both buttons, on the form view and the kanban view now includes
 draft, open and done attendees, and redirect to the list view
 displaying only these attendees (canceled excluded).
 - On the kanban view, you have a count more including the confirmed
 attendees, including the open and the done attendees.

opw-642134
2015-06-11 16:50:24 +02:00
Stan fd2518eecb [FIX] google_calendar: fail during first sync
If an event exists on Google but was not synced yet in Odoo, the synchronisation
would fail.
When self.OE.found is False, self.OE.event is not defined and trying to access
it would fail (it's a python object, not a recordset)

Check the ownership after making sure the event is present in Odoo.

Fixes #7034
2015-06-11 16:21:14 +02:00
Jigar Patel 22b7362df1 [FIX] website: Fix choose image option 2015-06-11 15:08:14 +02:00
Pedro M. Baeza ec18bf6f44 [FIX] purchase_requisition: onchange argument format
Pass fiscal position ID instead of recordset on onchange_product_id
2015-06-11 14:11:06 +02:00
Goffin Simon 663e7bb531 [FIX] stock_account: refund
Invoices of type refund should be considered.
2015-06-11 13:16:45 +02:00
Christophe Simonis 5e7f143c21 [MERGE] forward port of branch saas-3 up to ed76b2a 2015-06-11 13:00:49 +02:00
Christophe Simonis ed76b2a782 [MERGE] forward port of branch 7.0 up to e470385 2015-06-11 12:46:06 +02:00
Jaysinh Shukla 6909d0e986 [IMP] survey: tests suite and basic UI tests
(+ a few fixes)
2015-06-11 12:25:21 +02:00
Christophe Simonis d802f5f694 [FIX] pad: correct pad.js
- better use of deferred
 - avoid useless re-render of widget by using `internal_set_value`
 - encode username in pad url
2015-06-11 12:15:00 +02:00
bpa-odoo 36af1abba7 [FIX] im_livechat : use env.context and not env._context. Typo, typo, typo ... 2015-06-11 12:08:10 +02:00
Stéphane Bidoul d291aba4b5 [FIX] server: graceful shutdown must send SIGINT instead of SIGTERM to workers
Workers do not specifically handle SIGTERM so it can be used to
force quit them, but the graceful shutdown is triggered by SIGINT.

Closes #6738
2015-06-11 12:00:57 +02:00
Denis Ledoux 9e36cf72c9 [FIX] website_slides: Allow fullscreen for youtube videos
opw-642124
2015-06-11 10:54:40 +02:00
Thibault Delavallée dbb7d38176 [FIX] account: fix untested buggy code introduced at commit
28bd881d919c0779c7a0d554036861f165016b27. It is better to ensure a value exists
in a dictionnary when using it ;) .
2015-06-11 10:36:33 +02:00
Yannick Tivisse a2d4d23912 [IMP] sale,purchase: removed multi-analytic plans settings
Lots of people used to activate this option by mistake, so we remove the
checkbox but people can still install the module.
2015-06-11 10:23:55 +02:00
Goffin Simon e208fe51db [FIX] point_of_sale: precision
Regression introduced by 5a10903.
2015-06-11 08:45:17 +02:00
Jeremy Kersten d6a30df5cc [IMP] website_payment: add payment method in footer
(optionnal and desactivate by defaut)

Add all acquirers published in the automatic footer
2015-06-10 21:50:50 +02:00
Jeremy Kersten c4a6e504e3 [FIX] website_sale: fix tracking js
Dom has been changed by another commit
2015-06-10 21:46:05 +02:00
Jeremy Kersten fcff956c55 [IMP] website_sale: display cgv at payment step 2015-06-10 21:46:05 +02:00
Jeremy Kersten 18aa569a10 [IMP] website_sale: allow extra step as option
Allow to add a step between address and payment form to allow to customize the
 checkout form.

Only fields prefixed with x_ value are allowed. So it's to the user to implement
 automated action if they want write on a default field not prefixed by x_.
2015-06-10 21:46:05 +02:00