Commit Graph
117975 Commits
Author SHA1 Message Date
Thibault Delavallée 3ff2f81194 [IMP][MOV] portal_sale, sale, account: move portal stuff into right addon
* [MOV] sale and invoice portal related code from portal_sale to
   website_portal_sale. Security rules and website related stuff should
   indeed be located in website_portal_sale.
 * [MOV] sale and invoice standard code to sale and account. Adding customer
   as follower is a standard feature for sale orders and invoices.
 * [IMP] website_portal_sale does not depend from portal_sale anymore but sale
   and other portal / website addons
2016-10-12 15:11:27 +02:00
Denis Vermylen (dve) 5c70f8b7b2 [REM] crm: remove dead code
option "create_name_field" gets set to "name" by default where it's used.

+ option seems to be already handled by context attribute anyway.
2016-10-12 15:10:36 +02:00
Thibault Delavallée 9a7df943f5 [REM] portal_sale: remove weird override of mail_mail processing
This code seems to add recipients of an email to the sale order followers.
However currently the custome of a sale order is already automatically
added in the followers. Adding other recipients should not be
something completely custom in sale order, moreover by overriding
mail_mail methods.

People should add followers when necessary and should avoid adding
too many people automatically. When you send an email to other people
than the customer those will be added as followers when replying.
2016-10-12 15:09:31 +02:00
Thibault Delavallée 8d096af9ea [MOV] account: rename mail template file according to guidelines 2016-10-12 15:09:31 +02:00
Thibault Delavallée aa5051f885 [FIX] sale: fix report name when sending by email, no more lasting _ 2016-10-12 14:38:39 +02:00
Thibault Delavallée 25d27ced8b [FIX] sale: use website address when sending quotation by mail
When the quotation is sent by email it is still in draft state. However right
after sending it will move to sent state. This state allows the customer to see
it in its website portal. Let us then use a convenient context key used when
sending quotations by email to force the use of website address for quotation
link contained in the email.
2016-10-12 14:37:23 +02:00
Damien Bouvy 0c8f3038d1 [IMP] mail: remove deprecated doc 2016-10-12 14:16:22 +02:00
Damien Bouvy e0cbb058e5 [IMP] mail: add basic for update notification (ping)
Ensures no regression on a3509d282d
2016-10-12 14:16:22 +02:00
Goffin Simon a8e1595a12 [FIX] sale: visible cost price in sale order line
The Cost of the product(purchase_price) must be shown in the wizard opened
when changing a SO line.

opw:690180
2016-10-12 14:13:33 +02:00
Danimar Ribeiro 106840c369 [FIX] mass_mailing: allow to quick create a mass_mailing
_rec_name in mass mailing is source_id which is an integer, it does not accept
a char value.
Instead specify the `name` value, which will create a utm.source.

Closes #13765
2016-10-12 14:04:17 +02:00
Martin Trigaux 649823b17e [FIX] doc: packaged Odoo still uses odoo.py 2016-10-12 13:50:35 +02:00
Martin Trigaux 24aba6014c [FIX] base: restrict state selection to the selected country
It was not an issue before as there where only the US states in the data.
Remove onchange as useless since domain restriction.

Fixes #13657
2016-10-12 13:50:23 +02:00
dbh 296494aaed [ADD] crm : add website field into lead and opportunity form view for company/customer information 2016-10-12 13:47:05 +02:00
vnsoft 16430be566 [FIX] models: in method read_group(), allow orderby='id desc'
When orderby argument is 'id desc', an error occurs: "read_group order by 'id'
ignored, cannot sort on empty..."
2016-10-12 13:19:37 +02:00
Jeremy Kersten 28103a5f2c [FIX] product: fix duplicated creation variants
Move the code to manage the case of 'adding an attribute with only one value
should not recreate product' before to select the existing variants.

Before this commit,
When you create 1 new product.template, it create 1 variant.
When you add an attribute with only one value, it update the existing and
create a duplicate variant.

After this commit,
Only the existing variant is updated, and there are no more duplicated variant.

The fix:
We update the variant if only one value before to select the existing variant.
Thus, the updated variant is compared with the matrix and not duplicated.

This commit closes #13757
2016-10-12 12:38:38 +02:00
Martin Trigaux e81f186ff8 [FIX] doc: change references to odoo.py to odoo-bin 2016-10-12 12:36:45 +02:00
Alexandre Fayolle 65c685ad24 [FIX] context mutations (#10368)
when extending these methods with the new api, the context is a frozendict
so we need to copy before mutating.

this patch was made by searching for key addition to context and calls to the
update() method on the 8.0 addons, and checking if a copy was made before in
the method.
2016-10-12 12:30:42 +02:00
dbh 0f19e9fff2 [IMP] product : remove unused or useless tooltip on product filter in product search view. 2016-10-12 11:30:05 +02:00
Raphael Collet 8f6b5fcf9e [FIX] ir_model: in _module_data_uninstall(), unlink the right recordset
The bug was introduced by eb04aa1e (migration to new API).
2016-10-12 11:24:24 +02:00
Damien Bouvy a3509d282d [FIX] mail: use explicit 'active' domain for user count in ping
Before the migration to the new API of this code, the context was
not propagated to the update_notification call.

This is now the case, which is unfortunate since the context of the
cron action has an 'active_test'=False key, which causes the ping
to count user differently when the cron is triggered from the form
view.

This commit adds explicit ('active','=',True) domain to ensure we
only count active users when pinging.
2016-10-12 11:23:34 +02:00
Denis Vermylen (dve) d98e5bb68a [IMP] hr_attendance: improve no-content message
of Attendances view
2016-10-12 11:12:14 +02:00
Denis Vermylen (dve) 6315dd970e [IMP] hr_attendance: add a no-content message
for the employees kanban view in kiosk mode.
2016-10-12 11:11:17 +02:00
Cedric Snauwaert 77c64e3f05 [FIX] account: add a constraint to prevent the change of the reconciliation flag on account when there are already account_move_line existing 2016-10-12 10:35:29 +02:00
qdp-odoo dd9cbcf9a3 [FIX] account: fix enterprise aged receivable report by hiding the paid invoices when we unfold a partner 2016-10-12 10:28:56 +02:00
Richard deMeester 32b0e9520d [FIX[ account: correct 'read' call
Using the read method should generally pass a single id as a list
due to the new API inheritance of the read method.  If an attempt
is made to use the new API, the result is inconsistent.
Following 4f0ca6d9

Closes #13678
2016-10-12 10:28:16 +02:00
Sebastián Ramírez d30f512128 [FIX] doc: use the correct dir structure
To respect the folders created by scaffold and the coding guidelines
Closes #13676
2016-10-12 10:23:45 +02:00
Sebastián Ramírez 9adcf51600 [CLA] signature for tiangolo
From #13676
2016-10-12 10:23:24 +02:00
Danimar Ribeiro 11c11dc684 [FIX] website_livechat: verify if image_small is set
image_small is not required and may fail if empty
TypeError: cannot concatenate 'str' and 'bool' objects

Closes #13726
2016-10-12 10:18:18 +02:00
开阖软件 Jeff Wang 007607030a [FIX] tools: keep keyword arguments in wrapper
The patched add_sheet method lacks from the keyword argument cell_overwrite_ok
that is present in original code.

Closes #13755
2016-10-12 09:57:35 +02:00
Martin Trigaux 69dfa67ac7 [FIX] pos: do not mix create and validation date
The validation_date was using the creation_date value in the follwing scenario:
1. create a new order with a few lines (creation_date=t1)
2. reload the page, `init_from_JSON` uses validation_date=t1
3. validate the order at t2, ignored due to already stored value

creation_date must be kept for tracablity reasons (e.g. pos_blackbox_be)

Fixes https://www.odoo.com/groups/59/20542134
2016-10-12 09:44:56 +02:00
Odoo Translation Bot 93e2125b8e [I18N] Update translation terms from Transifex 2016-10-12 09:07:46 +02:00
David Beal 1d6df46aba [IMP] product: add _variant_name() in product.attribute.value
To be possible to override the name_get of the variants
Closes #13053
2016-10-12 08:52:54 +02:00
开阖软件 Jeff Wang 77aba59dc2 [CLA] Signature for GoodERPJeff
Closes #13756
2016-10-12 08:47:05 +02:00
Nicolas Lempereur 3cd80916f1 [FIX] purchase_requisition: typo in groups name
The field in stock configuration group_stock_adv_location is toggling
the group "stock.group_adv_location". There was a typo which was using
on the form view of purchase.requisition the group
"stock.group_stock_adv_location" instead.

opw-690804
2016-10-12 08:38:00 +02:00
Christophe Simonis 226b28e090 [MERGE] forward port branch saas-13 up to f3532a6 2016-10-11 19:09:32 +02:00
Christophe Simonis f3532a6da6 [MERGE] forward port branch saas-12 up to 54ebe31 2016-10-11 19:07:42 +02:00
Nicolas Martinelli 42797ebfbb [FIX] hr_expense: set company of expense
When an expense is received by email, make sure to set the expense in
the emloyee's company.

opw-688671
2016-10-11 19:01:59 +02:00
Christophe Simonis 54ebe31f51 [MERGE] forward port branch saas-11 up to 685e310 2016-10-11 18:33:18 +02:00
Christophe Simonis 685e3104ec [MERGE] forward port branch 9.0 up to 7bdb6f9 2016-10-11 18:23:27 +02:00
Christophe Simonis 7bdb6f9c8d [MERGE] forward port branch saas-6 up to adead97 2016-10-11 18:00:27 +02:00
Christophe Simonis adead97e53 [MERGE] forward port branch 8.0 up to f4aae1c 2016-10-11 17:58:16 +02:00
qdp-odoo 952a06255d [FIX] account_asset: hide the button 'set_to_draft' on assets already started to be depreciated because it makes no sense to be able to do so 2016-10-11 17:27:41 +02:00
Christophe Simonis 24a2217980 [MERGE] forward port branch saas-6 up to c4fb79f 2016-10-11 17:06:35 +02:00
Jeremy Kersten f4aae1c58b [FIX] email_template: encode date/datetime format
See more details here: odoo/odoo@6191e3f6d0

This commit closes #13704
2016-10-11 17:04:36 +02:00
Christophe Simonis c4fb79ff88 [MERGE] forward port branch 8.0 up to ecb6055 2016-10-11 16:56:13 +02:00
Jeremy Kersten 62116e758c [FIX] fields: add group_operator in get_description for Monetary Class.
See previous commit odoo/odoo@4ca06e0255
2016-10-11 16:47:21 +02:00
Christophe Simonis ecb6055b0f [FIX] tools/config: avoid sharing init/demo config
Theses config options should not share the same dict as `init` dict
may be modified by migration scripts to handle new module dependencies.
2016-10-11 16:46:32 +02:00
Olivier Dony 789566a0d0 [FIX] website_livechat: make it auto-install
Most people install the im_livechat module and expect it
to be enabled automatically on their website.
When it doesn't work they try to use the integration JS
code and add it to their website layout, which does not
work as expected.

Setting it as auto-installed solves the issue.
2016-10-11 16:36:39 +02:00
Jeremy Kersten 8033467be6 [FIX] marketing_campaign: fix diagram view - type has been renamed to action_type
During migration to new api the field has been renamed but not the condition in the diagram
2016-10-11 16:29:37 +02:00
Jeremy Kersten 39d4486ded [FIX] calendar: rename function call for _get_recurrent_date_by_event
Function has been prefixed with an underscore by commit #21e4579551a

Avoid traceback where 'get_recurrent_date_by_event' is not defined

Thix commit closes #13727
2016-10-11 15:45:05 +02:00