Commit Graph
113877 Commits
Author SHA1 Message Date
Yannick Tivisse 83d5aee748 [IMP] account: Convert yml demo files to xml
NB: the account.move and the account.move.lines creation have been dropped as they were not created in yml due to the if condition.
2017-11-16 14:49:06 +01:00
Yannick Tivisse 6fb8e51b6d [IMP] stock_landed_costs: Convert yml tests to python 2017-11-16 14:49:06 +01:00
Yannick Tivisse cbbd9c443f [IMP] stock_account: Convert yml files to python and xml 2017-11-16 14:49:06 +01:00
Yannick Tivisse bdbc7a6287 [IMP] stock: Convert yml file to python and xml 2017-11-16 14:49:06 +01:00
Yannick Tivisse f7dcabf9f0 [IMP] stock: Rewrite 'create_transit_location' in api.multi 2017-11-16 14:49:05 +01:00
Yannick Tivisse 16a2f91832 [IMP] stock: Log if a method doesn't exist when running scheduler
Purpose
=======

If a method doesn't exist when running scheduler, log an error instead of raising an AttributeError

The goal of a cron method is to go ad far as possible.
2017-11-16 14:49:05 +01:00
Yannick Tivisse 31e3a97577 [FIX] stock: Fix strange ORM bidouille on picking creation
Purpose
=======

This bidouille on the ORM command seems to be from another age where the onchange on o2m list were not working well.

The issue is that _convert_to_write could return commands like (6, 0, []).

In that case the last tuple element is not dictionary, but a list.

Specification
=============

Fix that brol.
2017-11-16 14:49:05 +01:00
Pragnesh Mistry aa13ed876e [IMP] purchase: Convert yml files to python and xml 2017-11-16 14:49:05 +01:00
Yannick Tivisse 2d5aefb72f [IMP] auth_oauth: Convert yml data file to xml 2017-11-16 14:49:05 +01:00
Yannick Tivisse dae838c6fe [IMP] account_asset: Remove demo data
Purpose
=======

As there's no 'xfa_account_id' configured on the module installation, the demo data are not created.

Specification
=============

Remove them.
2017-11-16 14:49:05 +01:00
Yannick Tivisse 4516b1b02b [IMP] mrp: Convert yml demo and data files to python 2017-11-16 14:49:05 +01:00
Yannick Tivisse bf732d9614 [IMP] mrp_repair: Convert yml demo file to xml 2017-11-16 14:49:05 +01:00
Yannick Tivisse e9895dbc42 [IMP] l10n_be: Convert yml demo data into xml 2017-11-16 14:49:05 +01:00
Yannick Tivisse 7a22cbe5f7 [IMP] test_translation_import: Remove tests.yml
The test is already implemented in python in 'odoo/tests/addons/test_translation_import/tests/test_term_count.py'
2017-11-16 14:49:05 +01:00
Nicolas Martinelli 7bfb87b7a8 [IMP] sale: down payment
- Create 2 SO, one with a down payment
- Validate the down payment invoice
- Select both SO, and choose "Invoice Orders"
- Create the invoice

The down payment is not deduced from the invoice.

It is more logical to take it into account at this point of the process.
However, changing this in stable is a major change of behavior.

opw-779954
2017-11-16 10:12:26 +01:00
Cedric Snauwaert c712231745 [FIX] account_invoice: do not truncate product desc in move line 2017-11-14 11:31:00 +01:00
Yenthe V.G c849dcd449 [IMP] account: allow easier xpath expressions
Closes #20907
2017-11-14 10:33:23 +01:00
Pierre Rousseau c563013f3f [IMP] account: Automatic reverse entry at specific date
Added options to reverse entries automatically based on a cron job.

Was PR #18626. Was task 35012.
2017-11-14 09:14:32 +01:00
Haresh Shyara c7d6097a80 [IMP] account, sale, l10n_ch, purchase: replace mail composer inheritance by message_post override
Currently composer is inherited in those four modules to add a specific
behavior when sending the invoice / quotation by email. Purpose is to
mark it as sent, using a magic context key.

This commit keeps the feature but changes the implementation. It is now
done by overriding message_post which should be the entry point for all
message-related features.
2017-11-10 14:35:51 +01:00
Dipali Tank 9b25167c92 [IMP] sale: allow to edit invoice and delivery addresses even if in sale state
According to FP: It should be possible to edit the billing address, and
delivery address on the SO, even if it's confirmed. (Not if locked)
2017-11-10 14:29:55 +01:00
Christophe Simonis ebb6d1e740 [MERGE] forward port branch 11.0 up to 350973ff36 2017-11-10 14:15:02 +01:00
qdp-odoo d86da5de53 [FIX] account: set default tax upon installation of a localization
(defined as the one with the lowest sequence in the chart template)
2017-11-10 12:47:18 +01:00
Géry Debongnie 350973ff36 [FIX] web: prevent test interference
In the view dialog test suite, a few tests created a parent widget, then
created a view dialog, and destroyed the view dialog at the end, but not
the parent widget.  As a result, the environment was not properly
restored at the end.

In this case, the test 'SelectCreateDialog correctly evaluates domains'
changed the session (with user_context: {uid: 2}), and this made other
tests crash (web_editor test in particular)
2017-11-10 12:06:04 +01:00
Christophe Monniez 27128f2618 [FIX] db: remove usage of get_dsn_parameters
get_dsn_parameters may return in some edges cases (like on runbot)
and empty value for the user.
So it should not be used here, instead, a SQL query is able to provide
the currently connected user.
Also, get_dsn_parameters is new in psycopg 2.7.
2017-11-10 10:56:31 +01:00
Aaron Bohy 9bc5009481 [FIX] web(_editor): enable mobile tests
This rev. introduces a new test suite meant to test the webclient
components on mobile devices. The key 'config.device.isMobile' is
forced to true in this test suite, so that mobile specific JS files
are properly executed, which isn't the case in the classic JS test
suite (setting isMobile to true in the test definition is too late,
as the JS files are already processed).

For now, this new test suite contains a single test, which was
skipped until this rev. as it couldn't be executed in the classical
JS test suite.

Both suites are executed at each build of the runbot, and they
can be manually executed from the webclient as well (via the debug
manager).
2017-11-10 10:24:42 +01:00
hch-odoo 1c4d541143 [IMP] account: Fixed type, 'reconciliable' --> 'reconcilable. (#20247) 2017-11-10 10:10:55 +01:00
qdp-odoo 1d515fcdac [IMP] account, usability: little big details
* Fiscal positions: add stat button for 'Active' (instead of checkbox )
* Customer Invoice line form view no need for purchase order remove(or hide in customer invoice) and put Anallytic tag field in form view
* Currencies sorted based on active field (so we can see all active currency first)
* Improve graph for bank and cash journals on dashboard: based on ending balance and statement lines.

Was PR #14833. Was task 29541
2017-11-10 09:56:59 +01:00
Joren Van Onder b4debf7e1b [FIX] point_of_sale: take into account extra variant prices
list_price is the base price of a product which does not include
price_extra.

Note that in the backend the pricelist computation uses

product.price_compute('list_price')

to compute the base price on which to apply the pricelist. For
product.product this seems to be equivalent to the lst_price computed
field.

The original list_price field is unused but has not been removed to
avoid breaking any 3rd party code that is using this field.

opw-781629
2017-11-09 16:05:07 -08:00
Christophe Simonis 26257ad7a1 [FIX] test_performance: bump query count
When `rating` is installed, a few more queries are executed...
2017-11-09 20:35:54 +01:00
Christophe Simonis e74ef6cfb9 [FIX] test_performance: bump query count
Recent changes in tracking fields add a new query. Adapt tests.
2017-11-09 19:44:38 +01:00
Christophe Simonis de93645fe3 [MERGE] forward port branch saas-16 up to 82add438f2 2017-11-09 19:16:05 +01:00
Christophe Simonis 82add438f2 [MERGE] forward port branch saas-15 up to 90ca872071 2017-11-09 18:05:49 +01:00
Yenthe V.G acd26691ee [IMP] stock: Show title instead of id in breadcrumb
Closes #20801
2017-11-09 16:54:20 +01:00
Christophe Simonis 90ca872071 [MERGE] forward port branch saas-14 up to d171f282c3 2017-11-09 16:49:41 +01:00
Christophe Simonis d171f282c3 [MERGE] forward port branch 10.0 up to f8540501ac 2017-11-09 16:19:21 +01:00
Martin Trigaux f8540501ac [FIX] hr_expense: verify the constrain server side too
The groups were set only on the view which does not prevent abuses.
The fact that users can bypass the groups on the view is not critical as the
changes are logged but this should be improved nevertheless.

In master, proper record rules should be set.

Closes #20427
2017-11-09 15:51:14 +01:00
Christophe Simonis 9c634b5b30 [MERGE] forward port branch 10.0 up to a63ecee47a 2017-11-09 15:16:57 +01:00
Géry Debongnie ae4501da9c [FIX] web: do not lose onchange info in some rare cases
Here is a situation where we had a problem:
- a form view with a one2many field, which has no inline views
- the (non inline) list view has a field A, and is not editable
- the (non inline) sub form view has fields A and B, with an onchange on
  B which modifies A

In that case, the user could do this:
- go to edit mode
- click on 'add' a new one2many line
- change the value of B in the form view, this changes the value of A
- click on save to close the modal form view
- click on the new o2m record to reopen the modal form view
- rechange B
=> the onchange does not work

The explanation is that when we reopen the modal, we update the known fields
information, but we had to perform a fieldviewget to fetch the list
view, so we have a full knowledge of the fields.  However, the code did
not update the fields info (because it uses _.default), which means that
the onchange information contained in the form view is lost.

Note: the test system had to be adapted to more closely simulate what
actually happens.  In particular, the onchange flag is no longer added
by the mock server, since it should be done by the data manager, like
'real' code.  This change broke the basic model tests, which had to be
modified accordingly, by setting manually the onchange flag.
2017-11-09 14:03:35 +01:00
Christophe Monniez b2a126da84 [IMP] server,db: coherently handle PGUSER env variable
When Odoo is started with a db_user using 'postgres', the process
exits with a status 1. However, this can be bypassed when the
PGUSER environment variable is used.
This commit will prevent the usage of the 'postgres' for the
environment variable too.
Also, when trying to list db's, various methods where used to find a
suitable postgres user to get this list.
In fact, as the db cursor is available, a user is already at work.
So, in order to avoid code duplication (e.g. verify user from
environment variables), this commit removes those various method
and get the db user from the cursor.
2017-11-09 13:25:16 +01:00
Simon Lejeune a29ec80082 [FIX] stock: _assign_picking
Commit[1] tried to improve the usability of the pick + pack + ship + a
fixed procurement group scenario by erasing the origin value on the
groupped ship that refered wrongly to only the first downstream document
(and in fact refered to multiple).

We forgot the scenario into which we add a sale order line. In this
scenario, we also go through `_assign_picking` and, if an existing open
picking is found, we also wiped its partner and origin value, which was
indeed wrong.

We fix this scenario by being more precise on the erasing condition.

[1] 4a5f07654f
2017-11-09 13:07:00 +01:00
Adrien Dieudonne fe4f63d325 [FIX] web: create in editable grouped list views
Before this commit, an issue occured when you tried to
create a new record in a editable grouped list view.
A new line was created with an undefined group.

Editable grouped list views are not supported.
So now, we have to switch on the form view when
you click on create. This behavior is already implemented
when you open an existing record.
2017-11-09 11:45:04 +01:00
Goffin Simon a63ecee47a [FIX] website_sale: Wrong apply of the fiscal positions when choosing shipping address
In 11.0, this part of the code has been removed.

When choosing the shipping address in the cart, if a tax has been mapped
by a fiscal position, the subtotal was not correctly computed.

opw:778405
2017-11-09 11:44:38 +01:00
Fabrice Henrion 053209fb0e [FIX] mail: add missing space
Closes #20782
2017-11-09 10:58:38 +01:00
Martin Trigaux b1bf99b7e3 [FIX] base: correct Model Overview report
Since 3d04e448, the reports must start with a `article` class, not `page`.
The report was not adapted.

Fixes #20066
2017-11-09 10:56:52 +01:00
Lucas Perais (lpe) 7c486b4d0c [FIX] mail: visitor to portal_user should keep livechat channel
adapting #20279 to v10

Before this commit, when starting a livechat session as a public user and continuing as a portal user, the livechat crashed
(the poral user couldn't see the channel created before as Admin)

After this commit, the conversation is kept and security insured by the uuid in the cookie

OPW 775568

closes #20281
2017-11-09 10:44:37 +01:00
Martin Trigaux da68d1d573 [FIX] fleet: harmonize terms 2017-11-09 09:54:48 +01:00
qsm-odoo 938fca4de1 [REF] website: clean and lint content.js file 2017-11-09 09:49:45 +01:00
qsm-odoo 0a31cb9b4a [IMP] website, *: improve 'animation' API
* web_editor, website_twitter

- There can now be multiple animation widget on the same element
- Animation are destroyed before saving the editor (allows to not be
  forced to do that destruction / code duplication in many cleanForSave)
- .data('snippet-view') is definitely dead
2017-11-09 09:49:36 +01:00
rde a86de52aac [FIX] account: Incorrect behavior for default taxes when multi company is enabled.
Was PR #18931
2017-11-08 20:39:13 +01:00
qsm-odoo c7171795f8 [FIX] web_editor: restore snippet option data parameter
Snippet options were not receiving proper data parameter on
instantiantion due to a websitepocalypse wrong adaptation. Those
data are parameters to tweak an option behavior, directly defined
on the option's <div/> in the XML. By mistake, they were now taken
on the child <li/> element (main DOM element of the option).

A visual example of the bug is the overlay colorpicker displaying
"Background Color" as a title instead of "Overlay Color".
2017-11-08 18:28:48 +01:00