Commit Graph
107677 Commits
Author SHA1 Message Date
mge-odoo ff2f188d20 [IMP] tests: allow post-install tests to play real transactions
Move the post-install tests execution outside `Registry.new`, and add a flag on
class `HttpCase` to enable/disable the registry "test mode".

This allows a test to run actual transactions that will reload the registry,
which may be used to test the creation of `ir.model` instances, etc.
2017-02-08 16:13:01 +01:00
Thibault Delavallée 854759b5b1 [FIX] resource: fix layout issue in calendar form view in multi company 2017-02-08 14:04:54 +01:00
Thibault Delavallée c1526f20e3 [IMP] hr: add settings and add box to configure default company working hours 2017-02-08 14:04:53 +01:00
fwi-odoo 5bd0318594 [FIX] web: use the default library behaviour
The library reset the time set when the date is changed.
Then it was not possible to set the time then set the date
and expect the widget to close since the time will be reset
to the default value.
Instead we use the library behaviour and add a 'close' button
for the datetime widgets.
2017-02-08 12:53:34 +01:00
Dhawal Limbuwala 2e40f53279 [FIX] website_sale: correct spelling
Closes #14454
opw-692002
2017-02-08 09:36:54 +01:00
Nicolas Martinelli 37169c201b [IMP] mrp: store quantity available
We store quantity available to avoid numerical inconsistencies. For
exemple, with a rounding of 1e-6:
- `product_uom_qty` = 0.058824 (stored)
- `quantity_available` = 0.058823999999994 (not stored)

The dependencies of the field are fixed from v10.0.

opw-704775
2017-02-07 16:06:10 +01:00
Haresh Shyara b0efe1d4ba [IMP] purchase: rename some 'Call for Tenders' to 'Purchase Agreements'
Purpose:
========

A blanket order (it's an agreement with a vendor) is not a call for tenders (you aks several vendor to provide you an offer) but they are regrouped under the category "Calls for tenders" in the Settings of Purchase which should be changed .

Specification:
==============

- Change the setting option for 'Call For Tenders'
- Change 'Purchase Requisitions -> 'Purchase Agreements'
2017-02-07 15:55:27 +01:00
fwi-odoo 64a0ece649 [FIX] web: simplify the datepicker template
The library needs to have a 'relative' positioned parent to place
the datetimepicker correctly.
We don't do that in the template
anymore because it was not working in all the cases.
The template which instantiates the datepicker should define
a parent in position 'relative'.
2017-02-07 15:42:25 +01:00
Sagar Ahirrao a27d826ee2 [IMP] sales: rearrange menuitems and specify some groups on them
Purpose
=======

It's hard to find all the menu items dedicated to products & pricing:
- create a product
- set up a discount
- change the pricing
such recurring actions are related to each other but you need to go to different menus: e.g. to edit pricelists you have to go to settings while editing your pricing is a business operation.

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

make one menu item like in ecommerce: CATALOG

Also clean reporting and configurion menus a bit...

Details
=======

Sales menu rearrangement :

Dashboard
Sales
Invoicing
    Orders to Invoice
    Orders to Upsell
Leads Management
Catalog (takes straight to products if no access to variant, pricelist or coupons)
    Products (move from Sales)
    Product Variants (move from Sales)
    Pricelists (move from Config)
    Promotion Programs (move from Config)
    Coupon Programs (move from Config)
Reporting (reorder items, from leads to sales)
    Leads
    Scoring Page Views
    Opp. Assignment Analysis
    Partnerships
    Pipeline
    Activities
    Phonecalls
    Sales
Configuration
    Settings
    Sales Channels (move up)
    Leads & Opportunities
    Sales
        Quotation Templates
        Report Layout Categories
        Payment Methods (if online quotation installed)
        Delivery Methods (move from Config > Delivery)
    Products
        Attributes
        Attribute Values
        Internal Categories (rename from Product Categories)
        Units of Measure
        Unit of Measure Categories
    Pricelists (remove)
    Delivery (remove)
2017-02-07 15:35:33 +01:00
scosist 07cf30064d [IMP] purchase,stock: armonize _select_seller calls
If the data is available in the current context it should be passed to
_select_seller. The calls to _select_seller throughout the lifetime of a
purchase should be consistent (as possible) or the result of
_select_seller could be inconsistent when dealing with multiple sellers
(product_supplierinfo).

Modify a few signature of private methods to pass available information.

Closes #11414
2017-02-07 10:52:56 +01:00
Lorenzo Battistini 269dbc9872 [IMP] model: log a message when an AccessError happens
With the user who is trying to access and the record they are trying to access
to.
This way it is easier to understand the reason of the error.
Do not show record and user ids in the popup as it is a technical information.

Closes #13030
2017-02-03 15:42:47 +01:00
Florent de Labarre 3d3920dfbc [IMP] stock: most recent inventory first
Was: last inventory first which is not very usable as soon as there is many inventory registered.

Closes #15324
2017-02-03 09:20:13 +01:00
Nicolas Martinelli 0a5a423bff [FIX] sale_mrp, purchase_mrp: delivered quantity
- Create a manufactured Product A (sold as kit), invoicing based on
  delivered quantity.
- Create the associated BOM, e.g. contains 2 Products B.
- Create a SO with Product A, validate
- Change the BOM so it contains 2 Products C
- Validate the picking linked to the SO

The delivered quantity is not updated since the delivered products (B)
are not the same than the products of the BOM.

This should not be the case. Changing a BOM should not affect the
invoicing. To solve this, we simplify the check and only verifies that
all moves are done.

The same change is applied for PO.
2017-02-02 15:47:21 +01:00
Florent de Labarre 2ee2e065b6 [IMP] purchase: store slow computed field
Cross 2 one2many fields
Closes #15259
2017-02-02 15:29:43 +01:00
Martin Trigaux ac621e322c [FIX] purchase: correct triggers on computed fields
To be triggered on the fields that are used inside the computed field.
Was not very problematic before as the fields were not stored and recomputed
at each modification. It could be backported if needed.

Next commit will store these fields for performance reason, fixing the trigger
first is required.

Linked to #15259
2017-02-02 15:15:19 +01:00
Martin Trigaux d436061ee6 [FIX] db: list db without a base module
If a database had no base module or no latest_version, mark it as incompatible.
This should not happen in standard but as we are considering local databases
that may be non-odoo, we should be more fault tolerant.
2017-02-02 14:23:16 +01:00
Odoo en Ecuador 1cbf3fccd1 [CLA] corporate signature for Odoo-Group-Ecuador
Done at #15305
2017-02-01 16:11:03 +01:00
Martin Trigaux 610036756a [FIX] db: release connection after listing
When listing compatible and incompatible db (introduced at 96f703f), a
connection is created on each db to check the version of the base module.

After checking the version, release the connection from the ConnectionPool to
allow some operations like dropdb or rename.
2017-02-01 13:13:23 +01:00
fwi-odoo e16505f8da [FIX] web_calendar: don't use private attributes
A private attribute of the library was used instead of doing it
with the public methods. Due to the lib update, it was broken.
2017-02-01 11:13:11 +01:00
George Daramouskas 96f703ff84 [ADD] web: warning on incompatible databases
If a database is not an Odoo database or is not the same version
Closes #15171
2017-01-31 18:17:55 +01:00
Carlos Alberto Cipriano Korovsky 7cb99ada2d [ADD] base: South America group
Closes #15284
2017-01-31 16:56:55 +01:00
Carlos Alberto Cipriano Korovsky d383436494 [IMP] base: translate country group name
Closes #15284
2017-01-31 16:56:24 +01:00
Pratima Gupta 8a5360bef7 [IMP] hr_payroll: change the config settings view according to new design 2017-01-31 14:09:58 +01:00
qsm-odoo 495b5ef117 [IMP] web: add options to field selector to filter the fields
Before this commit, the field selector had an unique option to filter
the fields it displays: filters.searchable, which tells the widget to
only display the searchable fields (which is the default). Now there
are two more options:

- fields: an explicit list of the fields to use (if null, let the
    widget get the fields itself (this is the default))
- followRelations: a boolean which is true if the user can follow
    relation to build a field chain (default to true)

These options are needed by Web Studio in enterprise where domain
construction for form view attrs can only use fields which are in the
view and do not follow relations.
2017-01-31 11:38:52 +01:00
qsm-odoo 3c452a2ecd [FIX] web: document domain selector options correctly
The "ModelFieldSelector" widget has a "filters" option which can
customize the fields which are displayed.

The "DomainSelector" widget has of course the same option it can
transmit to its internal "ModelFieldSelector" instance... but it
was documented as "fs_filters" instead of "filters".

Also, let the "ModelFieldSelector" document its own options and
sets their defaults (instead of the "DomainSelector" widget).
2017-01-31 11:38:46 +01:00
Aaron Bohy 129be7ff78 [FIX] im_livechat: 'web.session' added twice in external bundle
The JS module 'web.session' is already defined directly in the template.
When two modules have the same name, the second one that is read is
ignored, and a error is displayed in the console (in debug mode).
2017-01-31 10:18:27 +01:00
Sagar Ahirrao bb03449bc8 [IMP] im_livechat: visitor history command
this commit introduces the '/history' command
for an operator during a livechat session.

When the visitor load a page, its url is added in
a cookie (kept only 1 day) in order to track his
visited web pages.
The '/history' command will ask the cookie content
and send it to the operator as a transient message
in the livechat channel.
2017-01-30 13:45:03 +01:00
fwi-odoo be697f7425 [FIX] website_form: lazy load datetimepicker + update
Replace deprecated options for the updated version of the
bootstrap-datetimepicker lib.
Lazy load the library in the front-end as well in order to avoid loading
it in all the front-end views.
2017-01-30 10:29:37 +01:00
fwi-odoo 89093a1695 [IMP] web: various imp for the datetimepicker widget
* toggle datetimepicker when field is clicked
* close datetimepicker when a date is chosen
* disable keyboard navigation in the widget to allow modification of input
2017-01-30 10:29:32 +01:00
fwi-odoo ad6fd5f838 [REF] web: update bootstrap-datetimepicker lib and adapt datepicker widget
from 3.0.3 to 4.17.42
2017-01-30 10:29:27 +01:00
fwi-odoo c5af1d215f [REF] web: update momentjs lib
From 2.8.1 to 2.9.0
2017-01-30 10:29:21 +01:00
Denis Vermylen ff40e3661c [FIX] google_calendar, hr_attendance: fix base_config_settings action name
When going to the General Settings and clicking a link generating
breadcrumbs, the breadcrumbs would not always read "General Settings".

Not sure why, but Odoo seems to takes the breadcrumb name from the last
ir.actions.act_window with the res_model being "base.config.settings".

In google_calendar: such an action was named API Configuration.
In hr_attendance: the settings wrongly inherits from base.config.settings
                  without renaming the model.
                  -> Model is renamed to attendance.config.settings like
                     in other modules (e.g.: sale) to avoid collision.
2017-01-27 18:26:37 +01:00
Martin Trigaux 51d5592a9d [FIX] product_email_template: bad html 2017-01-27 10:35:17 +01:00
Denis Vermylen 1c2e3d3838 [FIX] hr_attendance, hr_*: move group_hr_attendance to hr_attendance
move group_hr_attendance from hr -> hr_attendance where it belongs.
2017-01-26 19:19:19 +01:00
Christophe Simonis dbbd7f1178 [MERGE] forward port branch saas-14 up to 7b2924253b 2017-01-25 16:36:28 +01:00
Christophe Simonis 7b2924253b [MERGE] forward port branch 10.0 up to 7427825790 2017-01-25 16:27:38 +01:00
Nicolas Lempereur 7427825790 [FIX] mail: don't linkify removed mention
If after inserting a mention (eg: `@Guy`) and we eg. backspace and
change it (eg: to `@GuyFawkes`) the `@Guy` mention will still be
linkified but the partner is not subscribed.

This happened because the linkifying was not requiring a space to follow
the mention, but when getting the used mentions (and commands, ...) in
the message they were required (unless the mention was exactly at the
end of the message).

With this commit, a space is always required after a mention for it to
be working.

opw-705267
2017-01-25 15:47:30 +01:00
Christophe Simonis 6a7db30508 [MERGE] forward port branch saas-11 up to f23394b83a 2017-01-25 15:01:29 +01:00
Yannick Tivisse 62b1af0b08 [FIX] account: Bring back the 'Lock date' options
It was accidently removed with the new settings
2017-01-25 14:01:23 +01:00
Pierre Masereel f23394b83a [FIX] stock: stock_inventory_line onchange product
If you make an inventory adjustement in mode 'select products manually'
and you add a new line with a product having a different unit of mesure
than the default one, but in the same unit of mesure category than the
default one, the unit of mesure on the line doesn't change because both
are in the same category.

This bug is caused by an 'onchange' which is triggered when the
'product_id' or 'product_uom_id' has been changed. And so we cannot
force to change the value to the product one, because we should still be
able to make an inventory in 'kg', if the unit of mesure is in 'g'.

So to fix this bug, we have set the 'onchange' only on the product_id to
set the unit of mesure set on the product when we create a new line or
change the product of a line. We removed the onchange ont the unit of
mesure, because it was only checking that the unit of mesure is in the
category of the product unit of mesure category, but it's always true
has there is a domain set on the field unit on mesure by the onchange
on product_id
2017-01-25 13:45:29 +01:00
Christophe Simonis 74c6e895f6 [MERGE] forward port branch 9.0 up to 3e31dc0ba4 2017-01-25 13:14:38 +01:00
Christophe Simonis 3e31dc0ba4 [MERGE] forward port branch saas-6 up to 09f7916f48 2017-01-25 13:04:50 +01:00
Christophe Simonis 09f7916f48 [MERGE] forward port branch 8.0 up to 9d535ee2c7 2017-01-25 12:56:42 +01:00
Josse Colpaert 1bf2173240 [IMP] mrp: ensure_one in cal_price
We want to ensure not to mix the price calculation
of multiple MOs when posting inventory.
2017-01-25 12:11:55 +01:00
Luis Torres e54fd92282 [IMP] l10n_mx: Removed note description in data to fiscal position
This value is not required in Fiscal Regime, and if is present, this is
printed in the invoice report when is used like fiscal position on
invoice.
2017-01-25 09:59:06 +01:00
Nicolas Martinelli 6cfd85bae2 [FIX] sale_timesheet: lost breadcrumb
On a SO, click on the stat button "Project". It opens the form view of
the corresponding project, but the breadcrumb is lost.

opw-705193
2017-01-25 08:28:02 +01:00
Aristides Caldeira b7294754cc [CLA] signature for aricaldeira
Done at #15210
2017-01-25 08:25:29 +01:00
Dileepa Ameresekere 296f9cbe3a [FIX] doc: correct typo fix
Closes #15037
2017-01-24 18:20:12 +01:00
Cédric Pigeon (ACSONE) b307514eca [IMP] account: allow override
Extract the move creation into a different method to allow override.
In case the date or journal needs to be modified.

Closes #15179
2017-01-24 18:15:46 +01:00
andreparames 1d089833b4 [FIX] init: enable evented based on socket
Don't enable evented mode unless gevent is enabled.
Previous code was activating evented mode as soon as gevent is imported which
may happen in different scenario but is not enough to assume the GeventServer
is actually running.

Closes #13463
2017-01-24 18:07:38 +01:00