Commit Graph
103231 Commits
Author SHA1 Message Date
Géry Debongnie 9c68bc7482 [REF] point_of_sale,web(site): move session info into page source
This commit introduces a mechanism to add information into the session
from a different module, without having to fetch it manually with a rpc.
This is intended to be used with small pieces of info required at the
start of the web client, such as currency informations.

To add information to the session, one can simply inherit from ir.http
and modify the session_info method.
2016-05-30 09:23:07 +02:00
Géry Debongnie 2a8a17024d [IMP] web: start session service as soon as possible 2016-05-30 09:22:38 +02:00
Olivier Dony cd3f52ba10 [FIX] account,*: preserve deactivated taxes
By default, when reading a m2m field, entries that are
deactivated in the destination table are not included.
This behavior is desirable in some cases (e.g. for
"tags" or "categories", but not for entries that
significantly impact other field values in the parent
record, such as taxes.

The problem is rather obvious: when displaying a
paid invoice that used taxes that are now deactivated,
the taxes are hidden while they still affect the
computed amount. And after cancelling + resetting
to draft, the tax is not taken into account anymore,
while still being linked.

Forcing the field-level (python) domain to include
both active and inactive entries solves the problem:
 - when reading, displaying and recomputing values,
   deactivated taxes will be included.
 - when trying to pick a tax, deactivated entries
   will still be ignored, as expected.

This commit applies the technique to all m2m
fields that refer to taxes.

Fixes #12066
opw-677751
2016-05-30 09:07:31 +02:00
David Arnold 270b2d0a78 [CLA] corporate signature for DevCo Colombia
Closes #11755
2016-05-30 08:40:40 +02:00
Ronald Portier (Therp BV) c038535446 [CLA] Update Therp BV's signature
To have consistent email in author and signer key.
Also update list of contributors as Stefan is no longer working for Therp BV.

Closes #12202
2016-05-30 08:40:02 +02:00
Odoo Translation Bot cb70a8ff98 [I18N] Update translation terms from Transifex 2016-05-29 02:58:42 +02:00
Odoo Translation Bot be91fa4c63 [I18N] Update translation terms from Transifex 2016-05-29 00:29:48 +02:00
Vipul Bhatt 3cc6468d55 [IMP] point_of_sale: remove the User's Product report
This particular report was broken for a long time. Instead of fixing it
it was removed because the use case for it is unclear and noone seems to
actually be using it anyway.
2016-05-28 15:22:20 +02:00
Vipul Bhatt f619e5682c [FIX] point_of_sale: remove pos_receipt python code
Oversight of 0650047fd5.
2016-05-28 15:22:20 +02:00
Vipul Bhatt bc0c3579be [IMP] point_of_sale: remove custom account_statement report model
There's no point to it, as we can easily do what we need directly in the
report.
2016-05-28 15:22:20 +02:00
Antoine Huvelle b08642c21c [FIX] pos_restaurant: remove floor_id from restaurant.table form view
There is no way to directly create restaurant.table records in the
backend. The only way is through adding it directly to the table_ids
one2many on restaurant.floor and when doing that floor_id is
automatically set.

Closes #8705
2016-05-28 13:23:32 +02:00
Joren Van Onder 5d9f034b44 [IMP] pos_restaurant: remove pos_order_ids from restaurant.table
Wasn't used anywhere, nor are there any plans for it being used in the
near future.
2016-05-28 12:59:25 +02:00
Joren Van Onder 46d1c229ba [IMP] pos_restaurant: remove background_image from restaurant.floor
Continuation of 267097255e.
2016-05-28 12:55:30 +02:00
Damien Bouvy a3a4660b70 [IMP] sale_timesheet: ondelete has no effect on company-dependent fields 2016-05-27 17:34:12 +02:00
Jeremy Kersten 0413a4ab08 [FIX] sale: avoid division by zero in _get_price_reduce
close #11999
2016-05-27 17:06:32 +02:00
Damien Bouvy 678ea1ebea [IMP] sale_timesheet: project on product template is company_dependent
When using sale_timesheet to create tasks in specific project for certain
products, you should be able to set this setting by company.

Indeed, standard ir_rules prevent you from seeing projects from other
companies; therefore it makes little sense to have this field set to
the same value for all companies.
2016-05-27 17:04:19 +02:00
Parth Mehta b7424d008d [ADD] Product: Product template stat button on product categories
Remove 'sequence' field, and always display alphabetically
2016-05-27 16:53:09 +02:00
qdp-odoo 5f9ca1b89b [FIX] account: manual reconciliation through the wizard on journal items were giving weird results. OPW 678153.
Symptoms: running a full reconciliation manually with that wizard was resulting in not fully reconciled aml altough the total in company currency and in secondary currency were perfectly matched. Full use case described in added test test_manual_reconcile_wizard_opw678153.
Problems:
 - The system was processing by pair of aml and creating exchange rate entry/full reconciliation as soon as possible whereas in that case it needs to be postponed at the end of the manual reconciliation otherwise some entries would be excluded from processing.
 - Another problem was that because of this batch processing, we ended with unconsistent amount_residual_currency values for some entries that were fully reconciled in company currency but not in foreign currency (also negative amount_residual_currency for a debit line which should never happens)... To solve that, we now process the manual full reconciliation in two steps: only in company currency first, then in secondary currency if needed. A small adaptation in the payment widget of invoices was needed for that too.
2016-05-27 16:52:51 +02:00
Géry Debongnie 4828a00f9e [REF] web: move dom_utils to its own file 2016-05-27 16:08:50 +02:00
Géry Debongnie b107b14e6b [REF] report,web(_editor): services extracted in their own files
session_instance.js moved from framework/ to services/ and renamed into
session.js, which required to change the bundles in report and web_editor
addons.
2016-05-27 16:08:41 +02:00
Dhaval Panchal 20d7f303e4 [IMP] stock: Hide label Packs and Lots in not enabled
Hide the group in the stock_picking_type form view if in configuration setting:
   - Packages: Record packages used on packing is false
   - Lots: Track lots or serial numbers is false
2016-05-27 15:16:43 +02:00
Kinner Vachhani deef119d72 [FIX] account: substitution in aged partner report
'foo %s bar' % 'alice' if False else 'bob' returns 'bob', not 'foo bob bar'

The previous strings returns '>=' when the direction is future while it should
be 'COALESCE(l.date_maturity,l.date) >= %s'

Fixes #10654
Closes #10695
2016-05-27 15:00:59 +02:00
Mansi Gandhi 9ee4b43477 [IMP] hr_recruitment: Remove wrong tooltip
because document_ftp and knowledge management module is doesn't exist anymore.
2016-05-27 14:59:36 +02:00
Mitali Patel d7a4cc47f9 [IMP] hr_holidays: show leave duration on calendar view
name pattern like '<Employee_name> on <holiday_status> : <no_days> days'.
2016-05-27 14:29:24 +02:00
Joren Van Onder 9499b5d4d2 [FIX] account_asset: use newest depreciation date for new depreciations
The code uses self.depreciation_line_ids[0] and incorrectly assumes it
is always the latest (newest) depreciation line. This sorts the
recordset to guarantee that this is true.

opw-678678
2016-05-27 13:51:56 +02:00
Nicolas Martinelli ff38b370a1 [FIX] payment_ogone: missing key
The key 'PAYIDSUB' should be added in the list of SHA-OUT keys.,
otherwise the signature is wrong.

opw-678718
2016-05-27 13:35:09 +02:00
Nicolas Martinelli b06b2a3641 [FIX] product: pricelist item sorting
The issue occurs in the following case:
- Configure 2 product categories A and B such as A is the parent of B
- Create a pricelist
- Create a first pricelist item which applies to category A
- Create a second pricelist item which applies to category B (with the
  same configuration regarding the minimum quantity)
- Create a product for category B

Before this fix, we cannot ensure that the pricelist item related to
category B will be applied, since we do not order the pricelist items by
category.

Thanks to this fix, we make sure to select the category from the more
specific to the less specific.

opw-678633
2016-05-27 13:31:44 +02:00
Nicolas Martinelli 82b9d7d511 [FIX] web: minimum margin
Make sure to define a minimum margin large enough.

opw-678645
2016-05-27 12:29:29 +02:00
Fabrice Henrion 32ed4c7191 [IMP] README: add Links
Closes #4764
2016-05-27 12:05:58 +02:00
Mansi Gandhi acbe01a1de [IMP] crm:Various improvements,
>In Dashboard/Your pipeline and in Sales/Your Pipeline: Remove the Direct Sales team filter.
	>In the kanban view, if the expected revenu = 0, the "," shouldn't appear.
	>In lead form view, remove the Opportunity header and move Probability under Analysis in Extra Info tab.
	>Rename Your Pipeline into My Pipeline to match the menu entry.
2016-05-27 12:03:35 +02:00
Nicolas Lempereur bc34fe481d [FIX] mail: don't reset subscriptions before adding one
When posting on a thread the user can be auto-subscribed to its default
types. But if the user has previously been subscribed to other subtypes,
those are lost.

With this commit, user mentionned (@{username} in message) or added as
follower for default subtypes are not subscribed if they were already
followers of the record.

So if default subtype is "Comment" and user was only following subtype
"Alarma!" (by checking it and then un-checking "Comment"), then if the
user comment:

-> before this commit, the user would then follow subtype "Comment" and
   not follow anymore "Alarma!"

-> after this commit, the user would follow the subtype "Alarma!"

closes #12008
opw-669127
opw-673766
2016-05-27 12:00:47 +02:00
Jeremy Kersten 2164383fe4 [FIX] website_sale: allow to override product order on shop
Close #11202
2016-05-27 11:56:35 +02:00
Fabrice Henrion 15a0f1acdd [IMP] stock_account: Usability stock accounting settings
It sounds better to call the "Accounting" section of the Inventory app settings
"Stock Accounting" considering it only concerns stock accounting and nothing else.

Closes #8095
2016-05-27 11:55:14 +02:00
Fabrice Henrion 753c679c94 [MIP stock: wording
This sentence was turned in a way that was making the user reluctant to click on
Apply while this is a normal flow to follow most of the time.

Closes #11763
2016-05-27 11:50:39 +02:00
Fabrice Henrion 5548bbe961 [IMP] account: consistent terminology
Closes #11663
2016-05-27 11:37:28 +02:00
Fabrice Henrion dd8ba8924f [IMP] payment_transfer: term
Closes #11764
2016-05-27 11:36:08 +02:00
Fabrice Henrion 520c42bd93 [IMP] product: wording
Closes #11977
2016-05-27 11:35:03 +02:00
Fabrice Henrion 6a96c838f8 [IMP] website_forum: wording
Closes #12124
2016-05-27 11:33:27 +02:00
Martin Trigaux e32ba845de [FIX] website_forum: notification of comments like answers
Fixes #12096
2016-05-27 11:30:40 +02:00
Fabrice Henrion 5da59c248b [IMP] doc: wording
Closes #12159
2016-05-27 11:29:56 +02:00
Vipul Bhatt 4dfbcecfdb [IMP] website_{portal,portal_sale,project_issue,quote} : add pager for customer documents
This commit adds controller to list documents of customer, with pager and archive
widget to sort documents. Impacted documents are : quotations, sale order,
invoices, and issues.

Portal breadcrumd is improved too : add the home icon, and keep the query
params when using archive widget.

Some editable zones were added to templates, allowing people to customize
their frontend portal.
2016-05-27 10:50:34 +02:00
Ravi Gadhia a999969f81 [REM] fleet: Remove unused code 2016-05-27 10:39:22 +02:00
Ravi Gadhia e513af0bb0 [IMP] fleet: migrate to new api (fleet.py). my eye is paining 2016-05-27 10:39:22 +02:00
Ravi Gadhia 288568f486 [IMP] fleet: change directory structure according to new api 2016-05-27 10:33:28 +02:00
Srushti Patel 516ee0fda2 [REM] product_uos: remove module product_uos it is no longer supported (group_uom manage this by default) 2016-05-27 10:13:22 +02:00
Joren Van Onder 49b1742477 [FIX] point_of_sale: respect user timezone for all data in Sale Details
9f0120d73b solved this issue already, but
it was only applied to POS orderlines. There is other data on the
report (eg. payments, taxes, ...) that should also correctly respect the
user time zone as well.

opw-678748
2016-05-27 09:52:20 +02:00
Mohammed Shekha da3d2fb1dc [IMP] report: Printed Report names customization
PURPOSE
=======

I've seen this new improvement regarding the naming of the printed reports:
https://www.odoo.com/web?#id=10870&view_type=form&model=project.task&menu_id=3942&action=327

This makes the report have the pdf name being the name instead of the report_name of
the ir.actions.report.xml, which is already an improvement.

But why don't we allow the users to have their own naming conventions?
I mean, we could allow our client to create and name their pdf the way they want, as
they do regarding the attachment.

Not only when it's about saving it as an attachment on the record, but also when downloading
directly the pdf, such that the modification in the previous screenshot, would give the following
result when downloaded:

People need to have their pdf named automatically according to a convention. When you print 10 sales
order during an hour, you don't want to get lost in having the following:
Devis / Commande.pdf
Devis / Commande(1).pdf
Devis / Commande(2).pdf
Devis / Commande(3).pdf
Devis / Commande(4).pdf
Devis / Commande(5).pdf
Devis / Commande(6).pdf
Devis / Commande(7).pdf

especially when those are for different partners.
2016-05-27 09:44:01 +02:00
Christophe Simonis 0b52d097ea [MERGE] forward port of branch saas-11 up to 5e4f1f5 2016-05-26 18:52:45 +02:00
Christophe Simonis 5e4f1f5ab3 [FIX] stock_account: use new api to call method get_price_unit 2016-05-26 17:38:50 +02:00
Christophe Simonis 7046c2fbe6 [MERGE] forward port of branch saas-11 up to e4500d0 2016-05-26 16:58:37 +02:00