Commit Graph
106440 Commits
Author SHA1 Message Date
Rashik Kalathiya 803a7e75d4 [MOV] report_webkit: reorganized file structure as per new API guidelines 2016-08-02 11:49:17 +02:00
Josse Colpaert 415773505c [FIX] mrp: added recursion constraint on BoM and improved error message on bom explosion 2016-08-02 11:28:51 +02:00
cod-odoo 21215dda37 [IMP] mrp: calendar on workcenter should be editable (there is no other menu to edit it otherwise) 2016-08-02 11:28:51 +02:00
Jeremy Kersten 944db71f21 [FIX] website_event: fix get_formated_date to avoid traceback
Avoid AttributeError: 'WebsiteEventController (extended by WebsiteEventSa' object has no attribute 'env'
Self is the controller and not the event.
2016-08-02 11:18:05 +02:00
fwi-odoo 4f9c1c25f4 [MOV][IMP] analytic: reorganize addon, remove openerp tags and rename python classes 2016-08-02 09:54:37 +02:00
Goffin Simon 353dfa22cb [FIX] sale: currency of amount in _get_invoice_price
The currency of amount is the currency of the company as defined in
account.analytic.line in module analytic and in module account.

opw:682378
2016-08-02 09:50:02 +02:00
Goffin Simon 9bb16c5ce1 [FIX] sale: refunds with _get_invoiced
Steps to reproduce:

-Create a first journal with a sequence
-Create a second journal with the same sequence
-Create a first SO, create the invoice for the fist journal and validate it
-Create a second SO, create the invoice for the second journal and validate it (the second invoice has the exact same name as the first one)
-Refund the second invoice (linked to the second SO)
-Go to the first SO => In the invoice button, you see 2 linked invoices (there is normally only one)

When searching the refunds corresponding to the invoices in function
_get_invoiced, the refund must take the journal of the invoice into account.

opw:684144
2016-08-02 09:36:35 +02:00
Goffin Simon ce419242d0 [FIX] mrp: useless size for field code on mrp.bom
The size of 16 characters for the field size on mrp.bom
is useless.

opw:684441
2016-08-02 09:16:25 +02:00
Fabien Pinckaers cf4a72ff39 [IMP] sale: typo in reports Untaxed Total Price --> Untaxed Total (it's not a price) 2016-08-01 18:14:17 -07:00
Christophe e106691ecb [CLA] Corporate signature for adiczion
Done at #11662
2016-08-01 17:49:41 +02:00
Christophe 980ff5ef10 [FIX] account: correct typo in css
Closes #11662
2016-08-01 17:49:41 +02:00
stefanorigano d977575815 [IMP] mail: restyle the chatter top bar 2016-08-01 17:45:20 +02:00
Josse Colpaert a7fb3e0fac [FIX] stock: inventory adjustment import should go to the next step too
This commit closes #12970
2016-08-01 17:36:24 +02:00
Yannick Tivisse c9e8b30e68 [MERGE] marketing_campaign, marketing_campaign_crm_demo: Migrate to new API 2016-08-01 17:35:14 +02:00
Yannick Tivisse d4f4fbbfd5 [MOV] marketing_campaign_crm_demo: Rename files according to new api guidelines 2016-08-01 17:34:36 +02:00
Srushti Patel 9994b74d6a [FIX] web_diagram: Fixed broken diagram view. 2016-08-01 17:34:36 +02:00
Yannick Tivisse 0fa2ac1d5d [MIG] marketing_campaign: Migrate to new API 2016-08-01 17:34:36 +02:00
shp-odoo 531b9dfaa5 [REM] marketing_campaign: Remove dead code 2016-08-01 17:34:36 +02:00
shp-odoo fb3605b1ef [SPLIT] marketing_campaign: Split marketing_campaigns according related model 2016-08-01 17:34:36 +02:00
shp-odoo 02a91ed077 [MOV] marketing_campaign: Renamed/Moved files according to new api guidelines 2016-08-01 17:34:36 +02:00
Raphael Collet a1012050cd [FIX] point_of_sale: wrong field dependencies on pos.session.cash_control 2016-08-01 16:39:50 +02:00
Raphael Collet 002fe629f0 [FIX] maintenance: wrong field dependency on maintenance.team.todo_request_ids 2016-08-01 16:39:50 +02:00
Raphael Collet 46252578fc [FIX] base: wrong field dependency on ir.actions.client.params 2016-08-01 16:39:50 +02:00
Raphael Collet ab33c7714c [REF] fields: reimplement field.setup_triggers
The purpose of this reimplementation is to separate the resolution of
dependencies from the creation of the invalidation/recomputation triggers.
2016-08-01 16:39:49 +02:00
Ondřej Kuzník fafeb9fb83 [FIX] stock: avoid traceback when owner on picking and transfer more.
If you create a picking, with an owner, for qty x, and confirm it.
Next transfer x+1, it will raise a traceback 'cannot adapt res.partner'

Now, we pass the id, and not the browse record.

This commit closes #12978
2016-08-02 00:47:05 +11:00
Thibault Delavallée 9c54cada45 [MERGE] product: migrate to new API and slightly clean code 2016-08-01 15:07:42 +02:00
Thibault Delavallée 0d60e0c87b [IMP] product: clean and simplify code after new API migration
* product.category: remove complete_name field as display_name can be used
  where the field was used
* product.supplierinfo: remove computed qty field. This field originally
  contained the min_qty computed into the product_uom. However commit
  3c186c5807 broke that field without reason.
  Since 2011 no one complained about this field being unnecessary, so let us
  remove it.
* product.template: shorter and less spaghetti version of create_variant
  method
* product_product._sellect_seller: fix use of default parameter in method
  kwargs + use odoo standard datetime default value
2016-08-01 15:05:34 +02:00
mdi-odoo f771ed2ca2 [REF] product: migrate yml test cases to unit test cases. 2016-08-01 15:05:33 +02:00
Thibault Delavallée 1b4f96cf40 [MIG][IMP] product: migrate and clean product pricelist report 2016-08-01 15:05:33 +02:00
Thibault Delavallée 1aa5bc0fdf [MIG] product: migrate addon to new API 2016-08-01 15:05:33 +02:00
Thibault Delavallée b747b05fa6 [REF] product, template: remove unused is_product_variant computed field, probably from old implementation 2016-08-01 15:05:33 +02:00
Thibault Delavallée 77c9e76e82 [REF] product_pricelist, *: clean the price and rule computation methods
A new API is introduced for price computing using pricelists. It is simplier
to use in most use cases, which is computing the product price in a given
pricelist. Old methods return dictionnaries and tuples, which are rarely
used in the code.
2016-08-01 15:05:32 +02:00
Thibault Delavallée 0f0ca1c133 [REF] product_uom, *: clean quantity computation methods
product_uom._compute_quantity is an ensure one multi method taking a browse
record as second paramter. It replaces _compute_qty and _compute_qty_obj
to have a single and standard computation method.
2016-08-01 15:05:32 +02:00
Thibault Delavallée f3d6a54e36 [REF] product_uom, *: clean price computation method
product_uom._compute_price() is now an ensure_one multi methods, taking
a browse record as second unit. This helps simplifying and unifying the
various calls and price computation methods.
2016-08-01 15:05:32 +02:00
Thibault Delavallée 429cd5970e [REF] product, *: clean price computation methods
Old price_get method is now replaced by price_compute and ready for migration.
Explicit parameters for unit of measure and currency have been added to ease
code understanding.
2016-08-01 15:05:32 +02:00
JoshuaJan ecf9613ee5 [FIX] calendar: fix get_range_domain to match all events.
In case of event not all day, the timezone has an impact.
So if we search for date >= 2016-01-31 (00:00:00) and that the current timezone
 is +5, we should search for date >= 2016-01-30 19:00:00.

date_to_str will drop the time.

This commit closes #12878
This commit closes #12971
2016-08-01 23:49:09 +11:00
Jeremy Kersten 04d496a326 [FIX] website_forum: t-else qweb don't exist in saas-11
Wrong cherrypick from saas-12.
T-else option has been added in saas-12 only.
2016-08-01 13:57:12 +02:00
Nicolas Martinelli 2ee4afda2f [FIX] base: currency exchange rate date
When creating a new exchange rate, the default date is always the date
of the last server restart.

This is because `fields.Date.today() + ' 00:00:00'` is a fixed string
and the field is instanciated only at startup.

opw-684622
2016-08-01 13:29:16 +02:00
Nicolas Martinelli 35cd054cc8 [FIX] point_of_sale: total revenue in report
In some cases, the "Sales total(Revenue)" of the report is different
from the sum of the payments. To reproduce:
- create a product with a sale price of 1.00
- sell 3 times a quantity of 0.333 of this product
- the "Sales total(Revenue)" will be equal to 1.00, while the total of
  payments is 0.99.

This is because in the report, we first sum all order lines, then we
perform a global rounding.

The solution is to use the total amount calculated for each order, which
is rounded at the appropriate time.

opw-682782
2016-08-01 13:15:30 +02:00
Jeremy Kersten b94a53c61a [FIX] website_forum: when first post is spam, remove more karma.
Now, if the first post of a user is marked as spam, we remove 10x the karma.
(by default 10 * -100= -1000)

That will avoid to the moderators too many click to 'kill' a spammer.

This commit is related to #12803
2016-08-01 12:54:58 +02:00
Jeremy Kersten d1a160aa93 [FIX] website_forum: don't allow a user to submit 2 pending post simutaneously.
Before this commit, a user was able to post withtout limit new post.
They was added to the modarator queue.

Now we only support 1 post by user.

This commit is related to #12803
2016-08-01 12:54:58 +02:00
Thibault Delavallée 62d300d889 [REF] product: clean addon and prepare new API migration
This commit contains mainly the removal of dead code and update of methods
to match multi API.
2016-08-01 12:17:41 +02:00
Thibault Delavallée f8fc7edeb7 [ADD][TESTS] product: add some product variant tests 2016-08-01 12:17:23 +02:00
Thibault Delavallée 03b7ef16c8 [SPLIT] product: split product python and views into submodels
product.py and product_views.xml contained code related to several models.
This commit split those files to separate submodels :

 * decimal_precision
 * product_attribute: product.attribute, product.attribute.value,
   product.attribute.line
 * product_template: product.template
 * product_uom: product.uom and product.uom.categ
 * res_currency

Product now contains product.product model, along with some smaller
models (product.packaging, product.supplierinfo, product.category,
product.price.history)
2016-08-01 12:13:11 +02:00
mdi-odoo 75867d7bf6 [MOV] product: reorganize addon directory 2016-08-01 12:13:08 +02:00
Mohammed Shekha dcd03d778e [FIX] website: repair customize menu for groups restricted views
The id of the user to browse has been omitted
during the below forward port revision:
95a2f8b121

We can see in the original revision that it was
correctly there:
cbb51610ee

This had as wrong side-effect to not display
views with a group set in the customize menu,
as it checked the groups of a null user browse
recordset.

opw-684326
Closes #12895
2016-08-01 11:23:52 +02:00
Christophe Simonis b0313796d4 [MERGE] forward port branch saas-12 up to ac8b882 2016-08-01 11:19:01 +02:00
Christophe Simonis ac8b882d8f [FIX] website_sale: use new t-options python-formated attribute 2016-08-01 11:16:40 +02:00
Denis Ledoux 79ff7a5233 [FIX] project: remove module_sale_service from project config
The module `sale_service` has been merged in the module
`sale_timesheet` in the revision
234f88a6af

We only remove the field from the view due
to the fact saas-11 is a stable. The field
has already been removed from the model
in newest releases (`saas-12`)

opw-682816
2016-08-01 10:54:46 +02:00
Yannick Tivisse 3e252cf40d [REM] im_odoo_support: Remove the module 2016-08-01 10:13:39 +02:00