Commit Graph
105373 Commits
Author SHA1 Message Date
qsm-odoo aea466ec48 [FIX] website_theme_install: use correct xml_id for theme/hidden category
Commit a00ea2755d restored correct
definition of external id for the theme/hidden category but forgot
to adapt its use everywhere.
2016-09-12 15:33:54 +02:00
tdi-odoo 6fee3fb72e [FIX] stock: fix typing error in opening inventory valuations 2016-09-12 15:14:09 +02:00
Damien Bouvy 629a747d13 [FIX] mail: fix the update notification
The registration code was apparently not tested properly. Or at all.
2016-09-12 13:57:42 +02:00
Damien Bouvy 91610a5862 [IMP] sale_timesheet: make the message useful for task creation
When a SO creates a task, the chatter message displayed "Task Created",
which was not extremely helpful.

This commit add meaningful messages on the SO and on the task itself
and makes use of the "chatter link" feature to make the references
clickable.
2016-09-12 13:33:10 +02:00
Thibault Delavallée 4a016f6180 [FIX] account, sale: effectively hide internal content in chatter using o_mail_notification summary
We use summary instead of class as classes are often stripped by gmail or even odoo.
Summary is a commonly kept attribute so it is used in the mail gateway to hide
what is considered as internal content and should not be rendered in the chatter.
2016-09-09 18:17:34 +02:00
Christophe Simonis 298e2032ea [MERGE] forward port branch saas-12 up to 9f28139 2016-09-09 18:13:31 +02:00
Fabien Meghazi 75f60f6941 [ADD] web: Add extra condition branching (t-elif, t-else)
A new preprocess method is added to the template engine in order to do
preprocessing/sanitization of the templates before compilation.
This method can be overloaded in order to add new features such as
translation, ...
2016-09-09 18:03:08 +02:00
Christophe Simonis 9f28139297 FIX] website_sale: revert invalid patch introduced by previous forward port 2016-09-09 17:15:53 +02:00
qsm-odoo a00ea2755d [FIX] website_theme_install: restore correct external id for theme/hidden category
The website_theme_install needs to reference the module category whose
xml_id is base.module_category_theme_hidden. The problem was that it
needs to do this in a context where the category might not exist (as
auto-created only if a module defines its category as "Theme/Hidden").
To solve the problem, the category was explicitly created by the
website_theme_install module to be able to reference it.

Commit 11812b0b9e removed the "base." part
of the xml_id thinking it was a record which had to be created by the
module. This then wrongly showed the Theme/Hidden modules in the list.

Now the solution came from commit https://github.com/odoo/odoo/commit/c6983137#diff-07193f47475ccdd78f39773a368ce05bL386
which now allows to use the second parameter of ref in a domain
context. This allows to tell the system to not raise an exception if
the ref we want to find does not exist.
2016-09-09 16:33:00 +02:00
Christophe Simonis 7a02b90e17 [MERGE] forward port branch saas-11 up to dc4d6b6 2016-09-09 15:43:06 +02:00
Pierre Masereel 08ebf2cf61 [FIX] service: initialize_db: correctly set country
When we are creating a database with a country code from the database manager,
the country is not set in the company, so when we install the accounting app, there
is no chart of account installed by default. We have this bug because
we are trying to put a country id in a field that should receive a
'res.country' record.

To fix this bug, we change the call of function read_search by a search
that will return a recordset.

Bug introduced in rev https://github.com/odoo/odoo/commit/1b59643d4b96195edcdbe1b1168a11a3b6d85483
2016-09-09 15:39:40 +02:00
Martin Trigaux a5125cd1c4 [FIX] account: add action on currencies menu
The action was never there but added by overwrite in sale_teams which (wrongly)
shared the same ID. After 11812b0 which splits the menus, this menus had no
longer an action added by sale_team module.
2016-09-09 15:29:58 +02:00
Martin Trigaux f0a59c5f93 [IMP] account: reorder menus with their hierachical order
To understand which menu is below which
2016-09-09 15:29:58 +02:00
Christophe Simonis dc4d6b6a7a [MERGE] forward port branch saas-10 up to e1bd405 2016-09-09 15:14:39 +02:00
Pierre Masereel 9deb7eb981 [FIX] product: error during migration
When we create a 'product.product', the 'lst_price' entered is
not saved. This is due to the 'inverse' function of the field
named '_set_product_price' which is shared with 'price' and
'lst_price' and uses 'price' to set the value, even if its called
by 'lst_price' field.

Before the migration in new API, it was possible to have the same
inverse fucntion for different fields because the value was passed as param
to the function. In the new API, we cannot because we have to get the
value from the field.

To fix this error, we had to duplicate function '_set_product_price'
in 'set_product_lst_price' to have on function by field, and use the
value correspondig to the field.

Introducied in rev: https://github.com/odoo/odoo/commit/1aa5bc0fdfa402ac7cccbc3a7203ec5050f6339b
2016-09-09 14:27:56 +02:00
qsm-odoo 059ad64cea [FIX] web_tour: clear inconsistent localstorage keys
When users switch from one version to another, the localstorage is not
cleared and users can get errors because the tour manager is trying to
load steps (according to the localstorage content) which could not
exist anymore.

This could also happen when a module which extends another module tour
is installed.
2016-09-09 12:01:24 +02:00
qsm-odoo b5f7b49ff8 [FIX] web_tour: clear inconsistent localstorage keys
When users switch from one version to another, the localstorage is not
cleared and users can get errors because the tour manager is trying to
load steps (according to the localstorage content) which could not
exist anymore.

This could also happen when a module which extends another module tour
is installed.
2016-09-09 11:57:27 +02:00
Christophe Simonis e1bd405d8c [MERGE] forward port branch 9.0 up to af87c57 2016-09-09 11:49:48 +02:00
Christophe Simonis af87c57e51 [MERGE] forward port branch saas-6 up to f98665f 2016-09-09 11:26:15 +02:00
Christophe Simonis f98665f9b6 [MERGE] forward port branch 8.0 up to b17b2a2 2016-09-09 10:52:34 +02:00
Nicolas Lempereur 66de0ea75a [FIX] website_sale: saved shipping country/state
When selectionning a saved shipping address when setting the shipping
address of an ecommerce order, the country and state should be set
accordingly.

unrelated issue noticed when testing e0d4dd01cc
2016-09-09 10:13:28 +02:00
Yannick Tivisse 716128598a [FIX] website_project, website_sale: Compute correctly emails notification group
If a user is not set into a notification group, don't add him automatically in the done_ids
2016-09-09 10:06:17 +02:00
Nicolas Lempereur e0d4dd01cc [FIX] website_sale: toggle shipping state display
In 1ef52c9c the code displaying state of a given country was improved
for some incompatibilities.

But, if when setting the billing informations we choose to create a new
shipping address, the shipping state* would not be displayed even when it
should be (currently, if the shipping country is Australia or U.S.).

opw-687948

*a state being a subdivision of a country
2016-09-09 09:45:00 +02:00
Olivier Dony b17b2a2eb7 [FIX] http: do not allow passing spaces around db in URL param
Until 9.0 our psycopg2 DSN connection strings do not allow having
spaces within the db name, and passing some can cause duplicate
registries to be loaded.

Stripping spaces is a simple workaround until we actually support
spaces within db names.

Fixes #13078
2016-09-09 09:28:10 +02:00
Yannick Tivisse c85b6ccbd0 [FIX] hr_expense: Allow line modifications on refused expense report
Issue: An employee submits an expense report and this report is refused by the HR or the accountant (Wrong amount, one line will not be paid,...). Currently the expense fields are readonly except in draft state. In our case, the employee is unable to modify a line and resubmit the expense report.

This fix remove the readonly state on the expense line in refused state.
2016-09-09 08:36:31 +02:00
Olivier Dony 975cb36cef [IMP] qweb: remove unused imports in generated ast
Those were apparently used by an earlier implementation
of the foreach directive, but now unused after revision
 https://github.com/odoo/odoo/commit/b3302398bc79f107588ff755666bf74a2ef4e11a
2016-09-08 19:00:30 +02:00
Fabien Meghazi 1d4f2a59e1 [FIX] point_of_sale: bug in decimal.precision lookup 2016-09-08 18:09:05 +02:00
Martin Trigaux ba070781b8 [FIX] point_of_sale: restored removed report
The sale of the day report was removed during new api migration as it was
thought, it could be replaced by pivot view.
Due to the lack of some options and the problems to be printed, create similar
report.

This commit adds a report in the PoS interface to be printed on ESC/POS printers
and add a JS wizard to restore it in the backend with date selection.

The wizard is made in a new web widget because adding a wizard requires changes
not compatible with stable version.
Creating a proper wizard should be done in v10

opw-681833
2016-09-08 16:37:01 +02:00
Denis Ledoux 6415e761fa [FIX] note: fix partners images in note kanban
Since 9.0, `message_follower_ids` are
`mail.followers` records,
the partner are in `message_partner_ids`.

Therefore, the partner images displayed in the note kanban
were not the images of the right partners.

opw-688100
2016-09-08 16:32:56 +02:00
Denis Ledoux c86201c553 [FIX] mrp: fix BOM smart button for product variants
Do not force the `search_default_product_id`to the current
product variant, as the domain just above could return a
result, a BOM which is set for the template of this variant
but not for the variant istself, that this filter would hide.

This is following the revision
52cba1b563

Because of this, a product variant smart button could
display "1 BOM", but when clicking on it, none would be displayed,
which is not user-friendly at all.

opw-687912
2016-09-08 16:01:42 +02:00
Fabien Meghazi ff4549ec6a [FIX] point_of_sale: bug in decimal.precision lookup 2016-09-08 15:34:34 +02:00
Fabien Meghazi 03b0fe1d64 [FIX] point_of_sale: the POS html bootstrap javascript not contain db_info 2016-09-08 15:16:21 +02:00
Martin Geubelle fddd748156 [FIX] account_asset: allow deferred revenue on one month
One could want to use deferred revenue for revenues invoiced in February
but the services are provided in June (e.g.)
2016-09-08 12:24:39 +02:00
Christophe Simonis 7dc7c306c1 [FIX] odoo.py: handle call without arguments 2016-09-08 11:54:15 +02:00
Martin Geubelle 7fe89d08b3 [FIX] account_asset: asset in company currency
When the asset is created from an invoice line it should be in company currency and not in invoice currency
2016-09-08 11:21:29 +02:00
Martin Geubelle f5e3a52236 [FIX] account_asset: generated account.move.line name
If `method_time` is set to end, `method_number` is not the reference for the number of depreciation lines.
Take directly the number of depreciation lines is more correct.
2016-09-08 11:19:08 +02:00
qdp-odoo d08c947440 [FIX] account_tax_cash_basis: set the entry date for tax_cash_basis as the maximum of involved operations, instead of the reconciliation date.
Also refactored account_tax_cash_basis and account_tax_exigible to have the minimum code lines in the bugfix module
2016-09-08 10:46:46 +02:00
Nicolas Martinelli 86eee6246b [FIX] hr_timesheet: task creation on project
When creating a task on a project which is accessible to followers only,
an access error pops up.

This comes from the `subtask_project_id` field on the task, which is a
related to a `project.project` field. When a task is created, the ORM
tries to write on the related field, and hence on `project.project`.

opw-687252
2016-09-08 10:43:25 +02:00
Martin Geubelle 3f0fc7219c [REF] sales_team, web: remove sales_team_dashboard view
The view `sale_team_dashboard` (which extends kanban) has been removed
and replaced by a default kanban view.

To use it in the ViewManager, an option `js_class` is added
on the arch description and this class be used as the View.

This avoids creating a new view type just for one view.
2016-09-08 09:15:30 +02:00
Simon Lejeune 76c7041c5b [REF] server: remove the openerp-gevent file
* use a special arg in odoo.py
* note that the previous implementation was relying on the fact that
  the openerp-gevent file was located in the same directory than the
  odoo.py file. This was no longer true since rev a0eb172cab
  This commit brings back this behavior.
2016-09-07 18:09:46 +02:00
Denis Ledoux 49b807d877 [FIX] product: force empty context in product_template_action_all
This revision removes the context from the action:
afd29b277d

The thing is, in saas-11, the `product.template.type`
no longer has in its selection values `product`,
in the module `product`,
there is only `consu` and `service`.
the type `product` is added in the module `stock`

Therefore, this `product` cannot be used as default value
when only the module `product` is installed and not
`stock`.

We force the empty context for migration purposes,
so bases in ealier releases than saas-11 do not have
`'default_type': 'product'` within this action
when they are upgraded to saas-11.

opw-687986
2016-09-07 18:04:48 +02:00
qsm-odoo e0784ee0b7 [FIX] web_tour: lower step delay to 10ms (instead of 300ms)
300ms was used during development but now 10ms seems to be high enough
to prevent bugs.
2016-09-07 17:37:23 +02:00
Cedric Snauwaert 2e72e4f27f [FIX] res_currency: wrong import that broke reconciliation view
fix error introduce in commit 7596fa3ee3
The get_format_currencies_js_function return javascript code and the openerp.web should not have been replaced by odoo.web. The result is that reconciliation view was broken.
2016-09-07 16:30:38 +02:00
Martin Trigaux d22676dc07 [FIX] typo 2016-09-07 16:19:39 +02:00
Yannick Tivisse f7495294cb [FIX] website_quote: fix due to module migration
Coming from https://github.com/odoo/odoo/commit/232eea36ab98eb268f712b2083c637a7cb463e2c
2016-09-07 15:50:08 +02:00
Raphael Collet 5b99b36022 [FIX] ir_attachment: implement garbage collection of the filestore 2016-09-07 14:58:06 +02:00
Raphael Collet cdd03c3afe [FIX] in all python code, rename openerp to odoo 2016-09-07 14:45:08 +02:00
Thibault Delavallée 8802994964 [FIX] hr_holidays: take employee resource when computing days of leaves request 2016-09-07 13:30:53 +02:00
Nicolas Martinelli a666cd06bd [FIX] point_of_sale: round globally
Commit 06754b32 brings an inconsistency between the PoS frontend, the
pos_order and the account_invoice tax calculation. Part of the commit is
correct since it corrects the matching between the `compute_all`
methods, however.

opw-680891
2016-09-07 13:08:31 +02:00
qsm-odoo 8476d99101 [FIX] website: make the well snippet grow when putting an image in it 2016-09-07 13:00:02 +02:00