Commit Graph
104508 Commits
Author SHA1 Message Date
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
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
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
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
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
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
Kinjal Mehta 08d51a7c79 [IMP] hr_holidays: raise date consistency warning on save only 2016-08-09 14:58:24 +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
Ravi Gohil 946a19d9be [FIX] anonymization: Make anonymization supported for 'monetary' type fields. 2016-08-09 13:18:36 +02:00
Ravi Gohil 3cd6887594 [IMP] anonymization: Clean data file,
- removed fields of 'res.partner.job' and 'res.partner.contact' models
    - removed non-stored compute field 'base' of model 'account.invoice.tax' from anonymization list
    - removed fields 'tax_amount' and 'amount_taxed' which no more exists in 'account.move.line' model
    - removed field 'check_total' which no more exists in 'account.invoice' model
    - removed field 'partner_phone' which no more exists in 'crm.phonecall' model
2016-08-09 13:18:36 +02:00
Thibault Delavallée 8b6f7e1fe6 [FIX] various: fix fields index parameter in new API still called select 2016-08-09 12:28:03 +02:00
Yannick Tivisse d61e143ed2 [MERGE] anonymization: Migrate to new API 2016-08-09 11:48:01 +02:00
Yannick Tivisse 6145e7d453 [FIX] google_drive: Remove remaining onchange in view 2016-08-09 11:47:35 +02:00
Jigar Patel 94ba7cd75e [MIG] anonymization: Migrated to new api. 2016-08-09 11:47:34 +02:00