Commit Graph
102030 Commits
Author SHA1 Message Date
Yannick Tivisse df38cf9502 [MOV] account: Move account part from warning module 2016-04-07 10:08:19 +02:00
Yannick Tivisse 5a52c1bcfb [REM] warning: Remove module 2016-04-07 10:08:19 +02:00
Cedric Snauwaert 841f208b22 [REF] base_import: simplify import by reducing choice for the columns based on heuristic
automatically try to detect type of columns from the first 10 rows of file:
If column only contains integer, only show, int, float, monetary, m2o, o2m, m2m fields in wizard
If column only contains true/false values, only show boolean fields in wizard
etc

add an advanced mode which is the same as previous import (show all fields)

Support different date format and float value with currency as well as float value with parenthesis to reprensent negative value.
2016-04-07 09:42:23 +02:00
Mitali Patel 3f82240614 [FIX] base: undefined variable
Forgotten during migration of base/ir/* to new API.
Was preventing to uninstall a module.
opw-673801
2016-04-07 08:36:56 +02:00
Srushti Patel 71fae64534 [MIG] product_expiry: migration to new api
Thanks rgo-odoo for the _get_dates method and the removal of the context abuse.
2016-04-06 16:43:44 +02:00
Srushti Patel 86033b0f93 [MOV] product_expiry: split file product_expiry.py 2016-04-06 16:43:44 +02:00
Srushti Patel 1119681de0 [MOV] product_expiry: reorganizing the directory structure 2016-04-06 16:43:44 +02:00
Ravi Gadhia 4c2cda3fd8 [IMP] website_sale_digital: almost a new api migration
Ok it was already written in new api, so what is the purpose of this commit?
Just a nice spring code cleaning.

Closes #10941
2016-04-06 16:37:54 +02:00
Martin Trigaux aa555099f3 [MERGE] website_sale_options: migration to the new API 2016-04-06 16:09:07 +02:00
Ravi Gadhia 008494e977 [IMP] website_sale_options: new api migration 2016-04-06 16:07:51 +02:00
Martin Trigaux 1a6970b1ed [IMP] website_sale_options: modal context cleanup
Do not make a global context but only set it where it's useful, to fetch the
price of the product based on the quantity (pricelist)
2016-04-06 16:06:48 +02:00
Christophe Simonis 962de5230b [FIX] website_sale: do not use undefined variable
Error introduced by previous forward-port
2016-04-05 22:44:33 +02:00
Christophe Simonis 658989868c [MERGE] forward port of branch saas-10 up to aa6ebd1 2016-04-05 20:08:50 +02:00
Christophe Simonis aa6ebd146a [MERGE] forward port of branch saas-9 up to 549daaa 2016-04-05 19:27:34 +02:00
Christophe Simonis 549daaaba4 [MERGE] forward port of branch saas-7 up to 3e639f4 2016-04-05 19:08:01 +02:00
Christophe Simonis 3e639f4bea [MERGE] forward port of branch 9.0 up to 9e2de9b 2016-04-05 19:06:25 +02:00
Christophe Simonis 9e2de9b1ae [MERGE] forward port of branch saas-6 up to 7f5ca1d 2016-04-05 19:04:36 +02:00
Christophe Simonis 7f5ca1d94a [MERGE] forward port of branch 8.0 up to ceb87b7 2016-04-05 18:59:00 +02:00
Julien Legros ec444bf091 [FIX] calendar: mail_thread overrides
Since calendar_event overrides read to handle virtual ids, we need to do
the same for mail_thread _get_message_unread and _get_message_needaction
methods. Otherwise virtual ids may end up in the cache and browsing them
would fail.
2016-04-05 18:19:52 +02:00
Martin Trigaux 44c0245a6a [FIX] base_import: example files
SQL dump:
- Recent export with -O to remove owners
- correct poor Ramzy name

purchase order CSV:
- use correct column names
- remove destination and pricelist columns
- first file should not contain order lines
- second file should be same as first + lines
2016-04-05 13:57:44 +02:00
Xavier Morel ceb87b78f0 [REV] usage of m2m listview for o2m
Turns out to break way more than it fixes.
2016-04-05 11:32:59 +02:00
pgu-odoo f0c2585536 [MIG] sale_order_dates: converted yml test to python 2016-04-05 10:09:54 +02:00
pgu-odoo c1cfbf6436 [MIG] sale_order_dates:mMigrated to new api 2016-04-05 10:09:19 +02:00
pgu-odoo 520d9658a7 [REF] sale_order_dates: rearranged files according to new API file structure 2016-04-05 10:08:39 +02:00
Joren Van Onder 7318ab6710 [FIX] web_calendar: fix read_slice race condition
When quickly changing the range in the calendar view, multiple
asynchronous read_slice requests will be launched. The read_slice
returns the records and sets the ids property on the dataset according
to a set domain, context etc.

This creates a race condition because although the read_slice calls will
be launched in the correct order, there is no guarantee that they will
resolve in the correct order. In practice issues will occur quite
frequently on a slower connection and with a big read followed by a
small read. The big read that matches a lot of records will be slower to
complete than the small read which will result in it resolving later
than the small read. This causes the dataset to not be in sync with the
rest of the view. When you click on an affected event everything will
look fine in the popup, but when clicking on edit the form view will
show a new event instead. The reason for this is that switching to the
form view requires a correct dataset.index, which is set by
dataset.get_id_index(id) which won't exist.

A potential way of fixing this would be guaranteeing the order of
read_slice calls by only allowing one of them to be active at a
time. This would not be ideal because you could end up with a long chain
of read_slice calls when changing the range fast on a slow
connection. In theory the UI would have to block as well then.

Instead of that, we will simply ignore responses to out-of-date
requests. This is done by manually resetting the ids property of the
dataset to its previous value when we detect the range of the calendar
has changed since the read_slice call was launched.

opw-673425
2016-04-05 09:29:53 +02:00
Jeremy Kersten 3373af527c [FIX] sales_team: allow to pass False as default saleteam
Before this fix, sales_team.team_sales_department was always used ignoring default_ in context.
Now we check before in context if a default sale team is forced.
We allow False as saleteam, eg you assign a lead to a employee who is not a saleman.

Now we check that the default saleteam sales_team.team_sales_department is configured to use_leads
to avoid undefined saleteam in the front end.
2016-04-04 17:21:14 +02:00
Martin Trigaux 33c094d218 [ADD] payment_stripe
https://stripe.com/docs/api

Closes #11587
2016-04-04 17:09:08 +02:00
Damien Bouvy 8ae6406a37 [FIX] account: allow forcing company when fetching fpos
The code to fetch the fiscal position of a partner uses ACLs and
ir_rules to select the correct ones, but when calling the function
as admin, multi-company rules flight out the window.

By allowing to force a company in the context, we can get the fpos
as the admin from the pov of any company.
2016-04-04 15:37:22 +02:00
Alexandre Fayolle cc60504bff [FIX] base: only run postinstall tests for installed or updated modules
Uninstalled modules are skipped with the filtering on the state.
Fixes #9768, Closes #11378
2016-04-04 14:32:20 +02:00
Nicolas Martinelli a0e04afe62 [FIX] purchase: supplier currency
When a supplier is added, the potential change of currency should be
taken into account.

opw-672862
2016-04-04 14:17:41 +02:00
Nicolas Martinelli 7c410c7c12 [FIX] purchase: do not add contact in suppliers
When the PO is related to a contact of a company, the current behavior
is to add the contact in the list of suppliers of the product. However,
there is little chance that this is actually the desired behavior.
Indeed, in most of the cases, this will simply add a lot of useless
suppliers on a product.

The fix is to add the parent company of the contact in the list of
vendors, since `_select_seller` wil also search in the parent companies
to get a purchase price.

opw-672862
2016-04-04 14:17:41 +02:00
Aaron Bohy 8b596e8e1b [FIX] packaging: wrong version in release.py
introduced by forward-port, breaking nightly builds of master.
2016-04-04 13:53:10 +02:00
Géry Debongnie 3d4954b88f [FIX] web: some float fields silently ignores their changes
We have an interesting problem when editing all custom float fields and all
fields with no explicit digit attributes: the propertiesmixin tries to
check if the number was changed, according to their declared precision.
But for these specific fields, it does not find a digit attribute, and
defaults to 2.  Then, it makes sure that the changes are ignored if the
new value is too close to the old value (with 2 digits precision)

For example, if the user sets the value to 1.234, then save, then change
it to 1.235, then save, the form view will display 1.234 and totally
ignore the change.

Not that handling the digit precision is done in the propertiesmixin and
in the field float widget.  Also, they do different things, and in some
case, may not be the same.   All this logic should be moved to the
fieldfloat widget.
2016-04-04 12:18:17 +02:00
Aaron Bohy 7014579d22 [FIX] hr_attendance: display of attendance button in systray
In the enterprise client, in mobile, the buttons in the systray are 'display:
inline-block'. This rule was overriden in the case of the attendance button
by a 'this.$el.show()', which changed the display to 'block'. This rev. uses
'do_show' and 'do_hide' functions of widgets instead, as they don't change the
display.
2016-04-04 10:52:23 +02:00
Yannick Tivisse 8db497185d [IMP] stock_account: Hide 'Account Stock Properties' if 'Perpetual' valuation
Because if you set the inventory valuation as manual you don't create
accounting entries automatically when stock moves are confirmed.
2016-04-04 09:59:24 +02:00
Fabien Pinckaers e64b84ed9a [IMP] payment amount in payment.transaction 2016-04-03 16:15:34 -07:00
Fabien Pinckaers 9755842538 [IMP] order of fields in invoice form 2016-04-03 16:12:58 -07:00
Fabien Pinckaers 765d68b41f [IMP] better order of fields in invoice form 2016-04-03 16:11:48 -07:00
Fabien Pinckaers 218a816149 [FIX] removing write field: statement_line_id is on move 2016-04-03 15:50:44 -07:00
Odoo Translation Bot 678a84e626 [I18N] Update translation terms from Transifex 2016-04-03 02:59:02 +02:00
Fabien Pinckaers 300c935c3d [IMP] Inventory loss -> inventory adjustment 2016-04-02 12:59:23 -07:00
Fabien Pinckaers 9188d01934 [FIX] correct domain for entries selection 2016-04-01 23:36:09 -07:00
Fabien Pinckaers 3d48f2a375 [IMP] Create payment when registered from bank statement 2016-04-01 22:07:42 -07:00
Fabien Pinckaers e49893ab2d [IMP] Balance in Odoo --> Balance in GL 2016-04-01 19:22:13 -07:00
Olivier Dony b5a7491b64 [MERGE] Forward-port of saas-7 up to rev. 83a08c4791
Conflicts:
	openerp/addons/base/res/res_partner.py
2016-04-02 01:09:07 +02:00
Olivier Dony 83a08c4791 [MERGE] Forward-port 9.0 up to rev. 7a483a85d4 2016-04-02 01:03:59 +02:00
Raphael Collet 7a483a85d4 [FIX] *: do not use computed fields for resizing images
Otherwise recomputation may fail with "record does not exist or has been
deleted" when creating records with a value directly set for e.g.
'image_mediun' on a new product.

The issue comes from the storage of the images.  When creating a product, the
creation of an attachment for storing the field `image_medium` triggers the
recomputation of that field before its dependency `image` is set.  As `image`
is initially null, `image_medium` is recomputed as null, and this deletes the
attachment just created before the latter has completed its creation!  As a
consequence, some code at the end of `create` for the attachment crashes
because the record has been deleted.

The following models have been fixed: `fleet.vehicle.model.brand`,
`hr.employee`, `im_livechat.channel`, `mail.channel`, `payment.acquirer`,
`pos.category`, `product.template`, `product.public.category`, `res.partner`.

opw 666330
Closes #11516
2016-04-02 00:47:57 +02:00
Olivier Dony f6090e69e6 [FIX] ir.attachment: verify mimetypes match w/ contents 2016-04-01 20:44:52 +02:00
Olivier Dony b7b2609328 [FIX] base_import: avoid JS error in callback 2016-04-01 20:44:10 +02:00
Olivier Dony e2d0f1e974 [FIX] base: require wizard for passwd change 2016-04-01 20:42:50 +02:00