Commit Graph
106004 Commits
Author SHA1 Message Date
qsm-odoo a2ae219d4e [FIX] web_editor, website: fix customize_template_get
Commit e11f23b701 split the website
customize_template_get into web_editor and website ones. This split
was not perfect and commit 20861b482a
tried to make it work... but did not made it totally and added an
indirect dependency to website module in web_editor...

As the final result is wrong and inconsistent and that the previous
9.0 implementation was already ugly, this was not possible to make
a consistent full-stable fix.

This commit tries to make a fix as stable as possible (the main method
name did not change, the arguments did not change, their purpose is
the same, ...) which makes the code work and be less ugly. However,
the function returns are now slightly different (and JS depends on it).
It returns only valid view information (not header stuff which is not
related to anything and the inherit_id value is now a combination of
the inherit view id and name). Also, a new private method has been
created.

Also, the method contained code which was deprecated since saas-6 but
was never removed (and never broke anything "by chance").

In master these methods will be refactored to make more sense.
2016-10-14 13:16:49 +02:00
Jeremy Kersten 7a7723eacf [FIX] base_import: allow to specify datetime format, fix encoding, add test date, fix translation
After this commit,
 - chinese custom date are supported
 - Possibility to specify the custom datetime format and not only dateformat.
   Withtout it, impossible to import a date column and datetime column at
   sametime with custom format.
 - Add test to check import date with custom format
 - Fix translation where error messages was in the source.

This commit fixes #13783 and closes #13803

Courtesy of @odony for the review ;)
2016-10-14 12:36:04 +02:00
Jeremy Kersten 8153e60653 [FIX] website_sale: fix cross browser compatibility.
Firefox don't support to submit a form not in the dom.

This commit closes #13805
2016-10-14 12:35:54 +02:00
Thibault Delavallée 323dab7653 [REF] mail: remove compatibility for support of model-res_id message-id in mail gateway
Old versions of Odoo did not correctly manage message_id of mail messages.
Thread formation was based on information present in References and/or in
In-Reply-To of replies to emails. Message-Ids could contain model and
res_id of a record. Thread formation was done using this information.

However commit 8253453d64 fixed that behavior
by correctly checking in existing mail_messages to find matching message-ids.
Message found was set as parent and thread formation was correctly done without
collision or possible issues with badly formatted Message-Ids.

A compatibility mode was introduced at the same time to handle previous versions
of Odoo.  This commit removes this compatibility as it was done long enough
to ensure compatibility is not required anymore.

[TESTS] mail: tests updated, compat mode should raise in all cases now
2016-10-14 12:22:46 +02:00
Yenthe V.G 5421beafb1 [Fix] stock_account: detect if there is no price change
The warning tells the user that there is no difference between the standard
price and new price, while the if condition does the exact opposite.

Closes #13797
Fixes #13785
2016-10-14 11:56:18 +02:00
Olivier Dony 2054337199 [FIX] base_import: spellchecking in import dialog options
Excel uses "Text Qualifier" while LibreOffice uses
"Text Delimiter". The latter seems more intuitive.
2016-10-14 11:53:45 +02:00
qdp-odoo 9aebcb80d2 [FIX] account: add field include_initial_balance in the account.account.type form view 2016-10-14 09:39:23 +02:00
Nicolas Martinelli c426133fb9 [FIX] account: cash with multiple COA
- Set multi company
- Create 2 new companies
- Set a chart of account for company 1 (ex Belgium)
- Set another chart of account for company 2 (ex UK)

This is because the generation of accounts from templates doesn't
restrict the accounts to the current one.

opw-690796
2016-10-14 08:27:57 +02:00
Thomas Binsfeld (ACSONE) a4143dae1d [FIX] Inheritance of purchase_order_change by preparing data dictionary
Data dictionary filled inside the function purchase_order_change had no possibility of inheritance.

opw:690733
2016-10-13 22:33:28 +02:00
stefanorigano 39d74a7136 [FIX] web_editor: improve web_editor UI style preservation
* add and use preservation mixins to prevent undesired customizations
made by themes
* remove some style preservation code (and use the mixins instead)
* add UI states' colour variables
2016-10-13 17:01:04 +02:00
stefanorigano 63fdde638b [FIX] website: fix usability/design issues in o_select_media_dialog 2016-10-13 17:01:03 +02:00
Simon Lejeune 8a87c382ba [REF] web_kanban: allow a custom limit defined in the arch
With this commit, it's now possible to set an arbitrary limit on any
kanban view by adding a limit attribut to the root kanban tag in a
kanban definition.
2016-10-13 15:59:20 +02:00
qdp-odoo 421fe962eb [IMP] account: replace the button to open related account.move.line on bank statement by a button to open the related account.move 2016-10-13 11:42:50 +02:00
Christophe Simonis 187b32dd91 [FIX] README: change label and color of badges 2016-10-12 18:55:16 +02:00
Christophe Simonis 8cb03824f9 [FIX] README: update links to point to version 10.0 2016-10-12 18:42:12 +02:00
Martin Trigaux 3154b8fefc [IMP] base: clarify view error position
In case of syntax error, show where the error is.
e.message is enmpty for syntax errors

Before:
Can't validate view:

After:
Can't validate view:
SyntaxError('invalid syntax', ('', 1, 51, "{'invisible': [('external_sale', '=', 'internal')]]}"))
2016-10-12 17:31:18 +02:00
Christophe Simonis 0acd63d073 [MERGE] forward port branch saas-12 up to 27dc061 2016-10-12 17:03:55 +02:00
Christophe Simonis 27dc061bf1 [MERGE] forward port branch saas-11 up to a73cd57 2016-10-12 17:00:35 +02:00
Christophe Simonis a73cd57485 [MERGE] forward port branch 9.0 up to 6faf232 2016-10-12 16:56:44 +02:00
Martin Trigaux a357a8135d [FIX] remove empty file
my bad
2016-10-12 16:39:46 +02:00
Christophe Simonis 6faf232b71 [MERGE] forward port branch saas-6 up to ef4efea 2016-10-12 15:33:01 +02:00
Christophe Simonis ef4efeac7c [MERGE] forward port branch 8.0 up to 16430be 2016-10-12 15:27:07 +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
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
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