Commit Graph
110943 Commits
Author SHA1 Message Date
Moisés López ca82c77d48 [IMP] doc: remove <data> tag from xml files
Because now is no longer required

Closes #18144
2017-07-13 17:15:51 +02:00
qdp-odoo 3073bf0f54 [IMP] account: allow to switch accounting packages (CoA...)
We can now select a new localization module in place of the existing one, if no accounting has been done yet.

This allows to set a default CoA for Germany and China, by choosing arbitrary one of the existing localization package at the installation since they can directly switch if needed.

Was PR #16605.
2017-07-13 17:01:04 +02:00
Richard Mathot 924ffc6bc3 [MERGE][IMP] delivery,website_sale_delivery: refactoring and cleaning
- [x] remove 'available' field:
    - [x] availability is computed only based on country/state/zip rules
    - [x] also in ecommerce
- [x] remove 'price' computed field
    - [x] remove context hack for computing price
    - [x] price is not computed on save anymore, but with a get/set price button
    - [x] errors/warnings are now displayed in a special message box
    - [x] carriers return values are now more versatile
- [x] delivery_grid is now a generic shipper
- [x] fixed price is not a particular case of a grid anymore but a simple product price
- [x] as a consequence of previous 2 points, a lot of duplicated code has been removed
- [x] we can now save SOs even when a webservice has failed to return a price
- [x] no more hacks on name_get/context
- [x] "free over" an amount is now a generic feature
2017-07-13 12:35:34 +02:00
Richard Mathot f963500a9f [IMP] delivery,website_sale_delivery: refactoring and cleaning 2017-07-13 12:32:22 +02:00
Richard Mathot f2c9b519a7 [REF] delivery: linting and cleaning of delivery.price.rule 2017-07-13 12:32:22 +02:00
Richard Mathot 121a94204d [IMP] delivery: the initial bad decision
Having price and availability as computed fields of a delivery.carrier
may sound handy.

Actually, it comes with is batch of lame hacks, poor performances and
terrifying heisenbugs.

We will try to make something better. It has to start with a breaking.
2017-07-13 12:32:22 +02:00
Richard Mathot 01196030a5 [REM] delivery: dead onchange
Since this field is not in any view from a long time
2017-07-13 12:32:22 +02:00
Richard Mathot c923b39f6b [REM] delivery: unused name_get hack 2017-07-13 12:32:22 +02:00
Richard Mathot 38fd46e068 [IMP] delivery: prevent creation of new carriers from stock.picking view 2017-07-13 12:32:21 +02:00
Richard Mathot d12815e1ad [REM] delivery: unused code 2017-07-13 12:32:21 +02:00
Richard Mathot c922746ebf [REM] delivery: unused blob 2017-07-13 12:32:21 +02:00
Richard Mathot 1f7035245d [REM] delivery: unused code 2017-07-13 12:32:21 +02:00
Laurent Smet 93be8cdc2d [ADD] account: allow filtering moves on account_ids throught context
The check register report is the same as the general ledger except it only displays
account in type cash. On report, a "totals" line appears when only one journal is selected
but it's value is computed based on the whole accounts without filtering. Then, we need a
way to compute this totals only based on specific accounts

task: https://www.odoo.com/web#id=28656&view_type=form&model=project.task&action=333&active_id=967&menu_id=4720
2017-07-13 12:04:51 +02:00
fwi-odoo bb908979e9 [FIX] web: avoid interactions between drag and drop tests
The commit 5854bb7d12 introduces a new option
to drag element without dropping them.

But it's not allowed to start a new drag and drop until the first one is
completely done.

So when the element is removed from the dom (the test is finished), we complete
the drag and drop in order to let next tests perform drag and drop.
2017-07-13 11:38:53 +02:00
qdp-odoo 8bea502f33 [REM] *: removal of fax field on res.partner object
Deprecated technologuy that doesn't deserve its dedicated field anymore. RIP faxes
2017-07-12 17:48:43 +02:00
qdp-odoo 9d1df81af5 [IMP] account: onboarding of the invoicing app
-added tour for invoicing
-allow to set easily the number of the first invoice/bill/refund of a journal, from the invoice screen
-small usability fixes and refactoring
2017-07-12 17:48:43 +02:00
qdp-odoo 99385d660d [ADD] base_vat_autocomplete: module to fill partner's data from the VIES when encoding its VAT number 2017-07-12 17:48:43 +02:00
qdp-odoo dcf71c0148 [IMP] base: usability improvement of the res.partner form view
Addition of a shorter and cleaner form view, to be used in quick creates
2017-07-12 17:48:43 +02:00
fwi-odoo ce36cbdcb9 [FIX] web: load subviews in the correct function
Before this commit, it was impossible to load the x2many fields subviews when
they were not defined inline.
Now it is possible to call the method "_loadSubviews" to do so.
Used mainly in studio, to be able to display the x2many fields without inline
views.
2017-07-12 16:40:42 +02:00
Géry Debongnie 737033d987 [FIX] crm: use correct effect type
The rainbow_man effect has 'rainbow_man' type, not 'rainbow'.  This is
what happens when someone decides to change the spec after testing has
occurred...
2017-07-12 14:51:13 +02:00
Dharmraj Jhala 4330ea0267 [ADD] web, *: add rainbowification
This commit introduces the 'rainbowification' feature to the web client
(and to some affected addons).  This feature is essentially a way to
display a nice friendly message when some business event happens.  For
example, a encouraging message is displayed when the user clear her/his
inbox, or when a salesman closes a deal.

The mechanism currently only displays a 'rainbowman', but could be
extended later to add other kind of animation.

There are a few different ways to display a 'rainbowman':
- any JS code can simply trigger_up an event ('show_effect') with some
  options: for example
    this.trigger_up('show_effect', {
        type: 'rainbow_man',
        fadeout: 'no',
        message: $done,
        click_close: false,
    });
- an action returned by the server can have an 'effect' key, with some
  options
- the do_execute_action method accepts a 'effect' option.  This is
  useful when one wants to specify a rainbow on an action button in a
  form view

Joint work with: dbh <dbh@odoo.com>, ged <ged@odoo.com>
2017-07-12 13:43:08 +02:00
Thibault Delavallée 578edf73b9 [FIX] point_of_sale, website_sale: correctly handle tuple return value of render_qweb_pdf
Fix related to e80238042c .
2017-07-12 09:54:00 +02:00
Thibault Delavallée 9fb86d6fac [FIX] mail: do not put context as feedback when marking an activity as done 2017-07-12 09:54:00 +02:00
Darshan Kalola cfbbc236ae [FIX] auth_signup: access right issues
When another user than administrator opens the mail sending wizard there
is an access right issue. Indeed as sale mail links now contain auth_signup
parameter an access to allow_uninvited config parameter is done. However
this has to be done using sudo because classic users have no access to
config parameters. Fix related to e79eb01a67 .
2017-07-12 09:54:00 +02:00
Thibault Delavallée 1b12e6bbd6 [FIX] website_quote: fix template variable name
JS waits for callUrl, not url. Fix related to 6e3392b341 .
2017-07-12 09:54:00 +02:00
Thibault Delavallée 69793fac0e [FIX] payment: remove duplicate website_published button on acquirer form view
Fix related to cbca7e1313 .
2017-07-12 09:54:00 +02:00
qdp-odoo a0868987e9 [REM] l10n_fr_certification: result of the recent volte-face made by the french government.
This module does not seem needed anymore currently for accounting. We will probably reuse part of it for the incomming POS-certification module, though.
2017-07-12 09:50:26 +02:00
Dhawal Limbuwala 8837735f3c [FIX] stock: Avoid compute method for newID records 2017-07-11 17:10:57 +02:00
Yannick Tivisse 83c01a461c [IMP] resource: Ensure time_efficiency to be strictly positive 2017-07-11 17:01:34 +02:00
Christophe Simonis e90cd4aa73 [MERGE] forward port branch saas-16 up to 1581d31b3e 2017-07-11 16:28:36 +02:00
Mehul Patel 50b3b3c8d1 [FIX] web,odoo: Remove remaining workflow related code 2017-07-11 16:27:15 +02:00
Christophe Simonis 1581d31b3e [MERGE] forward port branch saas-15 up to 0f2a06e29b 2017-07-11 16:06:17 +02:00
Thibault Delavallée ba76985196 [IMP][FIX] hr_contract: merge both state update cron into onee and fix the method
Purpose

 * lessen number of crons in Odoo
 * fix the method that seems buggy, probably to backport
2017-07-11 15:59:10 +02:00
Akash Bhavsar bf9cbcc8d8 [IMP] pos_sale: Add analysis report about total sales from pos, eCommerce and sale
Purpose
=======

Create one report where we can see all sales (sales from sales, eCommerce, POS) grouped by channels

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

New Report Sales > Reports , the name should be "All Channels Sales Orders"
This report contains the following fields :

   name
   date
   product_id
   partner_id
   company_id
   user_id
   price_total
   pricelist_id
   categ_id = product_categ_id
   invoiced = amount to invoice
   analytic_account_id
   team_name
   country_id

We thought about doing a kind of sale_order_common report, but we cannot re-use sale.report because of some field (qty_delivered, ...) that we cannot compute on pos orders.
2017-07-11 15:31:04 +02:00
Christophe Simonis 0f2a06e29b [MERGE] forward port branch saas-14 up to 2fd28b2298 2017-07-11 15:08:36 +02:00
Géry Debongnie 3d16453865 [FIX] web: only send fields present in view in onchange
Before this commit, all x2many fields values were sent to the server in the
onchange call. If a x2many field was not present in the view, then it
was sent as an empty list [], which is totally wrong.
2017-07-11 14:40:34 +02:00
Géry Debongnie 50dd6bcd47 [FIX] web: increase timer for js tests
A few builds fail when run in 'primetime', because the js test suite
takes more than 120 seconds (on the slow runbots). With this commit, we
increase our timer to 180s to make sure that this does not happen again.
2017-07-11 14:40:31 +02:00
Yannick Tivisse c9b74a047c Revert "[IMP] account/stock_account: Add a clickable history on journal entries chatters"
This reverts commit 92929ec6a7.

This chatter significantly reduces the perfomances.
2017-07-11 14:27:37 +02:00
Thibault Delavallée 3afb78371f [IMP] portal: use a less "big underlined headers everywhere" display
Main page of the customer portal now contains simply a list of document
models the user can access, under a 'Your Documents' section. It is
a bit easier to read and a bit less ugly than a list of underlined
headers.
2017-07-11 11:28:18 +02:00
Thibault Delavallée efbb4dd903 [IMP] portal: lessen margins around breadcrumb to lessen unused space 2017-07-11 11:28:18 +02:00
Thibault Delavallée 383f3b8b70 [IMP] portal: rename o_website_portal class to o_portal to simplify a bit various class names
Indeed when adding suffixes for sub-classes this makes class names quite
long.
2017-07-11 11:28:18 +02:00
Thibault Delavallée 54ec442780 [FIX] website_project(_issue): correct class name for status table
Class status_table is actually o_my_status_table. Not really wonderful
but at least it matches what is already used in other portal modules.
2017-07-11 11:28:18 +02:00
Christophe Simonis 2fd28b2298 [MERGE] forward port branch 10.0 up to 0ac49ee1e4 2017-07-11 11:05:19 +02:00
Christophe Simonis 0ac49ee1e4 [MERGE] forward port branch saas-11 up to d52f0a29b4 2017-07-11 10:45:36 +02:00
Géry Debongnie bd4e026786 [FIX] purchase: fix another invalid option in xml
There was an extra ', which makes the options dictionary totally
invalid.  Because of this, it is impossible to open the 'Purchase'
application (it causes a traceback)
2017-07-11 10:44:58 +02:00
Christophe Simonis d52f0a29b4 [MERGE] forward port branch 9.0 up to 479facb783 2017-07-11 10:34:07 +02:00
Géry Debongnie f39dee3e59 [FIX] purchase: fix invalid options in xml
There was an extra ', which makes the options dictionary totally
invalid.  Because of this, it is impossible to open the 'Purchase'
application (it causes a traceback)
2017-07-11 09:24:11 +02:00
Raphael Collet e25bcf41e2 [REF] models: group recomputation triggers to minimize the number of requests
When several fields are modified and trigger the same recomputations, the same
SQL queries were made to determine the records to recompute, because each field
was processed independently.  In order to avoid duplicated SQL queries, process
the triggers of the modified fields altogether.

This reduces the number of queries by 15% to 25%, depending on the number of
computed fields.
2017-07-10 16:18:33 +02:00
Raphael Collet c47a41b8b4 [IMP] mail: avoid useless query
Replace `model.search([('id', 'in', ids)])` by `model.browse(ids)`, which is
safe because `ids` come from reading a many2one field.  The performance impact
is negligible.
2017-07-10 16:18:33 +02:00
Wolfgang Taferner 170db9e03d purchase: order field must be changed only in invoice draft state 2017-07-10 15:57:47 +02:00