Commit Graph
95198 Commits
Author SHA1 Message Date
Damien Bouvy dbd3efef1f [IMP] payment: add support for server2server payments
This commit adds a new model, Payment Method, which stores
a reference to the payment acquirer's database and a reference to
a partner. Each payment module must have its own implementation.

The implementation is completely abstract but may not suit every
provider's way of implementing recurring payments.
2015-06-15 14:57:14 +02:00
Christophe Simonis 4647778758 [MERGE] forward port of branch 8.0 up to ea59856 2015-06-15 12:28:32 +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
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
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
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
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
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
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
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
Goffin Simon e208fe51db [FIX] point_of_sale: precision
Regression introduced by 5a10903.
2015-06-11 08:45:17 +02:00
Aaron Bohy 58a13eb3f1 [FIX] Web: add forgotten semicolon
Shame on me...
2015-06-10 15:56:48 +02:00
Aaron Bohy a7ecb9d6ca [FIX] web, web_diagram: load correct view on direct access/refresh
!! THIS SHOULD NOT BE FORWARDPORTED TO MASTER !!

When loading an action with a specific url (e.g. when refreshing the
browser), the view displayed before refreshing should be loaded
directly (except for form views, for which we need the default
view to be loaded first to keep the breadcrumbs intact).

Before this rev, it automatically first loaded the default
view for the model (i.e. the first view in the views' list), and
then switched to the previously displayed view. This sometimes
produced an error when using a filter needing a field not available
in the default view (e.g. Reporting > Project > Issues Analysis,
switch to the second view 'Graph', and then refresh -> Error).

This revision introduces a new key in the View widget: multi_record.
This key distinguishes views that aim to display several records
(e.g. List, Kanban ...) and those that display a single record (i.e.
Form and Diagram). We use this key to decide whether or not the
view stored in the url should be directly loaded (yes for
multi-record, no otherwise).
2015-06-10 15:34:41 +02:00
Aaron Bohy a5f0198f9c Revert "[FIX] web: default loaded view on direct access/refresh"
This reverts commit 291eb111b3.

By putting into the flags object the default_view stored into the
context (i.e. the one written in the url), it happens that a View
Manager tries to open a view which is not available. For instance,
Sales > Sales Teams. Then refresh the page. As we are in a Kanban
view, the view_type = Kanban is stored in the context. Then click
on Quotations in a Kanban card. It doesn't work because the
ViewManager tries to open the Kanban View of the Quotations which
doesn't exist.
2015-06-10 15:27:59 +02:00
Nicolas Martinelli 7360a30b27 [FIX] crm: create logged calls from tree view registers mobile phone
When a logged call is created from the tree view, the mobile phone of the
partner is not filled in automatically, while it is in the form view.

opw-640549
2015-06-10 09:27:25 +02:00
Martin Trigaux 87d48b0859 [FIX] web: do not crash when select wrong db
When a user tries to log into a postgresql database with no view web.login (this
happens if the database is not an odoo database or using a previous version of
odoo), the rendering failed, producing a 500 error (with no detail for the user)
Instead, redirect to the database selector with an informative message.
Fixes #3443

The database selector page is a jinja template with no access to database
required so should be able to be displayed on any database.

Future improvement could verify the version of base module for even more precise
verification before login (but need to make sure it's always accurate).
2015-06-09 15:05:57 +02:00
Goffin Simon 4d7671a4c3 [IMP] website_sale: Skip overload with requests
Until the request to get the unit price is not finished, no request is sent to the server.

issue #4298
2015-06-09 12:06:18 +02:00
Jean-Baptiste Quenot 78420d1cf2 [CLA] sign for Jean-Baptiste Quenot 2015-06-09 11:44:45 +02:00
Jeremy Kersten 31301bb31a [FIX] website_sale: reset sale order from session if status is no more in draft
When a sale order has in state != draft, we raise a error message since commit
f6c65a3d9e.

But if we don't reset the sale order id from the session, the user cannot
continue to navigate on website because the user will have the error each time.
2015-06-09 11:13:20 +02:00
Josse Colpaert 49973b161a [FIX] stock: In optimization for the grouping of product routes, correct the calculation of the product dict 2015-06-09 10:15:36 +02:00
Raphael Collet 4a5e2fe99e Merge pull request #5618 from acsone/8.0-fix-5616-ir_model_fields-from-fields
[FIX] model: use self._fields instead of self._columns to populate ir.model.fields
2015-06-09 09:51:49 +02:00
Goffin Simon fb57514cf0 [FIX]account_anglo_saxon: price unit of a move
The price unit of a move must be computed with the product_uom of
this move.

opw:640454
2015-06-09 09:30:54 +02:00
Nicolas Martinelli 4a281754db [FIX] purchase: add transition invoice_end to cancel in the workflow
If the state of the PO is 'approved', there is no transition foreseen in
order to cancel the PO.

The user might be blocked in the following situation:
- Create a purchase order with invoicing set as Based on incoming shipment
- Validate the purchase order, create the shipment
- Then, cancel it (the shipment)
- Return back in the purchase order, the PO should be in shipping exception
- Hit the "manually corrected"
- Then, try to cancel the PO: nothing happens.

opw-641014
2015-06-09 08:20:10 +02:00
Nicolas Martinelli e470385d55 [FIX] account_voucher: select the right credit/debit account for the payment
If different debit/credit accounts are configured for a journal, the
appropriate account must be selected.

opw-640745
2015-06-09 08:13:16 +02:00
Christophe Simonis 2dd558fb0e [FIX] account: correct tests
da92283 was an attempt to fix tests due to screwed-up conflict
resolution during forward-port at 8b5a1f1.
This has been fixed with b173e8e. Now, time to test correctly.
2015-06-08 18:35:05 +02:00
Leonardo Pistone a3e4a1f39f [FIX] stock: propagate owner when generating extra move 2015-06-08 18:23:31 +02:00
Guewen Baconnier c315377d00 [IMP] purchase: Ignore canceled purchase lines
Canceled lines must be excluded from most of the operations done on a purchases orders.
The check has been done in some places but some of the loops on the order lines do not do it.
This commit correct them.
2015-06-08 18:19:38 +02:00
Guewen Baconnier 96b53126a2 [IMP] purchase: Purchase report uses the state of lines instead of purchases
So canceled lines of not-canceled orders are correctly represented in the
analysis.
2015-06-08 18:19:20 +02:00
Odoo Translation Bot d9e8c3ade4 [I18N] Update translation terms from Transifex 2015-06-08 17:22:46 +02:00
Olivier Dony b173e8ee60 [FIX] account: forward-port indentation error for commit a475a2721a 2015-06-08 15:37:53 +02:00
Odoo Translation Bot e2c9699cfc [I18N] Update translation terms from Transifex 2015-06-08 14:03:50 +02:00
Wolfgang Taferner 2f5d681135 [FIX] product_extended: cost price computation from BOM
having lines with products using a different UOM for
sales and purchases

If a product does have a (different) purchase uom, we should first
take it as a base for calculating prices as the standard price relates
to it and not the sale (normal) uom.

Closes #6829
opw-640616
2015-06-08 11:13:05 +02:00
steveferry 852b1f17ea [IMP] doc: list of linux -dev dependencies incomplete
I had to install libldap2-dev because of this error: lber.h no such file
or directory.  After this package's installation, the requirements
installation works with no errors.  So I guess it's needed too.

closes #6971
2015-06-08 08:30:03 +02:00
Alexis de Lattre 96135fa785 [FIX] http: correct authentication via JSON-RPC.
Since 31d817e, we rotate then session at login/logout.
Unfortunatly, `openerpframework.js` does not support session id change
at authentication and keep old one.

In order to keep compatibility with existing js clients (including 7.0
ones), we do not rotate the session at authentication.

Fixes #6948
Closes #6949
2015-06-05 12:38:39 +02:00