Commit Graph
100982 Commits
Author SHA1 Message Date
Yannick Tivisse 46e925aa9f [FIX] web: Load SystrayMenu even if a systray's deferred is rejected 2016-02-08 11:08:34 +01:00
Yannick Tivisse 09659cca30 [ADD] web: Company swicher button on systray
If the user has multicompany rights and more than one allowed
companies, the full company name is displayed in the  topbar. When you
click on it, there is a dropdown with the name of the other companies.

Clicking on another company name makes you switch on it and reload the page
2016-02-08 09:08:11 +01:00
Mansi Trivedi 9931234e83 [FIX] product: wrong target on computed method
As in an api.multi call, should target template, not self.
Fixes traceback prone computed field
2016-02-05 13:47:49 +01:00
Goffin Simon a5b3c6e748 [FIX] account_asset: label of account_asset_id field
The rigth label for this field account_asset_id is in fact
"Expense Account".

opw:667575
2016-02-05 11:35:26 +01:00
Raphael Collet 35bcd2c2a4 [MERGE] branch 'master-models_inheritance-rco'
Modify the implementation of inheritance (with `_inherit`) between models, in
such a way that extensions to a given model are visible to all its children
models.

Inheriting model A to extend it adds the current class to A's model class.
This works like before, except we do not recreate the model class.

Inheriting from A in B adds A's model class as a parent of B's model class, so
that all modifications in A's model class are visible in B's model class.

Moreover, the `BaseModel` class has been introduced as an abstract model
`base`, and is implicitly inherited by all other models.  That model may be
extended to add a feature on all models, or override a method on all models.
2016-02-04 17:29:15 +01:00
Raphael Collet d273415beb [FIX] models: track correctly which module introduced a given constraint
If a module adds a constraint on a given model, deinstalling that module must
remove the constraint from all the models that inherited it.
2016-02-04 15:52:06 +01:00
Raphael Collet 408330a655 [FIX] fields: track correctly which module introduced a given field
If a module adds a field on a given model, deinstalling that module must remove
the field from all the models that inherited the given field.
2016-02-04 15:52:06 +01:00
Raphael Collet dd0a3ea92f [FIX] base: in upgrade wizard, commit transaction before reloading registry
Not committing the current transaction may block the deinstallation of a
module.  Specifically, if a module adds a field on model `ir.module.module`,
its deinstallation will block when trying to remove the column, because the
wizard's pending transaction made a query on the table `ir_module_module`.
2016-02-04 15:52:06 +01:00
Raphael Collet 34cba4e0e5 [FIX] fields: reset attributes for columns that override fields
In particular, reset `compute`, `inverse`, `search` and `related`.  This is
necessary because all models implicitly inherits from model 'base', and the
latter defines `display_name` as a computed field.
2016-02-04 15:52:06 +01:00
Raphael Collet 53572ba4c6 [IMP] models: add the base model as an abstract model in the registry
The model `base` is implicitly inherited by all models, and can be extended as
any other model.
2016-02-04 15:52:06 +01:00
Raphael Collet 0040632696 [FIX] models: after extending a model, recompute its children models attributes
This is necessary when adding `_inherits`, `_depends` or constraints to a model.
2016-02-04 15:52:06 +01:00
Raphael Collet 58292bf311 [FIX] fields: in _setup_default, do not lookup _default in model classes 2016-02-04 15:52:06 +01:00
Raphael Collet 8a7552e5b7 [FIX] models: exclude magic, custom and inherited fields from a model's proper fields
Those cases can now appear, since a model inheriting (with `_inherit`) from
another model can observe those extra fields from its parent model's class.
2016-02-04 15:52:05 +01:00
Raphael Collet b56cdc9e17 [FIX] models: make Model and TransientModel subclasses of AbstractModel
With this subclassing, the MRO of the model class will always traverse `Model`
before `AbstractModel`.  This guarantees that inheriting from an abstract model
does not make the current model abstract.
2016-02-04 15:52:05 +01:00
Raphael Collet 3eb4e919f4 [FIX] models: during setup, reset properties memoized on model classes
This is necessary, because a model's class is kept when applying model
extensions.
2016-02-04 15:52:05 +01:00
Raphael Collet 8eeed3dbaf [FIX] pad, website: models pad.common and website.seo.metadata should be abstract 2016-02-04 15:52:05 +01:00
Raphael Collet bcfff7cea5 [FIX] web_editor: simplify inheritance specs 2016-02-04 15:52:05 +01:00
Raphael Collet fe2d819474 [IMP] models: add _inherit_children on models to handle base model extensions
When extending an inherited model, the registry now automatically updates the
schema of children models.
2016-02-04 15:52:05 +01:00
Raphael Collet d76979c03f [IMP] models: make model extensions visible to children models
When a model B inherits from model A, any extension of model A should be
visible in model B.  We achieve this by:
 - making B inherit from the class of A in the registry;
 - making model extensions modify the model's base classes.
2016-02-04 15:52:05 +01:00
Yenthe e72afefaa7 [IMP] web_calendar: Remove one2one reference
This one2one reference is no longer needed since one2one fields have been
deprecated for ages

Closes #10746
2016-02-04 14:57:52 +01:00
Yannick Tivisse b2cd56efa0 [FIX] stock: A stock user shouldn't be automatically in multi locations 2016-02-04 11:19:09 +01:00
Yannick Tivisse d5704262bd [IMP] Stock: Several improvement on locations and warehouses settings
- Separate group_stock_multiple_locations into 2 groups:
  o group_stock_multi_locations
  o group_stock_multi_warehouses
- Add a selection fields to manage the 3 levels of warehouses management complexity:
  o Manage 1 WH with 1 location
  o Manage 1 WH with multi locations
  o Manage multi WHs with multi locations
- Display the menuitems and fields accordingly
- On a company creation : Create a related Warehouse
- stock.location : Add a helper on the parent location
- stock.warehouse : Add a helper on the company_id field
2016-02-04 11:19:09 +01:00
Yannick Tivisse ae9b29510a [MOV] stock: create res_company.py file from the overridden part in res_config 2016-02-04 11:19:09 +01:00
Yannick Tivisse 215cad9cae [IMP] account: Protip for the ctrl+enter access key
A similar protip has been added in the enterprise 'account_reports' module.
We took this opportunity to rename the class protip into o_protip and to apply
this kind of style with standard attributes and classes + to correct typos
2016-02-03 18:27:38 +01:00
Yannick Tivisse 0b583cbbd1 [IMP] website_forum: Display a summary card on shared forum posts on twitter
See: https://dev.twitter.com/cards/types/summary
2016-02-03 11:32:01 +01:00
Yannick Tivisse 9d4781697b [IMP] mrp,purchase,stock: Default lead times set to 0
Lead times are too advanced for most of our online users. Most of the companies just
buy and sell and don't manage scheduling. As an example, when they do MTO, they
purchase the same day they sold.

The problem with current lead time is that users don't understand the dates produced
on delivery orders and receptions. They even have receptions in the past, and they
don't understand why. (customer lead time default to 7 and vendor lead time to 1,
as well as security days, ...)
2016-02-03 10:02:46 +01:00
Yannick Tivisse 23261f330b [IMP] crm: Restructure and Rephrase crm planner following fgi advises
- Restructure the menus this way:
 Sales Flow
 Pipeline
 Proposal
 Deployment
    Incoming emails
    Customers
 Products
 Prices
 Reporting
 Customizations

- Add a short intro about leads in Incoming emails (why using leads?
first contact, contact forms) -> in incoming email menu

"There are several ways for your company to generate leads with Odoo CRM.
One of them is using your company's generic email address as a trigger
to create a new lead in the system. In Odoo, each one of your sales teams
is linked to its own email address from which prospects can reach them.
For example, if the personal email address of your Direct team is
direct@mycompany.example.com, every email sent when a new prospect
contacts you will automatically create a new opportunity into the sales team.

That's the easiest way to integrate Odoo with third party apps.
2016-02-03 09:36:19 +01:00
Jainik Patel e120fd7e27 [IMP] website_slide: update demo data
Newly Added Videos: 1) Odoo Website & E-commerce Demonstration.
                    2) Odoo All-in-One Software Demonstration.
                    3) Odoo Sign Demonstration.
2016-02-02 15:29:59 +01:00
Christophe Simonis 04416a5a6f [MERGE] forward port of branch saas-9 up to 469e04e 2016-02-02 14:55:52 +01:00
Christophe Simonis 469e04e97c [MERGE] forward port of branch saas-8 up to 2611a81 2016-02-02 14:52:15 +01:00
Christophe Simonis 2611a8198e [MERGE] forward port of branch saas-7 up to e765569 2016-02-02 14:48:31 +01:00
Christophe Simonis e765569d04 [MERGE] forward port of branch 9.0 up to f0a63e5 2016-02-02 14:44:39 +01:00
Christophe Simonis f0a63e5913 [FIX] delivery: avoid calling unknown method.
Only call `product_id_change_margin` method if exists. This method is
defined in `sale_margin` module, but as there is no dependency between
modules (nor a bridge module), the call have to be done here.
2016-02-02 14:31:30 +01:00
Damien Bouvy a7c664fb6c [FIX] website_quote: handling of uoms in _onchange_product_id
The condition self.uom_id != self.product_id.uom_id could actually
never be met, since a few lines before you could read
self.uom_id = product.product_tmpl_id.uom_id. From now on, simply
check if the uom_id on the cached record is different from the one
on the product and check the price using the pricelist (_compute_price
does not take pricelists into account) with the wonderfully explicit
with_context call.
2016-02-02 14:23:09 +01:00
Richard Mathot 7e3d6e92b6 [IMP] delivery: hide real shipping cost on DO 2016-02-02 14:18:00 +01:00
Richard Mathot 36fbbc46e1 [ADD] delivery: environment field
This field is used in all delivery carriers to determine if they call
the test or the production API.
2016-02-02 14:01:35 +01:00
Christophe Simonis fbd5fab238 [MERGE] forward port of branch saas-6 up to 9ca7ad8 2016-02-02 13:18:33 +01:00
Goffin Simon c736058e90 [FIX] account: bad translation
"Less" must be translated by "Minus" to have the good meaning in
english.

opw:667767
2016-02-02 12:44:15 +01:00
Jeremy Kersten 1f6412a0a4 [FIX] website: sitemap render content at first call
Bug from 0c37a8d
At regeneration of sitemap, content was not set
2016-02-02 12:33:54 +01:00
Jeremy Kersten dd17b3e34f [IMP] website_forum: allow to pass False as value for can_view
Code introducted by commit f39e535 was ignoring the value.
Now, we change the logic to always have True as value regardless the operator.

!= False  become  = True  ...
2016-02-02 12:27:09 +01:00
Christophe Simonis 9ca7ad87b2 [MERGE] forward port of branch 8.0 up to 3ac46ee 2016-02-02 12:25:06 +01:00
Goffin Simon 055367a863 [FIX] account: bad translation
"Less" must be translated by "Minus" to have the good meaning in
english.

opw:667767
2016-02-02 11:46:54 +01:00
Martin Trigaux 986da5416c [FIX] base: prevent error on missing config parameter 2016-02-02 11:27:47 +01:00
Nicolas Martinelli 3ac46ee3d4 [FIX] stock: propagate UoS quantity
Both UoM and UoS quantity change should be propagated.

Fixes #10623
opw-667805
2016-02-02 11:25:57 +01:00
Yannick Tivisse 82facdc160 Revert "[FIX] base: location_name_search search may return twice the limit value"
This reverts commit a7bac68f45.
2016-02-02 10:20:23 +01:00
Yannick Tivisse 9a85d870fd [IMP] mail: Do not create channels or partners from an invitation on a chatter
Use case: I can create a Channel on a chatter, for example on a task
If I choose create and edit, there's another window coming where I
can set up the Channel. In this situation I can't add any members.
But then as the channel is empty and I (as the creator) am not by default
in that channel, I can't find it in my Channels in Discuss...
2016-02-02 09:56:52 +01:00
Yannick Tivisse a7bac68f45 [FIX] base: location_name_search search may return twice the limit value 2016-02-02 09:50:11 +01:00
Goffin Simon 5b77e30429 [FIX] sale_stock: product_id_change_with_wh
When changing the quantity of a SO line, the product_id_change_with_wh
must be triggered to check the availability of this product.

opw:668236
2016-02-02 09:47:34 +01:00
Thomas Groutars ae7ccb6785 [IMP] product: add monetary widget on list_price
Make consistent display of Sale price and Cost price by showing currency
on both.

opw-668159
Closes #10672
2016-02-02 09:45:22 +01:00
Aaron Bohy 017c4b0a4d [FIX] mail: keep expanded messages expanded after refresh
Commit c04103f re-renders the thread every minute to update messages' date.
As a consequence, the expanded messages are lost (they are shortened again).
This rev. makes sure to keep those messages expanded.
2016-02-02 08:49:54 +01:00