Commit Graph
117975 Commits
Author SHA1 Message Date
Antonio Espinosa a0ff74b78d [FIX] website_mail: do not propagate csrf_token to message_post method
Indeed through portal users can post a message. Form used in order to
do so include a csrf token. However this one should not be propagated
to message_post because it is not a mail_message model field.
This creates unnecessary warnings.

Closes #13956 .
2017-05-29 13:57:10 +02:00
Jerther a0ea3304d1 [IMP] doc: add missing doc on kanban groups
group_create, group_delete and group_edit were missing

Closes #17218
2017-05-29 13:42:19 +02:00
Luis Torres bf201e9014 [IMP] l10n_mx: Complete fiscal regime catalog
To CFDI 3.3 the SAT provide the new catalog that need be used to
"RegimenFiscal" node used by the company that emit the documents.

Definition:
Atributo requerido para incorporar la clave del régimen del
contribuyente emisor al que aplicará el efecto fiscal de este
comprobante.

And the attribute need the code from the catalog, and validate that it exist.

In CFDI 3.2 the attribute was required but free. Then the code also
could be used in CFDI 3.2.

Like fiscal position have not field to save the code, is used the next
structure

`code - name`

And when is used this element in the XML generation take only the first
three characters.

`company_id.partner_id.property_account_position_id[:3]`
2017-05-29 13:25:08 +02:00
qsm-odoo b21426ab9c [FIX] web_editor: properly match snippet options' DOM
Backport of 10.0 commit: 5331a87f81

The snippet options are attached to `closest`, `all` and `is` functions
to be able to find/check DOM they are associated to. Their behavior
depend on the snippet option type: the search in the DOM is either done
in the body, the editable parts, the editable children only, ....

The problem is that when searching from a given DOM element, jQuery
won't match the elements whose selector contains this given DOM element.
Or in code terms, jQuery find function behavior is:
`$('A').find('A B')` <=> `$('A A B')` (not `$('A B')`)

This was indeed a problem on the job position apply form pages where the
main editable element is the <form/> element itself. Indeed, the snippet
options' selectors which began by 'form' were not able to match. Worse,
the selector is used for a jQuery search for drag & drop and saving but
not for initialization (where it is used as a `is` check on clicked
elements). So, some DOM were able to be modified by options but not
properly (re)configured before saving.

opw-705902
opw-741305
2017-05-29 13:14:22 +02:00
Uku Lagle 97790089c4 [FIX] website_sale: do not display unavailable pricelists
It should not be possible via /shop/change_pricelist/<pl_id>
to change to a pricelist that is not marked as selectable.

is_pricelist_available method should do that, but is not,
because it calls get_pricelist_available with show_visible=True,
instead of show_visible=False

:param bool show_visible: if True, we don't display pricelist where
selectable is False (Eg: Code promo)

Closes #17220
2017-05-29 12:25:54 +02:00
Germana Oliveira 8ee9cec4d5 [CLA] add goliveirab to Vauxoo's CLA
Done at #17200
2017-05-29 12:23:21 +02:00
Yenthe V.G f08c70b357 [FIX] pos_mercury: Display warning in user's language
Closes #17261
2017-05-29 12:15:27 +02:00
Géry Debongnie bbf724e401 [FIX] web: properly support password attribute for fields
With the new views, the special attribute password was no longer
supported.  We simply reintroduce in this commit proper support to
display password fields with *.

Note: we may want to display passwords with a static number of *, but
this requires some thoughts on the usability of the change. We simply
reintroduce the previous behaviour here.
2017-05-29 12:12:45 +02:00
Géry Debongnie cad943d035 [FIX] web_editor: prevent crash with FieldTextHtmlSimple
If the method commitChange from the widget FieldTextHtmlSimple was
called in mode=readonly, a traceback was displayed.  This is not very
common, because most save operations are done in mode=edit, but it can
happen in readonly mode: when the user clicks on an action button, then
the form view is saved, if necessary.

To reproduce this bug, just open a form view for res.users, and click on
the Change Password button.
2017-05-29 12:12:44 +02:00
Yannick Tivisse fa1a09f6e8 [FIX] l10n_do: Remove useless and unknown field spoken_langages
This field is used with the multilang module. As only one language is spoken in Dominican Republic, this definition is useless and furthermore it raises a warning in the logs.
2017-05-29 12:10:36 +02:00
gustavovalverde 74c8053449 [FIX] l10n_do: Add 18% tax to Communication tax group
When changing the 18 tax by the communication group, the 18 tax has
to remain
2017-05-29 11:58:57 +02:00
gustavovalverde 7bda65e90e [IMP] l10n_do: Add CoA missing accounts, add tags
Description of the issue/feature this PR addresses:

The Chart of Accounts was missing accounts needed for correct
inventory valuation using perpertual method, and also a seggregation
for payroll accounts, to differ employee retentions from company
contributions.

Current behavior before PR:

Wrong accounts used for perpetual inventory valuation
Payroll accounts not showing difference between employee retentions and company contributions
Regulatory reports are hard to make without the right accounts tag
Desired behavior after PR is merged:
The correct accounts are now created and assigned for inventory valuation. And payroll accounts are correctly segregated for the payroll rules coming in the next PR.

The accounts will also have their corresponding tags for having regulatory reports based on the "control account" for hierarchy, which was removed in v8.

This changes are also needed for a WIP of a PR coming to the
Enterprise repository, for building legal reports based on account
and tax tags.
2017-05-29 11:57:13 +02:00
Jesus Zapata e4e320feb7 [CLA] add JesusZapata to Vauxoo's CLA (#17237)
Closes #17237
2017-05-29 11:43:35 +02:00
Yenthe V.G 5e652c856d [FIX] hr_timesheet_sheet: Display warning in user's language
Closes https://github.com/odoo/odoo/pull/17254/files
2017-05-29 11:28:42 +02:00
Richard Mathot 5c0355c033 [FIX] stock: missing grand total for inventory valuation
(was working in Odoo 9.0)
2017-05-29 11:26:16 +02:00
Martin Trigaux 731b23cf4f [FIX] hr_expense: remove duplicated field
Courtesy of Yenthe
2017-05-29 11:20:42 +02:00
Yenthe V.G 61f6756a7c [FIX] payment_authorize: add missing translation ability
Closes #17257
2017-05-29 11:17:15 +02:00
Josean 62cf9dd0fd [CLA] corporate signature for landoo
https://github.com/odoo/odoo/pull/17251
2017-05-29 11:13:46 +02:00
Josean 366c1e307f [FIX] base: Correct typos for 2 spanish states
Closes https://github.com/odoo/odoo/pull/17251
2017-05-29 11:13:46 +02:00
Yenthe V.G c36c5454ae [FIX] hr_expense: untranslated string
Closes #17255
2017-05-29 11:01:59 +02:00
Yenthe V.G 054e06e223 [FIX] l10n_be_invoice_bba: Display warning in user's language 2017-05-29 11:00:00 +02:00
Yenthe V.G 717002c2da [FIX] payment: untranslated string
Closes #17256
2017-05-29 10:57:14 +02:00
oco-odoo 308e58857a [FIX] stock_account: fix comparison of apples and oranges
In anglosaxon accounting's stock valuation, the case where invoice and company currencies were different was not managed properly, because of a syntactic error in the condition checking this case.

Was PR #17259
2017-05-29 10:41:51 +02:00
cubells b1e524255a [FIX] analytic: Remove search default non existent
Courtesy of cubells (Orbetix). Was PR #17219
2017-05-29 09:42:41 +02:00
Moises Lopez - https://www.vauxoo.com/ ce44ad2440 [FIX] base_address_extended: default to Null instead of empty string
for computed street fields.

Qweb reports delete the node if the value is Null but won't if the value is an empty string. And then, l10n_mx_edi module has errors because there are nodes with empty string and the minimum value is one char.

Courtesy of Vauxoo. Was PR #17169
2017-05-29 09:31:53 +02:00
Goffin Simon 530546a3e3 [FIX] point_of_sale: _confirm_orders
To help users to know why they can't close their pos sessions when
a Sales Journal is not set in the pos.config.

opw:744758
2017-05-29 09:17:18 +02:00
Nicolas Martinelli 9d2f48dc7f [FIX] crm: expected closing
The "exp. closing" dashboard button takes into account the won
opportunities. It shouldn't.

opw-744940
2017-05-29 09:14:43 +02:00
Odoo Translation Bot 20c724479f [I18N] Update translation terms from Transifex 2017-05-28 07:06:53 +02:00
Odoo Translation Bot bcf302cf48 [I18N] Update translation terms from Transifex 2017-05-28 04:29:29 +02:00
Odoo Translation Bot 14b30c4000 [I18N] Update translation terms from Transifex 2017-05-28 00:28:16 +02:00
Nicolas Martinelli 130f9b3be5 [FIX] stock: incorrect report
Extra data printed on delivery slip.

opw-744085
2017-05-26 17:58:40 +02:00
Sylvain GARANCHER e529dc1e95 [FIX] mass_mailing: set cron to noupdate
To avoid forcing the frequency or active.
Move to data file with noupdate enabled

Closes #17227
2017-05-26 17:33:40 +02:00
Benjamin Willig 316ffc8014 [FIX] sale_stock: access to sale orders
Make sure the user has access to all sale orders linked to this procurement
group.

Fixes and closes #17232
2017-05-26 17:29:42 +02:00
Benjamin Willig 881a86d2c7 [CLA] Add Benjamin Willig in ACSONE CCLA
Done at #17232
2017-05-26 17:29:29 +02:00
Xavier Morel 6c49715c56 [FIX] P3: leftover exception.message in template 2017-05-26 15:49:12 +02:00
Olivier Dony 345f1d4b86 [FIX] packaging: update dependency for pyPdf2
Complements 021de21e8c and #16918
2017-05-26 15:45:39 +02:00
Mehul Patel 904dcc0e06 [FIX] account: Fixed traceback when no payment on process_reconciliation
this bug is exposed due to the change,
https://github.com/odoo/odoo/commit/97c6dc77925090cb57e57b9edabcf81c93bea87c#diff-5f115361da1bcfdf42d3f2e0ad6e8661L476
2017-05-26 15:21:53 +02:00
Aaron Bohy d76dc17a98 [FIX] web: Pivot: make expand all actually work
The 'Expand All' feature was tested, but in the test environment
RPCs are mocked, and everything is synchronous (by default). So
even if the tests passed, the feature actually didn't work because
of a deferred (the reload deferred) that wasn't waited for.
2017-05-26 15:15:59 +02:00
Aaron Bohy f72bc6c9be [FIX] web: Pivot: don't reload twice on expand all
Before this rev., the option 'reload: false' wasn't correctly
passed when clicking on 'Expand All', and the data was reloaded
twice.
2017-05-26 15:15:59 +02:00
Aaron Bohy 62f446004f [FIX] web: Pivot: don't ignore pivot keys in context
Keys 'pivot_measures', 'pivot_col_groupby' and 'pivot_row_groupby'
can be specified in the context and are meant to be used by pivot
views to determine the initial measures and groupbys. Before this
rev., the new implementation of the pivot view simply ignored them..
2017-05-26 15:15:59 +02:00
Aaron Bohy d9eb4536a5 [FIX] web: MockServer: read_group: group on several fields
Before this rev., the _mockReadGroup function only supported
grouping on one field, and if called with an array of fields of
length > 1, the remaining fields were ignored.

Grouping on several fields is now supported, and some tests had
to be adapted.
2017-05-26 15:15:59 +02:00
Aaron Bohy 5442769c41 [FIX] web: Pivot: correctly return context
allowing to save the current state of the pivot view in the search
view, or to add it to the dashboard.
2017-05-26 15:15:59 +02:00
Aaron Bohy b06bd6495d [FIX] sale_timesheet: use correct pivot keys in context
Keys 'pivot_measures', 'pivot_col_groupby' and 'pivot_row_groupby'
can be specified in the context and are used by pivot views to
determine the initial measures and groupbys. There were typos in
some of them in this sale_timesheet template.
2017-05-26 15:15:59 +02:00
Géry Debongnie 1d57f89380 [FIX] web: properly react when save operation fails (form)
Before this commit, the save method in the basic model did not properly
react when the rpc fails.  In that case, the returned deferred stayed
indefinitely in the 'pending' state.  This is a big problem, because the
basic controller put that deferred in a mutex.  As a result, every
subsequent operations (including field changes!) were indefinitely delayed.

To reproduce the issue, you can find any form view where some python
business logic will cause a fail in some cases.  For example, create a
new inventory adjustement, click on 'Start inventory', then add a line
in the x2many with the same product as another line.  Saving that record
will fail, but then, the form view is broken: no interaction will work.
2017-05-26 15:02:36 +02:00
Géry Debongnie dcde0aaf30 [FIX] web: recompute decoration classnames when necesssary
Before this commit, row decorations were only computed at the initial
rendering for a list view, then never recomputed.  Most of the time, it
is not an issue, but list view can be edited, and in that case, it may
be a problem.  With this commit, we just override the confirmChange
method to recompute the various decorations.

Note that in bonus, decorations now works in realtime, when editing a
list view (in saas-15, they simply did not work when editing a record)

Also, we now use the same evaluation context as everything else in the
web client: the eval context from the record, not some custom handmade
context like before.
2017-05-26 15:02:31 +02:00
Géry Debongnie 9009c5375e [FIX] web: fix various issues with eval contexts
Eval contexts are not easy... They should be different when sent to the
server and when evaluated in the web client.  In this commit, we fix
some small issues:

- when evaluated on the web client, x2manys should be a list of ids,
  when sent to the server, it should be a list of commands
- dates should be converted to string
- always add current_date in the evaluation context, as a magic key (it
  was previously only available in row decoration context evaluations)
2017-05-26 15:02:29 +02:00
Yannick Tivisse 7e008469e4 [IMP] base: Always load menuitem xmlids on templates
PURPOSE
=======

Currently we can choose to load the xmlid of a menuitem if web_tour is installed by setting the attribute `load_xmlid=True` on the view.

This is strange for 2 reasons:
- Searching all the ir.model.data on menuitems with load_xmlid=True to compute its xmlid, searching the related subtree on the returned structure of the method load_menus is quite complicated for the perfomance gain (if there is any perfomance gain to do it)
- This is not working in community in frontend, as only the root menuitems are loaded, thus it is the `load_menus_root` instead of the `load_menus` that is called. This issue prevent a tour step to be displayed correctly on community and enterprise on a menuitem.

SPECIFICATION
=============

Remove all the `load_xmlid` attributes and the related mechanism and move it into base to always load the xmlids for all the menuitems. It won't bee to heavy as the result is cached.

It's better the keep the current mechanism (Load the xmlids from ir.model.data and insert them into the tree) as we only make 1 search to the ir.model.data
2017-05-26 13:13:12 +02:00
Siddharth Gajjar 6110eb969d [IMP] website_sale: update create product tour
Purpose
=======

People who want to start an ecommerce expect to directly deal with products.
for now they are suggested to design a homepage first.

-> specific onboarding for ecommerce in order to start from shop page

Specs
=====

new tour for website_sale (start in /shop page):
Let's create your first product. https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrT3VOZDk1V3Z0d0k/view?usp=drivesdk
same steps than now to create the first product
once product save, take to the backend:
https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrMjI4TlRZdDBLWVk/view?usp=drivesdk
https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrckNLZWthekFRSXM/view?usp=drivesdk

remove the 2 tips in pictures modal (because people don't follow them)  https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrOEQxUlJDZk1vd3M/view?usp=drivesdk
suggest instead to upload a picture
2017-05-26 13:13:12 +02:00
Martin Trigaux 5280fda72f [I18N] sale: update source terms
Recent changes in mail.templates not reflected
2017-05-26 11:22:58 +02:00
Martin Trigaux 1fc8171639 [I18N] account: export source terms
Was pretty outdated
2017-05-26 10:50:41 +02:00