Commit Graph
106440 Commits
Author SHA1 Message Date
Nicolas Martinelli 19116cc878 [FIX] stock: unreserve move only if reserved quants
An issue occurs in the following use case:
- Enable "Bring goods to output location before shipping (Pick + Ship)"
- Create a SO with 2 lines. 2 Deliveries are created, Pack and Ship.
- Go to "Procurement Exceptions", and cancel one of the 2 lines
- Go to the OUTgoing shipping, "Force Availability", and "Validate"

An error occurs: "Cannot unreserve a done move". The system tries to
unreserve a move which is actually cancelled.

Actually, it should not be necessary to unreserve this move, since no
quants were actually reserved in a first place. The fix ensures that, in
this situation, we don't try to unreserve a move with no quant reserved.
This should be safe to do it in all cases, but better be safe by adding
the condition `if 'no_state_change' in context` to impact only this
specific use case.

opw-685650
2016-08-10 16:09:57 +02:00
Thibault Delavallée 6dbe9e7671 [MERGE] various: finish migration of most addons
Containing

 * migrate remaining code
 * migrate server actions
 * remove dead code
 * fix some issues related to old api / new api migration
 * update openerp imports and clean them a bit
 * rename openerp nodes to odoo in xml files
2016-08-10 15:49:13 +02:00
Thibault Delavallée efd55ab8a5 [REF] various: rename openerp node to odoo in xml files 2016-08-10 15:48:10 +02:00
Thibault Delavallée fff2201d3f [MOV] mrp: rename report files according to guidelines 2016-08-10 15:48:10 +02:00
Thibault Delavallée 52467414a7 [MIG] mrp: migrate remaining code in new API and transform rml report into standard report
rml_parse report bom_structure is translated into standard web report
2016-08-10 15:48:09 +02:00
Thibault Delavallée 90bbce6fba [MIG] website_theme_install: migrate server actions to new API 2016-08-10 15:48:09 +02:00
Thibault Delavallée 78797a4b17 [MIG] website_forum: migrate remaining message_post and update code accordingly 2016-08-10 15:48:09 +02:00
Thibault Delavallée 3f2539bc60 [MIG] website: migrate server actions to new API 2016-08-10 15:48:09 +02:00
Thibault Delavallée bfef1b7407 [MIG] project: migrate server actions in new API 2016-08-10 15:48:08 +02:00
Thibault Delavallée 3a1f84ff27 [MIG] procurement: migrate remaining code in old API 2016-08-10 15:48:08 +02:00
Thibault Delavallée 447ef04450 [MIG] point_of_sale: migrate remaining code in old API 2016-08-10 15:48:08 +02:00
Thibault Delavallée 3e7179d5dd [MIG] payment: migrate remaining code in old API 2016-08-10 15:48:08 +02:00
Thibault Delavallée b975d62c33 [MIG] lunch: migrate server actions in new API 2016-08-10 15:48:08 +02:00
Thibault Delavallée 2ce176694d [MIG] hr_recruitment: migrate remaining code in old API 2016-08-10 15:48:07 +02:00
Thibault Delavallée 0cb0fec177 [MIG] hr_expense: migrate tests to new API 2016-08-10 15:48:07 +02:00
Thibault Delavallée e33435daa9 [MIG] mail: migrate remaining code in old API 2016-08-10 15:48:07 +02:00
Thibault Delavallée c8a313d51e [IMP] various: use odoo for imports instead of openerp and update class names 2016-08-10 15:48:07 +02:00
Thibault Delavallée 5ce159924c [REM] website_mail: remove dummy void tests 2016-08-10 15:48:06 +02:00
Thibault Delavallée bc022ddd0b [FIX] marketing_campaing: remove old API parameters on new API method 2016-08-10 15:48:06 +02:00
Thibault Delavallée 09c47c9a93 [FIX] mail: propagate method name change
message_get_partner_info_from_emails does not exist anymore. It is now called
message_partner_info_from_emails.
2016-08-10 15:48:06 +02:00
Thibault Delavallée 3f15922c21 [CLN] mail: remove compatibility methods on mail_template and update last addon using it 2016-08-10 15:48:05 +02:00
Srushti Patel d8227e782b [IMP] stock,product_expiry: display expiry date of product in delivery slip 2016-08-10 15:04:37 +02:00
Goffin Simon 43e25b336d [FIX] account_voucher: unreconcile with deleted journal items
Inspired from e2d16ea04a

When cancelling a voucher from a customer payment receipt,
the voucher lines linked to the deleted account move lines
have to be updated by clicking on button "unreconcile".

opw:683258
2016-08-10 15:04:30 +02:00
Tanguy Charlier eef14dd5cb [FIX] hr_timesheet: Hide timesheets on tasks w/o project
Since it is not possible to create a timesheet entry on a task without a project_id,
the timesheets page on the task form view will be hidden on such tasks.
This prevents the user from trying to create a timesheet entry on such a task and
receive a not so transparent message like: mandatory field is not set: [object with reference: account_id - account.id]
2016-08-10 14:53:40 +02:00
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