Commit Graph
107816 Commits
Author SHA1 Message Date
qdp-odoo 123ee27e40 [FIX] account: allow to force the 'tax_line_id' and 'tax_ids' fields of account.move.line by a write.
This restriction in the code has no reason and is already enforced by a readonly=1 attribute on those fields in the account.move.line.form view
2016-08-10 14:44:56 +02:00
Richard Mathot 0bfa7e390d [FIX] hr_payroll_account: put the with_context at the right place 2016-08-10 14:33:59 +02:00
Jainik Patel 6a434fae8a [IMP] project: split rating on issue in its own option 2016-08-10 14:15:31 +02:00
Richard Mathot 07c0814b56 [FIX] hr_payroll_account: [] are not ()
In memory of Mariner 1.
2016-08-10 13:46:24 +02:00
Raphael Collet 8acfb3afcd [MIG] test_workflow: convert code to the new API 2016-08-10 13:14:16 +02:00
Raphael Collet b225d1119b [MIG] test_uninstall: convert code to the new API 2016-08-10 13:14:16 +02:00
Raphael Collet 2513fab6bd [MIG] test_limits: convert code to the new API 2016-08-10 13:14:16 +02:00
Raphael Collet bd00fcd5b1 [MIG] test_exceptions: convert code to the new API 2016-08-10 13:14:16 +02:00
Raphael Collet 94e82753ac [MIG] test_documentation_examples: convert code to the new API 2016-08-10 13:14:16 +02:00
Raphael Collet 64b77b1a72 [MIG] test_converter: convert code to the new API 2016-08-10 13:14:15 +02:00
Raphael Collet 45a52e02c6 [MIG] test_convert: convert code to the new API 2016-08-10 13:14:15 +02:00
Raphael Collet 89438c11e0 [MIG] test_assetsbundle: convert code to the new API 2016-08-10 13:14:15 +02:00
Raphael Collet d5023d8d6b [MIG] test_access_rights: convert code to the new API 2016-08-10 13:14:15 +02:00
Yannick Tivisse 13b9982c62 [REM] report_webkit: Remove the module
The webkit reports have to be migrated in qweb from now.
2016-08-10 13:06:14 +02:00
Nicolas Martinelli 3375027421 [IMP] doc: translate consolidation label
The `consolidation_label` attribute is replaced by `string`. This way,
the label is taken into account by the translation tools.

This is the modification of the documentation regarding the Enterprise
improvement.

opw-683601
2016-08-10 13:04:39 +02:00
Yannick Tivisse 0b55f0521f [FIX] marketing_campaign: Use correct field name in campaign.analysis 2016-08-10 12:41:55 +02:00
Nicolas Martinelli b2fb497a4c [FIX] account: overdue balance
The overdue balance on the partner form takes into account the invoices
which are due today. It shouldn't be the case.

opw-685777
2016-08-10 12:15:06 +02:00
Goffin Simon 414ad99a92 [FIX] web: unchecked radio button
Before rendering the radio button, the radio button must be unchecked
to ensure to take the last value checked.

Step to reproduce:

-From main menu, click on 'Contacts'
-Click on 'Create'
-Select 'Company' value on company_type field
-Save or not the contact
-Return in the main contact view (click on breadcrumbs)
-Click on 'Create'

Bug:

The default value on company_type field is 'Company'
but the fields that should be hidden are visible (example : parent_id field)

After the fix:

The value of company_type field is 'individual'

opw:684847
2016-08-10 11:37:52 +02:00
qsm-odoo 369bcf610c [FIX] web_editor: paragraph dropdown style
Before commit a8ee18e172, the paragraph alignment dropdown menu was
too large for its content, so it was ugly. After that commit, it became
too small for its content, which is even more ugly.

This fix sets the width of this specific dropdown so that its content
fills exactly in (as with original summernote).
2016-08-10 11:30:33 +02:00
Yannick Tivisse 656d7124aa [FIX] account: This is not the debug point you are looking for
You never saw this debug point. You never heard about the fact that someone
could have placed a debug point somewhere in the code. It is not what you think.
Nobody would do that. If one day you got this feeling it's probably Martin Trigaux
the responsible.
2016-08-10 11:26:53 +02:00
Kim Huysmans b868ae51b6 [CLA] corporate signature for BeOpen
Closes #13072
2016-08-10 11:25:24 +02:00
Yannick Tivisse 173550dcde [FIX] mrp: Call _compute_quantity with its new signature 2016-08-10 11:13:33 +02:00
Yannick Tivisse a3f83916d0 [FIX] report: Pass correctly the docids to render_html method
In the 'get_html' method, the report is using a custom model to render its html,
we should use its own 'render_html' method to generate the report. During the
module migration, we replaced
'report_model.render_html(cr, uid, ids, data=data, context=context)'
by
'report_model.render_html(data=data)'

The new API signature of 'get_html' is

    @api.model
    def get_html(self, docids, report_name, data=None):

That way, 'render_html' doesn't receive docids anymore when called. We should do instead

    if report_model is not None:
        return report_model.browse(docids).render_html(data=data)

As render_html is an api.multi method, this is all wrong too, because we'll send a
browse record with the custom report model to the render_html method, to use the
ids with 'self.ids' that are absolutely not corresponding to the report model but to
to the record model we want to print (an invoice for example).

In old API style we were sending a list of ids, but it's not correct to keep the same
behavior by sending a browse record with only the ids relevant. We have also to
change render_html method decorator to @api.model with a new signature

    @api.model
    def render_html(self, docids, data=None):

And replace the call to render_html by

    if report_model is not None:
        return report_model.render_html(docids, data=data)

In the case the report is printed from a wizard, this is sufficient because the ids
are taken from the active_ids in context, or in data.

In the case the report is printed from a simple action, we should replace the occurence
of 'self.ids' (which doesn't mean anything) to 'docids'

This fix doesn't solve the printing issues for the custom accounting reports, because
the method get_pdf has been reimplemented in the module account_reports.
2016-08-10 11:13:33 +02:00
Yannick Tivisse 2fcbf1258d [MERGE] sale: Migrate to new API 2016-08-10 11:01:10 +02:00
fwi-odoo ca32071b4a [MIG] sale: Migrate to new API 2016-08-10 11:00:21 +02:00
fwi-odoo f3d715ca94 [SPLIT] sale: Split files according to related model 2016-08-10 11:00:21 +02:00
fwi-odoo 084b5534b2 [MOV] sale: Merge xml files when related to same model
Merge sale_layout_category_data.xml into sale_data.xml
Merge sale_team_dashboard_views into sales_team_views.xml
2016-08-10 11:00:21 +02:00
fwi-odoo a33e808ca6 [MOV] sale: re-organise directory structure according to new API guidelines 2016-08-10 11:00:21 +02:00
keyur gajjar dba1a641e3 [IMP] website_sale_digital: add message when no record
Proper message should be displayed when no records in
attachments kanban view when we click on 'File' stat
button on product form view.
2016-08-10 10:50:07 +02:00
Kinjal Mehta 4c419f2bc1 [IMP] report: widen company address space on reports
Change the external_layout_header, with the use of
span tag and display inline-block property instead
of div tag, because without using it, the address
under-line occupied the whole col-xs-6 block, for
small address also. By using display inline-block
the length of address underline will same as length
of address. And col-xs-6 will increase the address
space for log address lines.
2016-08-10 09:55:05 +02:00
Mansi Gandhi 6caea2a938 [IMP] sale: add install option for sale_order_dates 2016-08-10 09:26:07 +02:00
Adrien Dieudonne a5eb720875 [FIX] web: check if second date exists in search_filters
After commit 6739e10, we have two widgets to be able to choose
two dates according to the operator (e.g. between).
So, the second widget is not always available.

'toString' generates the string to put in the facet and should
convert the second date only if the second widget exists.

Before this commit, it was not possible to make search filters with
only one date because we try to get value of widget that does not exist.
2016-08-10 09:11:23 +02:00
Nicolas Martinelli c819b88063 [FIX] web: FieldCharDomain value
An issue occurs in the following use case:
- Create an automated action
- Choose a Related Document Model
- Select records to filter (click on "Select Records")
- Do not save, but cancel instead
- Create an automated action once again

The filter domain keeps the same value than previously, forcing the user
to refresh the page to get rid of it.

opw-683214
2016-08-10 08:31:01 +02:00
Aaron Bohy 5d7be21e28 [FIX] project: task form view: many2one field's domain
Commit 9b69184ff. removed field 'state' of model 'project.project', and
converts domains using it to use field 'active' instead. However, the domain
of the many2one field in the task form view hasn't been correctly converted
(['state', 'not in' , ['closed', 'cancelled']] should be ['active', '=', True]).
2016-08-10 08:15:47 +02:00
Aristobulo Meneses bfdf5a6e12 [FIX] cli/server: handle comma-separated db_name config properly
The db_name parameter passed in command-line (-d) or in configuration file,
supports a list of database names separated by commas, in order to
preload them. The WorkerCron processes will also respect this list and only
connect to the specified database(s).

As of Odoo 9 the server also automatically initializes a new database
if the one passed via `db_name` does not exist or is not initialized.
This code did not properly handle multiple comma-separated value,
and created an unitialized database named `a,b` when db_name was set
to `a,b`.

Fixes #13079
Closes #13094
2016-08-09 20:12:33 +02:00
qsm-odoo e86fb5ee37 [FIX] website_blog: do not show current blog post as next post
At the bottom of each blog post there is a link to the next blog post
of the blog. If the current blog post is the last, the next blog post
which appears is the first one, which is ok. However, if there is only
one blog post in the blog, when viewing it, the next blog post which
was proposed was the current one (now nothing is proposed as next blog
post anymore).
2016-08-09 17:16:21 +02:00
Mitali Patel 0762e4cc2d [IMP] Stock: show pivot view in inventory valuation 2016-08-09 16:50:22 +02:00
jpr-odoo 521a47f8b8 [IMP]account: wizard view improved. 2016-08-09 16:37:14 +02:00
Christophe Simonis e7c9f57623 [FIX] sale: avoid creating records belonging to other modules 2016-08-09 16:19:29 +02:00
Christophe Simonis 57a20c49cd [FIX] sale: remove duplicated access rule 2016-08-09 16:19:00 +02:00
keyur gajjar a05c152853 [IMP] stock: show Force Availability button for managers only 2016-08-09 15:50:35 +02:00
Martin Trigaux fe34db34bc [IMP] point_of_sale: create a partner with empty fields
When creating a partner, the fields where the information is not specified were
filled with an empty string value.
The empty string value is not ideal as prevents to use filters like "email not
set" and forces to use more complexe domain "... or email = ''"

Instead, set the value false for the fields were nothing is provided (same
behaviour as backend web client).

Remove the fields.barcode overwrite to empty string as it is probably an
unintentional side effect of 3b33e5c3.

opw-684902
2016-08-09 15:32:23 +02:00
Goffin Simon bb72dea98d [FIX] account: return of product with unit price = 0 and fixed tax
Use copysign to take into account the sign of the base amount which includes the sign
of the quantity and the sign of the price_unit
Amount is the fixed price for the tax, it can be negative
Base amount included the sign of the quantity and the sign of the unit price and when
a product is returned, it can be done either by changing the sign of quantity or by changing the
sign of the price unit.
When the price unit is equal to 0, the sign of the quantity is absorbed in base_amount then
a "else" case is needed.

opw:684459
2016-08-09 15:06:58 +02:00
Kinjal Mehta 08d51a7c79 [IMP] hr_holidays: raise date consistency warning on save only 2016-08-09 14:58:24 +02:00
Simon Lejeune c79ba8f785 [FIX] web_editor: test ui should be in post install
This test is ran in the backend and, if we do not mark it as post
install, the dependencies of the web module are not installed.
The webclient will then errors like "View type 'kanban' is not present
in the view registry".
2016-08-09 14:39:20 +02:00
Olivier Dony b755f856ba [IMP] website_project_issue: show issue description in portal when non-empty 2016-08-09 14:24:17 +02:00
Olivier Dony 34e7deb0d4 [FIX] payment_ogone: correctly handle tx error status
Transaction status "0" is explicitly defined for
invalid or incomplete transactions. It must not be
treated as a delayed status, but as a permanent
failure.

Ref: https://payment-services.ingenico.com/int/en/ogone/support/guides/user%20guides/statuses-and-errors/statuses

In addition, the delay for re-checking a delayed
transaction status was not meant to be set to
500 seconds but to 500 milli-seconds.
2016-08-09 14:24:17 +02:00
Olivier Dony 5443d47cbf [FIX] note: add missing import for _
Import was dropped at b3b0b23fe2 while
migrating to new API.
2016-08-09 14:24:17 +02:00
Nicolas Martinelli 6c9b6ebdf4 [FIX] sale_stock: units in warning message
opw-685095
2016-08-09 13:35:15 +02:00
Ravi Gohil 8b47073b1e [IMP] anonymization: remove method '_raise_after_history_update',
This method is not very useful. Why ? When any exception is raised, odoo will rollback
all the transaction which were not committed, hence the purpose of the method won't be
served, which was, to update the 'history' record which was created before an invalid
action was performed.
2016-08-09 13:18:36 +02:00