Merge lp:~camptocamp/openobject-addons/trunk-proposed-cleanups into lp:openobject-addons

Proposed by Alexandre Fayolle - camptocamp
Status: Needs review
Proposed branch: lp:~camptocamp/openobject-addons/trunk-proposed-cleanups
Merge into: lp:openobject-addons
Diff against target: 16860 lines (+2335/-2214) (has conflicts)
500 files modified
account/account.py (+32/-60)
account/account_analytic_line.py (+3/-5)
account/account_bank.py (+2/-2)
account/account_bank_statement.py (+4/-6)
account/account_cash_statement.py (+5/-9)
account/account_financial_report.py (+2/-3)
account/account_invoice.py (+6/-7)
account/account_move_line.py (+1/-2)
account/company.py (+2/-3)
account/edi/invoice.py (+4/-4)
account/installer.py (+2/-3)
account/ir_sequence.py (+3/-5)
account/partner.py (+5/-9)
account/product.py (+3/-5)
account/project/project.py (+3/-5)
account/project/wizard/account_analytic_balance_report.py (+2/-3)
account/project/wizard/account_analytic_chart.py (+2/-3)
account/project/wizard/account_analytic_cost_ledger_for_journal_report.py (+2/-3)
account/project/wizard/account_analytic_cost_ledger_report.py (+2/-3)
account/project/wizard/account_analytic_inverted_balance_report.py (+2/-3)
account/project/wizard/account_analytic_journal_report.py (+2/-3)
account/project/wizard/project_account_analytic_line.py (+2/-3)
account/report/account_analytic_entries_report.py (+2/-3)
account/report/account_entries_report.py (+2/-3)
account/report/account_invoice_report.py (+2/-3)
account/report/account_report.py (+9/-15)
account/report/account_treasury_report.py (+2/-3)
account/res_config.py (+2/-2)
account/res_currency.py (+2/-3)
account/wizard/account_automatic_reconcile.py (+2/-3)
account/wizard/account_change_currency.py (+2/-3)
account/wizard/account_chart.py (+2/-3)
account/wizard/account_financial_report.py (+2/-3)
account/wizard/account_fiscalyear_close.py (+2/-3)
account/wizard/account_fiscalyear_close_state.py (+2/-3)
account/wizard/account_invoice_refund.py (+2/-3)
account/wizard/account_invoice_state.py (+3/-5)
account/wizard/account_journal_select.py (+2/-3)
account/wizard/account_move_bank_reconcile.py (+2/-3)
account/wizard/account_move_line_reconcile_select.py (+2/-3)
account/wizard/account_move_line_select.py (+2/-3)
account/wizard/account_move_line_unreconcile_select.py (+2/-3)
account/wizard/account_open_closed_fiscalyear.py (+2/-3)
account/wizard/account_period_close.py (+2/-3)
account/wizard/account_reconcile.py (+3/-5)
account/wizard/account_reconcile_partner_process.py (+2/-3)
account/wizard/account_report_account_balance.py (+2/-3)
account/wizard/account_report_aged_partner_balance.py (+2/-3)
account/wizard/account_report_central_journal.py (+2/-3)
account/wizard/account_report_common.py (+2/-3)
account/wizard/account_report_common_account.py (+2/-3)
account/wizard/account_report_common_journal.py (+2/-3)
account/wizard/account_report_common_partner.py (+2/-3)
account/wizard/account_report_general_journal.py (+2/-3)
account/wizard/account_report_general_ledger.py (+2/-3)
account/wizard/account_report_partner_balance.py (+2/-3)
account/wizard/account_report_partner_ledger.py (+2/-3)
account/wizard/account_report_print_journal.py (+2/-3)
account/wizard/account_state_open.py (+2/-3)
account/wizard/account_subscription_generate.py (+2/-3)
account/wizard/account_tax_chart.py (+2/-3)
account/wizard/account_unreconcile.py (+3/-5)
account/wizard/account_use_model.py (+2/-3)
account/wizard/account_validate_account_move.py (+3/-5)
account/wizard/account_vat.py (+2/-3)
account/wizard/pos_box.py (+2/-4)
account_analytic_analysis/account_analytic_analysis.py (+4/-7)
account_analytic_analysis/cron_account_analytic_account.py (+2/-3)
account_analytic_analysis/res_config.py (+2/-2)
account_analytic_default/account_analytic_default.py (+7/-11)
account_analytic_plans/account_analytic_plans.py (+19/-33)
account_analytic_plans/wizard/account_crossovered_analytic.py (+2/-3)
account_analytic_plans/wizard/analytic_plan_create_model.py (+2/-3)
account_anglo_saxon/invoice.py (+3/-3)
account_anglo_saxon/product.py (+3/-5)
account_anglo_saxon/purchase.py (+2/-3)
account_anglo_saxon/stock.py (+2/-3)
account_asset/account_asset.py (+6/-11)
account_asset/account_asset_invoice.py (+3/-5)
account_asset/report/account_asset_report.py (+2/-3)
account_asset/wizard/account_asset_change_duration.py (+2/-3)
account_asset/wizard/wizard_asset_compute.py (+2/-3)
account_bank_statement_extensions/account_bank_statement.py (+5/-8)
account_bank_statement_extensions/res_partner_bank.py (+2/-3)
account_bank_statement_extensions/wizard/cancel_statement_line.py (+2/-3)
account_bank_statement_extensions/wizard/confirm_statement_line.py (+2/-3)
account_budget/account_budget.py (+7/-11)
account_budget/report/crossovered_budget_report.py (+0/-4)
account_budget/wizard/account_budget_analytic.py (+2/-3)
account_budget/wizard/account_budget_crossovered_report.py (+2/-3)
account_budget/wizard/account_budget_crossovered_summary_report.py (+2/-3)
account_budget/wizard/account_budget_report.py (+4/-5)
account_check_writing/account.py (+3/-5)
account_check_writing/account_voucher.py (+2/-3)
account_check_writing/wizard/account_check_batch_printing.py (+2/-3)
account_followup/account_followup.py (+5/-5)
account_followup/report/account_followup_report.py (+2/-3)
account_followup/wizard/account_followup_print.py (+8/-11)
account_payment/account_invoice.py (+2/-3)
account_payment/account_move_line.py (+2/-3)
account_payment/account_payment.py (+4/-7)
account_payment/wizard/account_payment_order.py (+2/-3)
account_payment/wizard/account_payment_pay.py (+2/-3)
account_payment/wizard/account_payment_populate_statement.py (+2/-3)
account_sequence/account_sequence.py (+4/-7)
account_sequence/account_sequence_installer.py (+2/-3)
account_test/account_test.py (+2/-3)
account_voucher/account_voucher.py (+37/-12)
account_voucher/invoice.py (+2/-3)
account_voucher/report/account_voucher_sales_receipt.py (+2/-3)
account_voucher/wizard/account_statement_from_invoice.py (+2/-3)
analytic/analytic.py (+22/-3)
analytic_contract_hr_expense/analytic_contract_hr_expense.py (+2/-3)
analytic_user_function/analytic_user_function.py (+5/-5)
anonymization/anonymization.py (+5/-5)
audittrail/audittrail.py (+7/-9)
audittrail/wizard/audittrail_view_log.py (+2/-3)
auth_crypt/auth_crypt.py (+2/-2)
auth_ldap/users_ldap.py (+8/-11)
auth_oauth/auth_oauth.py (+2/-2)
auth_oauth/res_config.py (+1/-1)
auth_oauth/res_users.py (+1/-1)
auth_oauth_signup/res_users.py (+1/-1)
auth_openid/res_users.py (+2/-3)
auth_signup/res_config.py (+1/-1)
auth_signup/res_users.py (+1/-1)
base_action_rule/base_action_rule.py (+3/-6)
base_calendar/base_calendar.py (+13/-22)
base_calendar/crm_meeting.py (+8/-3)
base_gengo/ir_translation.py (+1/-1)
base_gengo/res_company.py (+1/-1)
base_gengo/wizard/base_gengo_translations.py (+2/-2)
base_iban/base_iban.py (+2/-3)
base_report_designer/base_report_designer.py (+2/-3)
base_report_designer/installer.py (+2/-3)
base_report_designer/openerp_sxw2rml/openerp_sxw2rml.py (+1/-2)
base_report_designer/wizard/base_report_designer_modify.py (+8/-15)
base_setup/base_setup.py (+2/-2)
base_setup/res_config.py (+3/-3)
base_status/base_stage.py (+1/-1)
base_status/base_state.py (+1/-1)
base_vat/base_vat.py (+2/-3)
base_vat/res_company.py (+2/-2)
board/board.py (+3/-3)
crm/crm.py (+8/-8)
crm/crm_action_rule.py (+2/-2)
crm/crm_lead.py (+2/-2)
crm/crm_meeting.py (+8/-2)
crm/crm_phonecall.py (+7/-1)
crm/crm_segmentation.py (+2/-4)
crm/report/crm_lead_report.py (+2/-3)
crm/report/crm_phonecall_report.py (+2/-3)
crm/res_config.py (+2/-2)
crm/res_partner.py (+2/-3)
crm/wizard/crm_lead_to_opportunity.py (+3/-3)
crm/wizard/crm_merge_opportunities.py (+2/-2)
crm/wizard/crm_opportunity_to_phonecall.py (+2/-2)
crm/wizard/crm_partner_binding.py (+2/-2)
crm/wizard/crm_phonecall_to_meeting.py (+2/-2)
crm/wizard/crm_phonecall_to_phonecall.py (+2/-2)
crm_claim/crm_claim.py (+29/-3)
crm_claim/report/crm_claim_report.py (+2/-3)
crm_claim/res_config.py (+2/-2)
crm_helpdesk/crm_helpdesk.py (+2/-2)
crm_helpdesk/report/crm_helpdesk_report.py (+2/-3)
crm_partner_assign/partner_geo_assign.py (+5/-9)
crm_partner_assign/report/crm_lead_report.py (+2/-3)
crm_partner_assign/report/crm_partner_report.py (+2/-3)
crm_partner_assign/wizard/crm_forward_to_partner.py (+2/-2)
crm_profiling/crm_profiling.py (+15/-20)
crm_profiling/wizard/open_questionnaire.py (+3/-5)
crm_todo/crm_todo.py (+3/-3)
decimal_precision/decimal_precision.py (+2/-3)
delivery/delivery.py (+4/-7)
delivery/partner.py (+2/-3)
delivery/sale.py (+2/-3)
delivery/stock.py (+5/-9)
document/document.py (+8/-8)
document/report/document_report.py (+3/-3)
document/wizard/document_configuration.py (+2/-3)
document_ftp/ftpserver/abstracted_fs.py (+1/-1)
document_ftp/res_config.py (+2/-2)
document_ftp/wizard/ftp_browse.py (+2/-3)
document_ftp/wizard/ftp_configuration.py (+2/-3)
document_page/document_page.py (+3/-3)
document_page/wizard/document_page_create_menu.py (+2/-2)
document_page/wizard/document_page_show_diff.py (+2/-2)
document_webdav/document_webdav.py (+4/-4)
document_webdav/webdav.py (+1/-1)
document_webdav/webdav_server.py (+0/-2)
edi/edi_service.py (+0/-1)
edi/models/edi.py (+1/-1)
edi/models/res_company.py (+2/-2)
edi/models/res_currency.py (+2/-2)
edi/models/res_partner.py (+2/-2)
email_template/email_template.py (+2/-2)
email_template/res_partner.py (+2/-2)
email_template/wizard/email_template_preview.py (+2/-2)
email_template/wizard/mail_compose_message.py (+1/-1)
event/event.py (+55/-6)
event/report/report_event_registration.py (+2/-3)
event/res_partner.py (+2/-3)
event/wizard/event_confirm.py (+2/-3)
event_moodle/event_moodle.py (+4/-7)
event_sale/event_sale.py (+3/-4)
fetchmail/fetchmail.py (+3/-3)
fetchmail/res_config.py (+3/-3)
fleet/fleet.py (+1/-1)
google_base_account/google_base_account.py (+2/-3)
google_base_account/wizard/google_login.py (+2/-3)
google_docs/google_docs.py (+3/-4)
hr/hr.py (+6/-10)
hr/hr_department.py (+3/-5)
hr/res_config.py (+2/-2)
hr_attendance/hr_attendance.py (+4/-7)
hr_attendance/res_config.py (+2/-2)
hr_attendance/wizard/hr_attendance_bymonth.py (+2/-3)
hr_attendance/wizard/hr_attendance_byweek.py (+2/-3)
hr_attendance/wizard/hr_attendance_error.py (+2/-3)
hr_contract/hr_contract.py (+4/-7)
hr_evaluation/hr_evaluation.py (+7/-12)
hr_evaluation/report/hr_evaluation_report.py (+2/-3)
hr_expense/hr_expense.py (+4/-7)
hr_expense/report/hr_expense_report.py (+2/-3)
hr_holidays/hr_holidays.py (+25/-8)
hr_holidays/report/holidays_summary_report.py (+1/-1)
hr_holidays/report/hr_holidays_report.py (+2/-3)
hr_holidays/wizard/hr_holidays_summary_department.py (+2/-3)
hr_holidays/wizard/hr_holidays_summary_employees.py (+2/-3)
hr_payroll/hr_payroll.py (+14/-27)
hr_payroll/res_config.py (+2/-2)
hr_payroll/wizard/hr_payroll_contribution_register_report.py (+2/-3)
hr_payroll/wizard/hr_payroll_payslips_by_employees.py (+2/-3)
hr_payroll_account/hr_payroll_account.py (+5/-9)
hr_payroll_account/wizard/hr_payroll_payslips_by_employees.py (+2/-3)
hr_recruitment/hr_recruitment.py (+6/-6)
hr_recruitment/report/hr_recruitment_report.py (+2/-3)
hr_recruitment/res_config.py (+2/-2)
hr_recruitment/wizard/hr_recruitment_create_partner_job.py (+2/-3)
hr_recruitment/wizard/hr_recruitment_employee_hired.py (+2/-3)
hr_timesheet/hr_timesheet.py (+6/-7)
hr_timesheet/wizard/hr_timesheet_print_employee.py (+2/-3)
hr_timesheet/wizard/hr_timesheet_print_users.py (+2/-3)
hr_timesheet/wizard/hr_timesheet_sign_in_out.py (+3/-5)
hr_timesheet_invoice/hr_timesheet_invoice.py (+25/-19)
hr_timesheet_invoice/report/hr_timesheet_invoice_report.py (+14/-19)
hr_timesheet_invoice/report/report_analytic.py (+3/-5)
hr_timesheet_invoice/wizard/hr_timesheet_analytic_profit.py (+2/-3)
hr_timesheet_invoice/wizard/hr_timesheet_final_invoice_create.py (+2/-3)
hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py (+2/-3)
hr_timesheet_sheet/hr_timesheet_sheet.py (+18/-20)
hr_timesheet_sheet/report/hr_timesheet_report.py (+2/-3)
hr_timesheet_sheet/report/timesheet_report.py (+2/-3)
hr_timesheet_sheet/res_config.py (+2/-2)
hr_timesheet_sheet/wizard/hr_timesheet_current.py (+2/-3)
idea/idea.py (+3/-3)
knowledge/res_config.py (+2/-2)
l10n_at/account_wizard.py (+2/-3)
l10n_be/wizard/l10n_be_account_vat_declaration.py (+2/-2)
l10n_be/wizard/l10n_be_partner_vat_listing.py (+4/-7)
l10n_be/wizard/l10n_be_vat_intra.py (+2/-3)
l10n_be_coda/l10n_be_coda.py (+3/-3)
l10n_be_coda/wizard/account_coda_import.py (+2/-2)
l10n_be_hr_payroll/l10n_be_hr_payroll.py (+3/-5)
l10n_be_invoice_bba/invoice.py (+2/-2)
l10n_be_invoice_bba/partner.py (+2/-3)
l10n_br/account.py (+94/-3)
l10n_br/l10n_br.py.OTHER (+84/-0)
l10n_ch/account_wizard.py (+2/-3)
l10n_ch/bank.py (+3/-3)
l10n_ch/company.py (+2/-3)
l10n_ch/invoice.py (+3/-5)
l10n_ch/partner.py (+2/-3)
l10n_ch/payment.py (+2/-3)
l10n_ch/report/report_webkit_html.py (+1/-1)
l10n_ch/wizard/bvr_import.py (+2/-3)
l10n_ch/wizard/create_dta.py (+2/-3)
l10n_fr/l10n_fr.py (+4/-5)
l10n_fr/wizard/fr_report_bilan.py (+2/-3)
l10n_fr/wizard/fr_report_compute_resultant.py (+2/-3)
l10n_fr_hr_payroll/l10n_fr_hr_payroll.py (+4/-7)
l10n_fr_rib/bank.py (+3/-5)
l10n_in_hr_payroll/l10n_in_hr_payroll.py (+7/-13)
l10n_in_hr_payroll/report/payment_advice_report.py (+2/-3)
l10n_in_hr_payroll/report/payslip_report.py (+2/-3)
l10n_in_hr_payroll/wizard/hr_salary_employee_bymonth.py (+2/-3)
l10n_in_hr_payroll/wizard/hr_yearly_salary_detail.py (+2/-3)
l10n_lu/wizard/print_vat.py (+2/-3)
l10n_ma/l10n_ma.py (+3/-3)
l10n_multilang/account.py (+28/-39)
l10n_multilang/l10n_multilang.py (+2/-3)
l10n_ro/res_partner.py (+2/-3)
lunch/lunch.py (+1/-1)
lunch/report/order.py (+1/-1)
lunch/report/report_lunch_order.py (+2/-3)
lunch/wizard/lunch_cancel.py (+1/-1)
lunch/wizard/lunch_order.py (+1/-1)
lunch/wizard/lunch_validation.py (+1/-1)
mail/mail_alias.py (+1/-1)
mail/mail_followers.py (+1/-1)
mail/mail_group.py (+1/-1)
mail/mail_group_menu.py (+2/-2)
mail/mail_mail.py (+1/-1)
mail/mail_message_subtype.py (+2/-2)
mail/mail_thread.py (+4/-0)
mail/mail_vote.py (+1/-1)
mail/res_config.py (+1/-1)
mail/res_partner.py (+1/-1)
mail/res_users.py (+1/-1)
mail/update.py (+2/-2)
mail/wizard/invite.py (+2/-2)
mail/wizard/mail_compose_message.py (+1/-1)
marketing/res_config.py (+2/-2)
marketing_campaign/marketing_campaign.py (+8/-15)
marketing_campaign/report/campaign_analysis.py (+2/-3)
marketing_campaign/res_partner.py (+2/-3)
membership/membership.py (+10/-15)
membership/report/report_membership.py (+2/-3)
membership/wizard/membership_invoice.py (+2/-3)
mrp/company.py (+2/-3)
mrp/mrp.py (+69/-15)
mrp/procurement.py (+2/-3)
mrp/product.py (+2/-3)
mrp/report/bom_structure.py (+1/-1)
mrp/report/mrp_report.py (+7/-9)
mrp/res_config.py (+2/-2)
mrp/stock.py (+8/-11)
mrp/wizard/change_production_qty.py (+2/-3)
mrp/wizard/mrp_price.py (+2/-3)
mrp/wizard/mrp_product_produce.py (+2/-3)
mrp/wizard/mrp_workcenter_load.py (+2/-3)
mrp_byproduct/mrp_byproduct.py (+5/-8)
mrp_operations/mrp_operations.py (+58/-11)
mrp_operations/report/mrp_workorder_analysis.py (+2/-3)
mrp_repair/mrp_repair.py (+52/-6)
mrp_repair/wizard/cancel_repair.py (+2/-3)
mrp_repair/wizard/make_invoice.py (+2/-3)
note/note.py (+5/-5)
note_pad/note_pad.py (+2/-2)
pad/pad.py (+2/-2)
pad/res_company.py (+2/-2)
pad_project/project_task.py (+2/-2)
plugin/plugin_handler.py (+2/-2)
plugin_outlook/plugin_outlook.py (+2/-2)
plugin_thunderbird/plugin_thunderbird.py (+2/-2)
point_of_sale/account_bank_statement.py (+3/-5)
point_of_sale/point_of_sale.py (+10/-12)
point_of_sale/report/pos_invoice.py (+1/-1)
point_of_sale/report/pos_order_report.py (+2/-3)
point_of_sale/report/pos_report.py (+6/-11)
point_of_sale/res_partner.py (+2/-2)
point_of_sale/res_users.py (+2/-2)
point_of_sale/wizard/pos_box.py (+1/-1)
point_of_sale/wizard/pos_box_entries.py (+2/-3)
point_of_sale/wizard/pos_box_out.py (+2/-3)
point_of_sale/wizard/pos_confirm.py (+4/-5)
point_of_sale/wizard/pos_details.py (+2/-3)
point_of_sale/wizard/pos_discount.py (+2/-3)
point_of_sale/wizard/pos_open_statement.py (+2/-3)
point_of_sale/wizard/pos_payment.py (+3/-4)
point_of_sale/wizard/pos_payment_report.py (+2/-3)
point_of_sale/wizard/pos_payment_report_user.py (+2/-3)
point_of_sale/wizard/pos_receipt.py (+2/-3)
point_of_sale/wizard/pos_return.py (+3/-5)
point_of_sale/wizard/pos_sales_user.py (+2/-3)
point_of_sale/wizard/pos_sales_user_current_user.py (+2/-3)
point_of_sale/wizard/pos_sales_user_today.py (+4/-5)
point_of_sale/wizard/pos_session_opening.py (+2/-3)
portal/acquirer.py (+1/-1)
portal/mail_mail.py (+1/-1)
portal/portal.py (+4/-4)
portal/wizard/portal_wizard.py (+3/-3)
portal/wizard/share_wizard.py (+1/-2)
portal_crm/contact.py (+1/-1)
portal_event/event.py (+2/-2)
portal_hr_employees/hr_employee.py (+2/-2)
portal_sale/portal_sale.py (+2/-2)
portal_sale/res_config.py (+1/-1)
process/process.py (+6/-11)
procurement/company.py (+2/-3)
procurement/procurement.py (+39/-11)
procurement/schedulers.py (+2/-3)
procurement/wizard/make_procurement_product.py (+2/-3)
procurement/wizard/mrp_procurement.py (+2/-3)
procurement/wizard/orderpoint_procurement.py (+2/-3)
procurement/wizard/schedulers_all.py (+2/-3)
product/partner.py (+4/-5)
product/pricelist.py (+10/-15)
product/product.py (+18/-27)
product/report/pricelist.py (+1/-1)
product/report/product_pricelist.py (+1/-1)
product/wizard/product_price.py (+2/-3)
product_expiry/product_expiry.py (+3/-5)
product_manufacturer/product_manufacturer.py (+3/-5)
product_margin/product_margin.py (+4/-5)
product_margin/wizard/product_margin.py (+2/-3)
product_visible_discount/product_visible_discount.py (+4/-7)
project/company.py (+2/-3)
project/project.py (+10/-10)
project/report/project_report.py (+2/-3)
project/res_config.py (+2/-2)
project/res_partner.py (+2/-3)
project/wizard/project_task_delegate.py (+2/-3)
project/wizard/project_task_reevaluate.py (+2/-3)
project_gtd/project_gtd.py (+6/-9)
project_gtd/wizard/project_gtd_empty.py (+2/-3)
project_gtd/wizard/project_gtd_fill.py (+2/-3)
project_issue/project_issue.py (+41/-10)
project_issue/report/project_issue_report.py (+2/-3)
project_issue/res_config.py (+2/-2)
project_issue_sheet/project_issue_sheet.py (+3/-6)
project_long_term/project_long_term.py (+6/-11)
project_long_term/wizard/project_compute_phases.py (+2/-3)
project_long_term/wizard/project_compute_tasks.py (+2/-3)
project_mrp/project_mrp.py (+4/-7)
project_mrp/project_procurement.py (+2/-3)
project_timesheet/project_timesheet.py (+6/-11)
project_timesheet/report/task_report.py (+2/-3)
purchase/company.py (+2/-3)
purchase/edi/purchase_order.py (+3/-3)
purchase/partner.py (+2/-3)
purchase/purchase.py (+61/-12)
purchase/report/order.py (+1/-1)
purchase/report/purchase_report.py (+2/-3)
purchase/report/request_quotation.py (+1/-1)
purchase/res_config.py (+3/-3)
purchase/stock.py (+5/-6)
purchase/wizard/purchase_line_invoice.py (+2/-3)
purchase/wizard/purchase_order_group.py (+2/-3)
purchase_analytic_plans/purchase_analytic_plans.py (+5/-7)
purchase_double_validation/purchase_double_validation_installer.py (+2/-2)
purchase_requisition/purchase_requisition.py (+21/-12)
purchase_requisition/report/requisition.py (+1/-1)
purchase_requisition/wizard/purchase_requisition_partner.py (+2/-3)
report_intrastat/report_intrastat.py (+9/-13)
report_webkit/company.py (+2/-2)
report_webkit/header.py (+3/-5)
report_webkit/ir_report.py (+2/-3)
report_webkit/wizard/report_webkit_actions.py (+2/-3)
resource/resource.py (+5/-9)
sale/edi/sale_order.py (+3/-3)
sale/report/sale_report.py (+2/-3)
sale/res_config.py (+3/-3)
sale/res_partner.py (+2/-2)
sale/sale.py (+41/-8)
sale/wizard/sale_line_invoice.py (+2/-3)
sale/wizard/sale_make_invoice.py (+2/-3)
sale/wizard/sale_make_invoice_advance.py (+2/-3)
sale_analytic_plans/sale_analytic_plans.py (+3/-4)
sale_crm/report/sales_crm_account_invoice_report.py (+2/-2)
sale_crm/sale_crm.py (+24/-2)
sale_crm/wizard/crm_make_sale.py (+2/-3)
sale_journal/sale_journal.py (+9/-15)
sale_margin/sale_margin.py (+3/-5)
sale_mrp/sale_mrp.py (+2/-3)
sale_order_dates/sale_order_dates.py (+2/-3)
sale_stock/company.py (+2/-3)
sale_stock/report/sale_report.py (+2/-3)
sale_stock/res_config.py (+2/-2)
sale_stock/sale_stock.py (+6/-7)
sale_stock/stock.py (+4/-4)
share/ir_model.py (+1/-1)
share/res_users.py (+3/-5)
share/wizard/share_wizard.py (+2/-3)
stock/partner.py (+2/-3)
stock/product.py (+4/-7)
stock/report/picking.py (+1/-1)
stock/report/product_stock.py (+0/-1)
stock/report/report_stock.py (+4/-7)
stock/report/report_stock_move.py (+5/-7)
stock/res_config.py (+2/-2)
stock/stock.py (+101/-27)
stock/wizard/stock_change_product_qty.py (+15/-2)
stock/wizard/stock_change_standard_price.py (+2/-3)
stock/wizard/stock_fill_inventory.py (+2/-3)
stock/wizard/stock_inventory_line_split.py (+3/-3)
stock/wizard/stock_inventory_merge.py (+2/-3)
stock/wizard/stock_invoice_onshipping.py (+2/-3)
stock/wizard/stock_location_product.py (+2/-3)
stock/wizard/stock_move.py (+9/-12)
stock/wizard/stock_partial_move.py (+3/-3)
stock/wizard/stock_partial_picking.py (+2/-2)
stock/wizard/stock_return_picking.py (+5/-7)
stock/wizard/stock_splitinto.py (+2/-3)
stock/wizard/stock_traceability.py (+2/-3)
stock_invoice_directly/wizard/stock_invoice.py (+2/-3)
stock_location/procurement_pull.py (+2/-3)
stock_location/stock_location.py (+6/-11)
stock_no_autopicking/stock_no_autopicking.py (+3/-5)
subscription/subscription.py (+5/-9)
survey/survey.py (+16/-29)
survey/wizard/survey_answer.py (+2/-3)
survey/wizard/survey_browse_answer.py (+2/-3)
survey/wizard/survey_print.py (+2/-3)
survey/wizard/survey_print_answer.py (+2/-3)
survey/wizard/survey_print_statistics.py (+2/-3)
survey/wizard/survey_selection.py (+2/-2)
survey/wizard/survey_send_invitation.py (+3/-5)
warning/warning.py (+17/-25)
web_linkedin/web_linkedin.py (+2/-2)
Text conflict in account_voucher/account_voucher.py
Text conflict in analytic/analytic.py
Text conflict in base_calendar/crm_meeting.py
Text conflict in crm/crm_meeting.py
Text conflict in crm/crm_phonecall.py
Text conflict in crm_claim/crm_claim.py
Text conflict in event/event.py
Text conflict in hr_holidays/hr_holidays.py
Text conflict in hr_timesheet_invoice/hr_timesheet_invoice.py
Text conflict in hr_timesheet_sheet/hr_timesheet_sheet.py
Text conflict in l10n_br/account.py
Contents conflict in l10n_br/l10n_br.py
Text conflict in mail/mail_thread.py
Text conflict in mrp/mrp.py
Text conflict in mrp_operations/mrp_operations.py
Text conflict in mrp_repair/mrp_repair.py
Text conflict in procurement/procurement.py
Text conflict in project_issue/project_issue.py
Text conflict in purchase/purchase.py
Text conflict in purchase_requisition/purchase_requisition.py
Text conflict in sale/sale.py
Text conflict in sale_crm/sale_crm.py
Text conflict in stock/stock.py
Text conflict in stock/wizard/stock_change_product_qty.py
To merge this branch: bzr merge lp:~camptocamp/openobject-addons/trunk-proposed-cleanups
Reviewer Review Type Date Requested Status
Antony Lesuisse (OpenERP) Pending
OpenERP Core Team Pending
Review via email: mp+140925@code.launchpad.net

Description of the change

Use more "modern" form for model declaration (deriving from orm.Model rather than osv.osv, and removing explicit instanciation of the class).

This works together with https://code.launchpad.net/~c2c/openobject-server/trunk-proposed-cleanups/

To post a comment you must log in.

Unmerged revisions

6779. By Alexandre Fayolle - camptocamp

[FIX] l10n_be_invoice_bba/invoice.py: syntax error resulting from sed processing a file with CR+LF line endings

6778. By Alexandre Fayolle @ camptocamp <email address hidden>

[FIX] object_proxy import problem

6777. By Alexandre Fayolle @ camptocamp <email address hidden>

[FIX] one more wrong import

6776. By Alexandre Fayolle @ camptocamp <email address hidden>

[FIX] some barfs from previous broad use of sed + some import cleanups

6775. By Alexandre Fayolle @ camptocamp <email address hidden>

[REF] user string.split method instead of the deprecated split function from the string module

6774. By Alexandre Fayolle @ camptocamp <email address hidden>

[MRG] update patch to latest trunk

6773. By Alexandre Fayolle @ camptocamp <email address hidden>

[FIX] a few more deprecated structure that crept in during the merge

6772. By Alexandre Fayolle @ camptocamp <email address hidden>

[MRG] from trunk

6771. By Alexandre Fayolle @ camptocamp <email address hidden>

[REF] more replacement of osv.osv with orm.Model
[FIX] l10n_ch/report/report_webkit_html.py: one NameError

6770. By Alexandre Fayolle @ camptocamp <email address hidden>

[MRG] from trunk

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account/account.py'
--- account/account.py 2012-12-18 17:55:47 +0000
+++ account/account.py 2012-12-20 15:08:18 +0000
@@ -27,7 +27,7 @@
2727
28from openerp import SUPERUSER_ID28from openerp import SUPERUSER_ID
29from openerp import pooler, tools29from openerp import pooler, tools
30from openerp.osv import fields, osv30from openerp.osv import fields, osv, orm
31from openerp.tools.translate import _31from openerp.tools.translate import _
32from openerp.tools.float_utils import float_round32from openerp.tools.float_utils import float_round
3333
@@ -54,7 +54,7 @@
54 level -= 154 level -= 1
55 return True55 return True
5656
57class account_payment_term(osv.osv):57class account_payment_term(orm.Model):
58 _name = "account.payment.term"58 _name = "account.payment.term"
59 _description = "Payment Term"59 _description = "Payment Term"
60 _columns = {60 _columns = {
@@ -99,7 +99,7 @@
99 result.append( (time.strftime('%Y-%m-%d'), dist) )99 result.append( (time.strftime('%Y-%m-%d'), dist) )
100 return result100 return result
101101
102class account_payment_term_line(osv.osv):102class account_payment_term_line(orm.Model):
103 _name = "account.payment.term.line"103 _name = "account.payment.term.line"
104 _description = "Payment Term Line"104 _description = "Payment Term Line"
105 _columns = {105 _columns = {
@@ -131,9 +131,8 @@
131 (_check_percent, 'Percentages for Payment Term Line must be between 0 and 1, Example: 0.02 for 2%.', ['value_amount']),131 (_check_percent, 'Percentages for Payment Term Line must be between 0 and 1, Example: 0.02 for 2%.', ['value_amount']),
132 ]132 ]
133133
134account_payment_term_line()
135134
136class account_account_type(osv.osv):135class account_account_type(orm.Model):
137 _name = "account.account.type"136 _name = "account.account.type"
138 _description = "Account Type"137 _description = "Account Type"
139138
@@ -197,7 +196,6 @@
197 }196 }
198 _order = "code"197 _order = "code"
199198
200account_account_type()
201199
202def _code_get(self, cr, uid, context=None):200def _code_get(self, cr, uid, context=None):
203 acc_type_obj = self.pool.get('account.account.type')201 acc_type_obj = self.pool.get('account.account.type')
@@ -209,11 +207,10 @@
209# Accounts207# Accounts
210#----------------------------------------------------------208#----------------------------------------------------------
211209
212class account_tax(osv.osv):210class account_tax(orm.Model):
213 _name = 'account.tax'211 _name = 'account.tax'
214account_tax()
215212
216class account_account(osv.osv):213class account_account(orm.Model):
217 _order = "parent_left"214 _order = "parent_left"
218 _parent_order = "code"215 _parent_order = "code"
219 _name = "account.account"216 _name = "account.account"
@@ -696,9 +693,8 @@
696 self._check_moves(cr, uid, ids, "unlink", context=context)693 self._check_moves(cr, uid, ids, "unlink", context=context)
697 return super(account_account, self).unlink(cr, uid, ids, context=context)694 return super(account_account, self).unlink(cr, uid, ids, context=context)
698695
699account_account()
700696
701class account_journal(osv.osv):697class account_journal(orm.Model):
702 _name = "account.journal"698 _name = "account.journal"
703 _description = "Journal"699 _description = "Journal"
704 _columns = {700 _columns = {
@@ -848,9 +844,8 @@
848844
849 return self.name_get(cr, user, ids, context=context)845 return self.name_get(cr, user, ids, context=context)
850846
851account_journal()
852847
853class account_fiscalyear(osv.osv):848class account_fiscalyear(orm.Model):
854 _name = "account.fiscalyear"849 _name = "account.fiscalyear"
855 _description = "Fiscal Year"850 _description = "Fiscal Year"
856 _columns = {851 _columns = {
@@ -944,9 +939,8 @@
944 ids = self.search(cr, user, [('name', operator, name)]+ args, limit=limit)939 ids = self.search(cr, user, [('name', operator, name)]+ args, limit=limit)
945 return self.name_get(cr, user, ids, context=context)940 return self.name_get(cr, user, ids, context=context)
946941
947account_fiscalyear()
948942
949class account_period(osv.osv):943class account_period(orm.Model):
950 _name = "account.period"944 _name = "account.period"
951 _description = "Account period"945 _description = "Account period"
952 _columns = {946 _columns = {
@@ -1067,9 +1061,8 @@
1067 return self.search(cr, uid, [('date_start', '>=', period_date_start), ('date_stop', '<=', period_date_stop), ('company_id', '=', company1_id)])1061 return self.search(cr, uid, [('date_start', '>=', period_date_start), ('date_stop', '<=', period_date_stop), ('company_id', '=', company1_id)])
1068 return self.search(cr, uid, [('date_start', '>=', period_date_start), ('date_stop', '<=', period_date_stop), ('company_id', '=', company1_id), ('special', '=', False)])1062 return self.search(cr, uid, [('date_start', '>=', period_date_start), ('date_stop', '<=', period_date_stop), ('company_id', '=', company1_id), ('special', '=', False)])
10691063
1070account_period()
10711064
1072class account_journal_period(osv.osv):1065class account_journal_period(orm.Model):
1073 _name = "account.journal.period"1066 _name = "account.journal.period"
1074 _description = "Journal Period"1067 _description = "Journal Period"
10751068
@@ -1124,9 +1117,8 @@
1124 }1117 }
1125 _order = "period_id"1118 _order = "period_id"
11261119
1127account_journal_period()
11281120
1129class account_fiscalyear(osv.osv):1121class account_fiscalyear(orm.Model):
1130 _inherit = "account.fiscalyear"1122 _inherit = "account.fiscalyear"
1131 _description = "Fiscal Year"1123 _description = "Fiscal Year"
1132 _columns = {1124 _columns = {
@@ -1141,11 +1133,10 @@
1141 })1133 })
1142 return super(account_fiscalyear, self).copy(cr, uid, id, default=default, context=context)1134 return super(account_fiscalyear, self).copy(cr, uid, id, default=default, context=context)
11431135
1144account_fiscalyear()
1145#----------------------------------------------------------1136#----------------------------------------------------------
1146# Entries1137# Entries
1147#----------------------------------------------------------1138#----------------------------------------------------------
1148class account_move(osv.osv):1139class account_move(orm.Model):
1149 _name = "account.move"1140 _name = "account.move"
1150 _description = "Account Entry"1141 _description = "Account Entry"
1151 _order = 'id desc'1142 _order = 'id desc'
@@ -1612,9 +1603,8 @@
1612 valid_moves = [move.id for move in valid_moves]1603 valid_moves = [move.id for move in valid_moves]
1613 return len(valid_moves) > 0 and valid_moves or False1604 return len(valid_moves) > 0 and valid_moves or False
16141605
1615account_move()
16161606
1617class account_move_reconcile(osv.osv):1607class account_move_reconcile(orm.Model):
1618 _name = "account.move.reconcile"1608 _name = "account.move.reconcile"
1619 _description = "Account Reconciliation"1609 _description = "Account Reconciliation"
1620 _columns = {1610 _columns = {
@@ -1686,7 +1676,6 @@
1686 result.append((r.id,r.name))1676 result.append((r.id,r.name))
1687 return result1677 return result
16881678
1689account_move_reconcile()
16901679
1691#----------------------------------------------------------1680#----------------------------------------------------------
1692# Tax1681# Tax
@@ -1695,7 +1684,7 @@
1695a documenter1684a documenter
1696child_depend: la taxe depend des taxes filles1685child_depend: la taxe depend des taxes filles
1697"""1686"""
1698class account_tax_code(osv.osv):1687class account_tax_code(orm.Model):
1699 """1688 """
1700 A code for the tax object.1689 A code for the tax object.
17011690
@@ -1834,9 +1823,8 @@
1834 ]1823 ]
1835 _order = 'code'1824 _order = 'code'
18361825
1837account_tax_code()
18381826
1839class account_tax(osv.osv):1827class account_tax(orm.Model):
1840 """1828 """
1841 A tax object.1829 A tax object.
18421830
@@ -2235,13 +2223,12 @@
2235 total += r['amount']2223 total += r['amount']
2236 return res2224 return res
22372225
2238account_tax()
22392226
2240# ---------------------------------------------------------2227# ---------------------------------------------------------
2241# Account Entries Models2228# Account Entries Models
2242# ---------------------------------------------------------2229# ---------------------------------------------------------
22432230
2244class account_model(osv.osv):2231class account_model(orm.Model):
2245 _name = "account.model"2232 _name = "account.model"
2246 _description = "Account Model"2233 _description = "Account Model"
2247 _columns = {2234 _columns = {
@@ -2347,9 +2334,8 @@
23472334
2348 return {'value': {'company_id': company_id}}2335 return {'value': {'company_id': company_id}}
23492336
2350account_model()
23512337
2352class account_model_line(osv.osv):2338class account_model_line(orm.Model):
2353 _name = "account.model.line"2339 _name = "account.model.line"
2354 _description = "Account Model Entries"2340 _description = "Account Model Entries"
2355 _columns = {2341 _columns = {
@@ -2371,14 +2357,13 @@
2371 ('credit_debit1', 'CHECK (credit*debit=0)', 'Wrong credit or debit value in model, they must be positive!'),2357 ('credit_debit1', 'CHECK (credit*debit=0)', 'Wrong credit or debit value in model, they must be positive!'),
2372 ('credit_debit2', 'CHECK (credit+debit>=0)', 'Wrong credit or debit value in model, they must be positive!'),2358 ('credit_debit2', 'CHECK (credit+debit>=0)', 'Wrong credit or debit value in model, they must be positive!'),
2373 ]2359 ]
2374account_model_line()
23752360
2376# ---------------------------------------------------------2361# ---------------------------------------------------------
2377# Account Subscription2362# Account Subscription
2378# ---------------------------------------------------------2363# ---------------------------------------------------------
23792364
23802365
2381class account_subscription(osv.osv):2366class account_subscription(orm.Model):
2382 _name = "account.subscription"2367 _name = "account.subscription"
2383 _description = "Account Subscription"2368 _description = "Account Subscription"
2384 _columns = {2369 _columns = {
@@ -2445,9 +2430,8 @@
2445 self.write(cr, uid, ids, {'state':'running'})2430 self.write(cr, uid, ids, {'state':'running'})
2446 return True2431 return True
24472432
2448account_subscription()
24492433
2450class account_subscription_line(osv.osv):2434class account_subscription_line(orm.Model):
2451 _name = "account.subscription.line"2435 _name = "account.subscription.line"
2452 _description = "Account Subscription Line"2436 _description = "Account Subscription Line"
2453 _columns = {2437 _columns = {
@@ -2474,17 +2458,15 @@
24742458
2475 _rec_name = 'date'2459 _rec_name = 'date'
24762460
2477account_subscription_line()
24782461
2479# ---------------------------------------------------------------2462# ---------------------------------------------------------------
2480# Account Templates: Account, Tax, Tax Code and chart. + Wizard2463# Account Templates: Account, Tax, Tax Code and chart. + Wizard
2481# ---------------------------------------------------------------2464# ---------------------------------------------------------------
24822465
2483class account_tax_template(osv.osv):2466class account_tax_template(orm.Model):
2484 _name = 'account.tax.template'2467 _name = 'account.tax.template'
2485account_tax_template()
24862468
2487class account_account_template(osv.osv):2469class account_account_template(orm.Model):
2488 _order = "code"2470 _order = "code"
2489 _name = "account.account.template"2471 _name = "account.account.template"
2490 _description ='Templates for Accounts'2472 _description ='Templates for Accounts'
@@ -2610,9 +2592,8 @@
2610 obj_acc._parent_store_compute(cr)2592 obj_acc._parent_store_compute(cr)
2611 return acc_template_ref2593 return acc_template_ref
26122594
2613account_account_template()
26142595
2615class account_add_tmpl_wizard(osv.osv_memory):2596class account_add_tmpl_wizard(orm.TransientModel):
2616 """Add one more account from the template.2597 """Add one more account from the template.
26172598
2618 With the 'nocreate' option, some accounts may not be created. Use this to add them later."""2599 With the 'nocreate' option, some accounts may not be created. Use this to add them later."""
@@ -2664,9 +2645,8 @@
2664 def action_cancel(self, cr, uid, ids, context=None):2645 def action_cancel(self, cr, uid, ids, context=None):
2665 return { 'type': 'state', 'state': 'end' }2646 return { 'type': 'state', 'state': 'end' }
26662647
2667account_add_tmpl_wizard()
26682648
2669class account_tax_code_template(osv.osv):2649class account_tax_code_template(orm.Model):
26702650
2671 _name = 'account.tax.code.template'2651 _name = 'account.tax.code.template'
2672 _description = 'Tax Code Template'2652 _description = 'Tax Code Template'
@@ -2736,10 +2716,9 @@
2736 (_check_recursion, 'Error!\nYou cannot create recursive Tax Codes.', ['parent_id'])2716 (_check_recursion, 'Error!\nYou cannot create recursive Tax Codes.', ['parent_id'])
2737 ]2717 ]
2738 _order = 'code,name'2718 _order = 'code,name'
2739account_tax_code_template()2719
27402720
27412721class account_chart_template(orm.Model):
2742class account_chart_template(osv.osv):
2743 _name="account.chart.template"2722 _name="account.chart.template"
2744 _description= "Templates for Account Chart"2723 _description= "Templates for Account Chart"
27452724
@@ -2769,9 +2748,8 @@
2769 'complete_tax_set': True,2748 'complete_tax_set': True,
2770 }2749 }
27712750
2772account_chart_template()
27732751
2774class account_tax_template(osv.osv):2752class account_tax_template(orm.Model):
27752753
2776 _name = 'account.tax.template'2754 _name = 'account.tax.template'
2777 _description = 'Templates for Taxes'2755 _description = 'Templates for Taxes'
@@ -2899,11 +2877,10 @@
2899 res.update({'tax_template_to_tax': tax_template_to_tax, 'account_dict': todo_dict})2877 res.update({'tax_template_to_tax': tax_template_to_tax, 'account_dict': todo_dict})
2900 return res2878 return res
29012879
2902account_tax_template()
29032880
2904# Fiscal Position Templates2881# Fiscal Position Templates
29052882
2906class account_fiscal_position_template(osv.osv):2883class account_fiscal_position_template(orm.Model):
2907 _name = 'account.fiscal.position.template'2884 _name = 'account.fiscal.position.template'
2908 _description = 'Template for Fiscal Position'2885 _description = 'Template for Fiscal Position'
29092886
@@ -2947,9 +2924,8 @@
2947 })2924 })
2948 return True2925 return True
29492926
2950account_fiscal_position_template()
29512927
2952class account_fiscal_position_tax_template(osv.osv):2928class account_fiscal_position_tax_template(orm.Model):
2953 _name = 'account.fiscal.position.tax.template'2929 _name = 'account.fiscal.position.tax.template'
2954 _description = 'Template Tax Fiscal Position'2930 _description = 'Template Tax Fiscal Position'
2955 _rec_name = 'position_id'2931 _rec_name = 'position_id'
@@ -2960,9 +2936,8 @@
2960 'tax_dest_id': fields.many2one('account.tax.template', 'Replacement Tax')2936 'tax_dest_id': fields.many2one('account.tax.template', 'Replacement Tax')
2961 }2937 }
29622938
2963account_fiscal_position_tax_template()
29642939
2965class account_fiscal_position_account_template(osv.osv):2940class account_fiscal_position_account_template(orm.Model):
2966 _name = 'account.fiscal.position.account.template'2941 _name = 'account.fiscal.position.account.template'
2967 _description = 'Template Account Fiscal Mapping'2942 _description = 'Template Account Fiscal Mapping'
2968 _rec_name = 'position_id'2943 _rec_name = 'position_id'
@@ -2972,13 +2947,12 @@
2972 'account_dest_id': fields.many2one('account.account.template', 'Account Destination', domain=[('type','<>','view')], required=True)2947 'account_dest_id': fields.many2one('account.account.template', 'Account Destination', domain=[('type','<>','view')], required=True)
2973 }2948 }
29742949
2975account_fiscal_position_account_template()
29762950
2977# ---------------------------------------------------------2951# ---------------------------------------------------------
2978# Account generation from template wizards2952# Account generation from template wizards
2979# ---------------------------------------------------------2953# ---------------------------------------------------------
29802954
2981class wizard_multi_charts_accounts(osv.osv_memory):2955class wizard_multi_charts_accounts(orm.TransientModel):
2982 """2956 """
2983 Create a new account chart for a company.2957 Create a new account chart for a company.
2984 Wizards ask for:2958 Wizards ask for:
@@ -3512,9 +3486,8 @@
3512 current_num += 13486 current_num += 1
3513 return True3487 return True
35143488
3515wizard_multi_charts_accounts()
35163489
3517class account_bank_accounts_wizard(osv.osv_memory):3490class account_bank_accounts_wizard(orm.TransientModel):
3518 _name='account.bank.accounts.wizard'3491 _name='account.bank.accounts.wizard'
35193492
3520 _columns = {3493 _columns = {
@@ -3524,6 +3497,5 @@
3524 'account_type': fields.selection([('cash','Cash'), ('check','Check'), ('bank','Bank')], 'Account Type', size=32),3497 'account_type': fields.selection([('cash','Cash'), ('check','Check'), ('bank','Bank')], 'Account Type', size=32),
3525 }3498 }
35263499
3527account_bank_accounts_wizard()
35283500
3529# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:3501# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
35303502
=== modified file 'account/account_analytic_line.py'
--- account/account_analytic_line.py 2012-12-18 22:50:15 +0000
+++ account/account_analytic_line.py 2012-12-20 15:08:18 +0000
@@ -20,10 +20,10 @@
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields22from openerp.osv import fields
23from openerp.osv import osv23from openerp.osv import osv, orm
24from openerp.tools.translate import _24from openerp.tools.translate import _
2525
26class account_analytic_line(osv.osv):26class account_analytic_line(orm.Model):
27 _inherit = 'account.analytic.line'27 _inherit = 'account.analytic.line'
28 _description = 'Analytic Line'28 _description = 'Analytic Line'
29 _columns = {29 _columns = {
@@ -143,9 +143,8 @@
143 return res143 return res
144 return False144 return False
145145
146account_analytic_line()
147146
148class res_partner(osv.osv):147class res_partner(orm.Model):
149 """ Inherits partner and adds contract information in the partner form """148 """ Inherits partner and adds contract information in the partner form """
150 _inherit = 'res.partner'149 _inherit = 'res.partner'
151150
@@ -154,6 +153,5 @@
154 'partner_id', 'Contracts', readonly=True),153 'partner_id', 'Contracts', readonly=True),
155 }154 }
156155
157res_partner()
158156
159# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:157# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
160158
=== modified file 'account/account_bank.py'
--- account/account_bank.py 2012-12-06 14:56:32 +0000
+++ account/account_bank.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20##############################################################################20##############################################################################
2121
22from openerp.tools.translate import _22from openerp.tools.translate import _
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
2424
25class bank(osv.osv):25class bank(orm.Model):
26 _inherit = "res.partner.bank"26 _inherit = "res.partner.bank"
27 _columns = {27 _columns = {
28 'journal_id': fields.many2one('account.journal', 'Account Journal', help="This journal will be created automatically for this bank account when you save the record"),28 'journal_id': fields.many2one('account.journal', 'Account Journal', help="This journal will be created automatically for this bank account when you save the record"),
2929
=== modified file 'account/account_bank_statement.py'
--- account/account_bank_statement.py 2012-12-18 17:55:47 +0000
+++ account/account_bank_statement.py 2012-12-20 15:08:18 +0000
@@ -21,11 +21,11 @@
2121
22import time22import time
2323
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
25from openerp.tools.translate import _25from openerp.tools.translate import _
26import openerp.addons.decimal_precision as dp26import openerp.addons.decimal_precision as dp
2727
28class account_bank_statement(osv.osv):28class account_bank_statement(orm.Model):
29 def create(self, cr, uid, vals, context=None):29 def create(self, cr, uid, vals, context=None):
30 if 'line_ids' in vals:30 if 'line_ids' in vals:
31 for idx, line in enumerate(vals['line_ids']):31 for idx, line in enumerate(vals['line_ids']):
@@ -475,7 +475,7 @@
475 unlink_ids.append(t['id'])475 unlink_ids.append(t['id'])
476 else:476 else:
477 raise osv.except_osv(_('Invalid Action!'), _('In order to delete a bank statement, you must first cancel it to delete related journal items.'))477 raise osv.except_osv(_('Invalid Action!'), _('In order to delete a bank statement, you must first cancel it to delete related journal items.'))
478 osv.osv.unlink(self, cr, uid, unlink_ids, context=context)478 orm.Model.unlink(self, cr, uid, unlink_ids, context=context)
479 return True479 return True
480480
481 def copy(self, cr, uid, id, default=None, context=None):481 def copy(self, cr, uid, id, default=None, context=None):
@@ -500,9 +500,8 @@
500 'context':ctx,500 'context':ctx,
501 }501 }
502502
503account_bank_statement()
504503
505class account_bank_statement_line(osv.osv):504class account_bank_statement_line(orm.Model):
506505
507 def onchange_partner_id(self, cr, uid, ids, partner_id, context=None):506 def onchange_partner_id(self, cr, uid, ids, partner_id, context=None):
508 obj_partner = self.pool.get('res.partner')507 obj_partner = self.pool.get('res.partner')
@@ -576,6 +575,5 @@
576 'type': 'general',575 'type': 'general',
577 }576 }
578577
579account_bank_statement_line()
580578
581# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:579# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
582580
=== modified file 'account/account_cash_statement.py'
--- account/account_cash_statement.py 2012-12-17 15:23:03 +0000
+++ account/account_cash_statement.py 2012-12-20 15:08:18 +0000
@@ -22,11 +22,11 @@
2222
23import time23import time
2424
25from openerp.osv import fields, osv25from openerp.osv import fields, osv, orm
26from openerp.tools.translate import _26from openerp.tools.translate import _
27import openerp.addons.decimal_precision as dp27import openerp.addons.decimal_precision as dp
2828
29class account_cashbox_line(osv.osv):29class account_cashbox_line(orm.Model):
3030
31 """ Cash Box Details """31 """ Cash Box Details """
3232
@@ -66,9 +66,8 @@
66 'bank_statement_id' : fields.many2one('account.bank.statement', ondelete='cascade'),66 'bank_statement_id' : fields.many2one('account.bank.statement', ondelete='cascade'),
67 }67 }
6868
69account_cashbox_line()
7069
71class account_cash_statement(osv.osv):70class account_cash_statement(orm.Model):
7271
73 _inherit = 'account.bank.statement'72 _inherit = 'account.bank.statement'
7473
@@ -316,9 +315,8 @@
316315
317 return self.write(cr, uid, ids, {'closing_date': time.strftime("%Y-%m-%d %H:%M:%S")}, context=context)316 return self.write(cr, uid, ids, {'closing_date': time.strftime("%Y-%m-%d %H:%M:%S")}, context=context)
318317
319account_cash_statement()
320318
321class account_journal(osv.osv):319class account_journal(orm.Model):
322 _inherit = 'account.journal'320 _inherit = 'account.journal'
323321
324 def _default_cashbox_line_ids(self, cr, uid, context=None):322 def _default_cashbox_line_ids(self, cr, uid, context=None):
@@ -336,9 +334,8 @@
336 'cashbox_line_ids' : _default_cashbox_line_ids,334 'cashbox_line_ids' : _default_cashbox_line_ids,
337 }335 }
338336
339account_journal()
340337
341class account_journal_cashbox_line(osv.osv):338class account_journal_cashbox_line(orm.Model):
342 _name = 'account.journal.cashbox.line'339 _name = 'account.journal.cashbox.line'
343 _rec_name = 'pieces'340 _rec_name = 'pieces'
344 _columns = {341 _columns = {
@@ -348,6 +345,5 @@
348345
349 _order = 'pieces asc'346 _order = 'pieces asc'
350347
351account_journal_cashbox_line()
352348
353# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:349# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
354350
=== modified file 'account/account_financial_report.py'
--- account/account_financial_report.py 2012-12-17 15:23:03 +0000
+++ account/account_financial_report.py 2012-12-20 15:08:18 +0000
@@ -26,7 +26,7 @@
2626
27from openerp import netsvc27from openerp import netsvc
28from openerp import pooler28from openerp import pooler
29from openerp.osv import fields, osv29from openerp.osv import fields, osv, orm
30import openerp.addons.decimal_precision as dp30import openerp.addons.decimal_precision as dp
31from openerp.tools.translate import _31from openerp.tools.translate import _
3232
@@ -34,7 +34,7 @@
34# Account Financial Report34# Account Financial Report
35# ---------------------------------------------------------35# ---------------------------------------------------------
3636
37class account_financial_report(osv.osv):37class account_financial_report(orm.Model):
38 _name = "account.financial.report"38 _name = "account.financial.report"
39 _description = "Account Report"39 _description = "Account Report"
4040
@@ -130,6 +130,5 @@
130 'style_overwrite': 0,130 'style_overwrite': 0,
131 }131 }
132132
133account_financial_report()
134133
135# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:134# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
136135
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py 2012-12-20 11:47:30 +0000
+++ account/account_invoice.py 2012-12-20 15:08:18 +0000
@@ -28,7 +28,7 @@
28from openerp.osv import fields, osv, orm28from openerp.osv import fields, osv, orm
29from openerp.tools.translate import _29from openerp.tools.translate import _
3030
31class account_invoice(osv.osv):31class account_invoice(orm.Model):
32 def _amount_all(self, cr, uid, ids, name, args, context=None):32 def _amount_all(self, cr, uid, ids, name, args, context=None):
33 res = {}33 res = {}
34 for invoice in self.browse(cr, uid, ids, context=context):34 for invoice in self.browse(cr, uid, ids, context=context):
@@ -456,7 +456,7 @@
456 unlink_ids.append(t['id'])456 unlink_ids.append(t['id'])
457 else:457 else:
458 raise osv.except_osv(_('Invalid Action!'), _('You can not delete an invoice which is not cancelled. You should refund it instead.'))458 raise osv.except_osv(_('Invalid Action!'), _('You can not delete an invoice which is not cancelled. You should refund it instead.'))
459 osv.osv.unlink(self, cr, uid, unlink_ids, context=context)459 orm.Model.unlink(self, cr, uid, unlink_ids, context=context)
460 return True460 return True
461461
462 def onchange_partner_id(self, cr, uid, ids, type, partner_id,\462 def onchange_partner_id(self, cr, uid, ids, type, partner_id,\
@@ -1336,7 +1336,7 @@
1336 return True1336 return True
13371337
13381338
1339class account_invoice_line(osv.osv):1339class account_invoice_line(orm.Model):
13401340
1341 def _amount_line(self, cr, uid, ids, prop, unknow_none, unknow_dict):1341 def _amount_line(self, cr, uid, ids, prop, unknow_none, unknow_dict):
1342 res = {}1342 res = {}
@@ -1587,9 +1587,8 @@
1587 unique_tax_ids = product_change_result['value']['invoice_line_tax_id']1587 unique_tax_ids = product_change_result['value']['invoice_line_tax_id']
1588 return {'value':{'invoice_line_tax_id': unique_tax_ids}}1588 return {'value':{'invoice_line_tax_id': unique_tax_ids}}
15891589
1590account_invoice_line()
15911590
1592class account_invoice_tax(osv.osv):1591class account_invoice_tax(orm.Model):
1593 _name = "account.invoice.tax"1592 _name = "account.invoice.tax"
1594 _description = "Invoice Tax"1593 _description = "Invoice Tax"
15951594
@@ -1731,7 +1730,7 @@
1731 return res1730 return res
17321731
17331732
1734class res_partner(osv.osv):1733class res_partner(orm.Model):
1735 """ Inherits partner and adds invoice information in the partner form """1734 """ Inherits partner and adds invoice information in the partner form """
1736 _inherit = 'res.partner'1735 _inherit = 'res.partner'
1737 _columns = {1736 _columns = {
@@ -1744,7 +1743,7 @@
1744 return super(res_partner, self).copy(cr, uid, id, default, context)1743 return super(res_partner, self).copy(cr, uid, id, default, context)
17451744
17461745
1747class mail_compose_message(osv.osv):1746class mail_compose_message(orm.Model):
1748 _inherit = 'mail.compose.message'1747 _inherit = 'mail.compose.message'
17491748
1750 def send_mail(self, cr, uid, ids, context=None):1749 def send_mail(self, cr, uid, ids, context=None):
17511750
=== modified file 'account/account_move_line.py'
--- account/account_move_line.py 2012-12-18 17:55:47 +0000
+++ account/account_move_line.py 2012-12-20 15:08:18 +0000
@@ -32,7 +32,7 @@
32import openerp.addons.decimal_precision as dp32import openerp.addons.decimal_precision as dp
33from openerp import tools33from openerp import tools
3434
35class account_move_line(osv.osv):35class account_move_line(orm.Model):
36 _name = "account.move.line"36 _name = "account.move.line"
37 _description = "Journal Items"37 _description = "Journal Items"
3838
@@ -1304,6 +1304,5 @@
1304 bool(journal.currency),bool(journal.analytic_journal_id)))1304 bool(journal.currency),bool(journal.analytic_journal_id)))
1305 return result1305 return result
13061306
1307account_move_line()
13081307
1309# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:1308# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
13101309
=== modified file 'account/company.py'
--- account/company.py 2012-12-06 14:56:32 +0000
+++ account/company.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class res_company(osv.osv):24class res_company(orm.Model):
25 _inherit = "res.company"25 _inherit = "res.company"
26 _columns = {26 _columns = {
27 'expects_chart_of_accounts': fields.boolean('Expects a Chart of Accounts'),27 'expects_chart_of_accounts': fields.boolean('Expects a Chart of Accounts'),
@@ -47,6 +47,5 @@
47Best Regards,'''47Best Regards,'''
48 }48 }
4949
50res_company()
5150
52# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:51# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5352
=== modified file 'account/edi/invoice.py'
--- account/edi/invoice.py 2012-12-17 14:43:06 +0000
+++ account/edi/invoice.py 2012-12-20 15:08:18 +0000
@@ -18,7 +18,7 @@
18# along with this program. If not, see <http://www.gnu.org/licenses/>.18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#19#
20##############################################################################20##############################################################################
21from openerp.osv import osv, fields21from openerp.osv import osv, fields, orm
22from openerp.addons.edi import EDIMixin22from openerp.addons.edi import EDIMixin
2323
24from urllib import urlencode24from urllib import urlencode
@@ -68,7 +68,7 @@
68 'amount_tax': True,68 'amount_tax': True,
69}69}
7070
71class account_invoice(osv.osv, EDIMixin):71class account_invoice(orm.Model, EDIMixin):
72 _inherit = 'account.invoice'72 _inherit = 'account.invoice'
7373
74 def edi_export(self, cr, uid, records, edi_struct=None, context=None):74 def edi_export(self, cr, uid, records, edi_struct=None, context=None):
@@ -282,10 +282,10 @@
282 }282 }
283283
284284
285class account_invoice_line(osv.osv, EDIMixin):285class account_invoice_line(orm.Model, EDIMixin):
286 _inherit='account.invoice.line'286 _inherit='account.invoice.line'
287287
288class account_invoice_tax(osv.osv, EDIMixin):288class account_invoice_tax(orm.Model, EDIMixin):
289 _inherit = "account.invoice.tax"289 _inherit = "account.invoice.tax"
290290
291291
292292
=== modified file 'account/installer.py'
--- account/installer.py 2012-12-06 14:56:32 +0000
+++ account/installer.py 2012-12-20 15:08:18 +0000
@@ -28,11 +28,11 @@
2828
29from openerp import netsvc, tools29from openerp import netsvc, tools
30from openerp.tools.translate import _30from openerp.tools.translate import _
31from openerp.osv import fields, osv31from openerp.osv import fields, osv, orm
3232
33_logger = logging.getLogger(__name__)33_logger = logging.getLogger(__name__)
3434
35class account_installer(osv.osv_memory):35class account_installer(orm.TransientModel):
36 _name = 'account.installer'36 _name = 'account.installer'
37 _inherit = 'res.config.installer'37 _inherit = 'res.config.installer'
3838
@@ -152,6 +152,5 @@
152 _logger.debug('Installing chart of accounts %s', chart)152 _logger.debug('Installing chart of accounts %s', chart)
153 return modules | set([chart])153 return modules | set([chart])
154154
155account_installer()
156155
157# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:156# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
158157
=== modified file 'account/ir_sequence.py'
--- account/ir_sequence.py 2012-12-06 14:56:32 +0000
+++ account/ir_sequence.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class ir_sequence_fiscalyear(osv.osv):24class ir_sequence_fiscalyear(orm.Model):
25 _name = 'account.sequence.fiscalyear'25 _name = 'account.sequence.fiscalyear'
26 _rec_name = "sequence_main_id"26 _rec_name = "sequence_main_id"
27 _columns = {27 _columns = {
@@ -38,9 +38,8 @@
38 'Main Sequence must be different from current !'),38 'Main Sequence must be different from current !'),
39 ]39 ]
4040
41ir_sequence_fiscalyear()
4241
43class ir_sequence(osv.osv):42class ir_sequence(orm.Model):
44 _inherit = 'ir.sequence'43 _inherit = 'ir.sequence'
45 _columns = {44 _columns = {
46 'fiscal_ids': fields.one2many('account.sequence.fiscalyear',45 'fiscal_ids': fields.one2many('account.sequence.fiscalyear',
@@ -56,6 +55,5 @@
56 return super(ir_sequence, self)._next(cr, uid, [line.sequence_id.id], context)55 return super(ir_sequence, self)._next(cr, uid, [line.sequence_id.id], context)
57 return super(ir_sequence, self)._next(cr, uid, seq_ids, context)56 return super(ir_sequence, self)._next(cr, uid, seq_ids, context)
5857
59ir_sequence()
6058
61# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:59# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6260
=== modified file 'account/partner.py'
--- account/partner.py 2012-12-10 11:16:54 +0000
+++ account/partner.py 2012-12-20 15:08:18 +0000
@@ -22,9 +22,9 @@
22from operator import itemgetter22from operator import itemgetter
23import time23import time
2424
25from openerp.osv import fields, osv25from openerp.osv import fields, osv, orm
2626
27class account_fiscal_position(osv.osv):27class account_fiscal_position(orm.Model):
28 _name = 'account.fiscal.position'28 _name = 'account.fiscal.position'
29 _description = 'Fiscal Position'29 _description = 'Fiscal Position'
30 _columns = {30 _columns = {
@@ -66,9 +66,8 @@
66 break66 break
67 return account_id67 return account_id
6868
69account_fiscal_position()
7069
71class account_fiscal_position_tax(osv.osv):70class account_fiscal_position_tax(orm.Model):
72 _name = 'account.fiscal.position.tax'71 _name = 'account.fiscal.position.tax'
73 _description = 'Taxes Fiscal Position'72 _description = 'Taxes Fiscal Position'
74 _rec_name = 'position_id'73 _rec_name = 'position_id'
@@ -84,9 +83,8 @@
84 'A tax fiscal position could be defined only once time on same taxes.')83 'A tax fiscal position could be defined only once time on same taxes.')
85 ]84 ]
8685
87account_fiscal_position_tax()
8886
89class account_fiscal_position_account(osv.osv):87class account_fiscal_position_account(orm.Model):
90 _name = 'account.fiscal.position.account'88 _name = 'account.fiscal.position.account'
91 _description = 'Accounts Fiscal Position'89 _description = 'Accounts Fiscal Position'
92 _rec_name = 'position_id'90 _rec_name = 'position_id'
@@ -102,9 +100,8 @@
102 'An account fiscal position could be defined only once time on same accounts.')100 'An account fiscal position could be defined only once time on same accounts.')
103 ]101 ]
104102
105account_fiscal_position_account()
106103
107class res_partner(osv.osv):104class res_partner(orm.Model):
108 _name = 'res.partner'105 _name = 'res.partner'
109 _inherit = 'res.partner'106 _inherit = 'res.partner'
110 _description = 'Partner'107 _description = 'Partner'
@@ -236,6 +233,5 @@
236 'last_reconciliation_date': fields.datetime('Latest Reconciliation Date', help='Date on which the partner accounting entries were fully reconciled last time. It differs from the date of the last reconciliation made for this partner, as here we depict the fact that nothing more was to be reconciled at this date. This can be achieved in 2 ways: either the last debit/credit entry was reconciled, either the user pressed the button "Fully Reconciled" in the manual reconciliation process')233 'last_reconciliation_date': fields.datetime('Latest Reconciliation Date', help='Date on which the partner accounting entries were fully reconciled last time. It differs from the date of the last reconciliation made for this partner, as here we depict the fact that nothing more was to be reconciled at this date. This can be achieved in 2 ways: either the last debit/credit entry was reconciled, either the user pressed the button "Fully Reconciled" in the manual reconciliation process')
237 }234 }
238235
239res_partner()
240236
241# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:237# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
242238
=== modified file 'account/product.py'
--- account/product.py 2012-12-06 14:56:32 +0000
+++ account/product.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class product_category(osv.osv):24class product_category(orm.Model):
25 _inherit = "product.category"25 _inherit = "product.category"
26 _columns = {26 _columns = {
27 'property_account_income_categ': fields.property(27 'property_account_income_categ': fields.property(
@@ -39,13 +39,12 @@
39 view_load=True,39 view_load=True,
40 help="This account will be used for invoices to value expenses."),40 help="This account will be used for invoices to value expenses."),
41 }41 }
42product_category()
4342
44#----------------------------------------------------------43#----------------------------------------------------------
45# Products44# Products
46#----------------------------------------------------------45#----------------------------------------------------------
4746
48class product_template(osv.osv):47class product_template(orm.Model):
49 _inherit = "product.template"48 _inherit = "product.template"
50 _columns = {49 _columns = {
51 'taxes_id': fields.many2many('account.tax', 'product_taxes_rel',50 'taxes_id': fields.many2many('account.tax', 'product_taxes_rel',
@@ -70,6 +69,5 @@
70 help="This account will be used for invoices instead of the default one to value expenses for the current product."),69 help="This account will be used for invoices instead of the default one to value expenses for the current product."),
71 }70 }
7271
73product_template()
7472
75# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:73# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7674
=== modified file 'account/project/project.py'
--- account/project/project.py 2012-12-06 14:56:32 +0000
+++ account/project/project.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_analytic_journal(osv.osv):24class account_analytic_journal(orm.Model):
25 _name = 'account.analytic.journal'25 _name = 'account.analytic.journal'
26 _description = 'Analytic Journal'26 _description = 'Analytic Journal'
27 _columns = {27 _columns = {
@@ -38,15 +38,13 @@
38 'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id,38 'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id,
39 }39 }
4040
41account_analytic_journal()
4241
43class account_journal(osv.osv):42class account_journal(orm.Model):
44 _inherit="account.journal"43 _inherit="account.journal"
4544
46 _columns = {45 _columns = {
47 'analytic_journal_id':fields.many2one('account.analytic.journal','Analytic Journal', help="Journal for analytic entries"),46 'analytic_journal_id':fields.many2one('account.analytic.journal','Analytic Journal', help="Journal for analytic entries"),
48 }47 }
4948
50account_journal()
5149
52# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:50# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5351
=== modified file 'account/project/wizard/account_analytic_balance_report.py'
--- account/project/wizard/account_analytic_balance_report.py 2012-12-06 14:56:32 +0000
+++ account/project/wizard/account_analytic_balance_report.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20##############################################################################20##############################################################################
21import time21import time
2222
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
2424
25class account_analytic_balance(osv.osv_memory):25class account_analytic_balance(orm.TransientModel):
26 _name = 'account.analytic.balance'26 _name = 'account.analytic.balance'
27 _description = 'Account Analytic Balance'27 _description = 'Account Analytic Balance'
2828
@@ -52,7 +52,6 @@
52 'datas': datas,52 'datas': datas,
53 }53 }
5454
55account_analytic_balance()
5655
57# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:56# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5857
5958
=== modified file 'account/project/wizard/account_analytic_chart.py'
--- account/project/wizard/account_analytic_chart.py 2012-12-06 14:56:32 +0000
+++ account/project/wizard/account_analytic_chart.py 2012-12-20 15:08:18 +0000
@@ -18,9 +18,9 @@
18# along with this program. If not, see <http://www.gnu.org/licenses/>.18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#19#
20##############################################################################20##############################################################################
21from openerp.osv import fields, osv21from openerp.osv import fields, osv, orm
2222
23class account_analytic_chart(osv.osv_memory):23class account_analytic_chart(orm.TransientModel):
24 _name = 'account.analytic.chart'24 _name = 'account.analytic.chart'
25 _description = 'Account Analytic Chart'25 _description = 'Account Analytic Chart'
2626
@@ -46,5 +46,4 @@
46 result['context'] = str(result_context)46 result['context'] = str(result_context)
47 return result47 return result
4848
49account_analytic_chart()
50# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:49# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5150
=== modified file 'account/project/wizard/account_analytic_cost_ledger_for_journal_report.py'
--- account/project/wizard/account_analytic_cost_ledger_for_journal_report.py 2012-12-06 14:56:32 +0000
+++ account/project/wizard/account_analytic_cost_ledger_for_journal_report.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20##############################################################################20##############################################################################
21import time21import time
2222
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
2424
25class account_analytic_cost_ledger_journal_report(osv.osv_memory):25class account_analytic_cost_ledger_journal_report(orm.TransientModel):
26 _name = 'account.analytic.cost.ledger.journal.report'26 _name = 'account.analytic.cost.ledger.journal.report'
27 _description = 'Account Analytic Cost Ledger For Journal Report'27 _description = 'Account Analytic Cost Ledger For Journal Report'
2828
@@ -52,5 +52,4 @@
52 'datas': datas,52 'datas': datas,
53 }53 }
5454
55account_analytic_cost_ledger_journal_report()
56# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:55# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5756
=== modified file 'account/project/wizard/account_analytic_cost_ledger_report.py'
--- account/project/wizard/account_analytic_cost_ledger_report.py 2012-12-06 14:56:32 +0000
+++ account/project/wizard/account_analytic_cost_ledger_report.py 2012-12-20 15:08:18 +0000
@@ -21,9 +21,9 @@
2121
22import time22import time
2323
24from openerp.osv import osv, fields24from openerp.osv import osv, fields, orm
2525
26class account_analytic_cost_ledger(osv.osv_memory):26class account_analytic_cost_ledger(orm.TransientModel):
27 _name = 'account.analytic.cost.ledger'27 _name = 'account.analytic.cost.ledger'
28 _description = 'Account Analytic Cost Ledger'28 _description = 'Account Analytic Cost Ledger'
2929
@@ -52,5 +52,4 @@
52 'datas': datas,52 'datas': datas,
53 }53 }
5454
55account_analytic_cost_ledger()
56# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:55# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5756
=== modified file 'account/project/wizard/account_analytic_inverted_balance_report.py'
--- account/project/wizard/account_analytic_inverted_balance_report.py 2012-12-06 14:56:32 +0000
+++ account/project/wizard/account_analytic_inverted_balance_report.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20##############################################################################20##############################################################################
21import time21import time
2222
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
2424
25class account_analytic_inverted_balance(osv.osv_memory):25class account_analytic_inverted_balance(orm.TransientModel):
26 _name = 'account.analytic.inverted.balance'26 _name = 'account.analytic.inverted.balance'
27 _description = 'Account Analytic Inverted Balance'27 _description = 'Account Analytic Inverted Balance'
2828
@@ -51,5 +51,4 @@
51 'datas': datas,51 'datas': datas,
52 }52 }
5353
54account_analytic_inverted_balance()
55# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:54# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5655
=== modified file 'account/project/wizard/account_analytic_journal_report.py'
--- account/project/wizard/account_analytic_journal_report.py 2012-12-06 14:56:32 +0000
+++ account/project/wizard/account_analytic_journal_report.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20##############################################################################20##############################################################################
21import time21import time
2222
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
2424
25class account_analytic_journal_report(osv.osv_memory):25class account_analytic_journal_report(orm.TransientModel):
26 _name = 'account.analytic.journal.report'26 _name = 'account.analytic.journal.report'
27 _description = 'Account Analytic Journal'27 _description = 'Account Analytic Journal'
2828
@@ -71,5 +71,4 @@
71 res.update({'analytic_account_journal_id': journal_ids})71 res.update({'analytic_account_journal_id': journal_ids})
72 return res72 return res
7373
74account_analytic_journal_report()
75# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:74# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7675
=== modified file 'account/project/wizard/project_account_analytic_line.py'
--- account/project/wizard/project_account_analytic_line.py 2012-12-06 14:56:32 +0000
+++ account/project/wizard/project_account_analytic_line.py 2012-12-20 15:08:18 +0000
@@ -18,10 +18,10 @@
18# along with this program. If not, see <http://www.gnu.org/licenses/>.18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#19#
20##############################################################################20##############################################################################
21from openerp.osv import fields, osv21from openerp.osv import fields, osv, orm
22from openerp.tools.translate import _22from openerp.tools.translate import _
2323
24class project_account_analytic_line(osv.osv_memory):24class project_account_analytic_line(orm.TransientModel):
25 _name = "project.account.analytic.line"25 _name = "project.account.analytic.line"
26 _description = "Analytic Entries by line"26 _description = "Analytic Entries by line"
27 _columns = {27 _columns = {
@@ -53,6 +53,5 @@
53 'search_view_id': id['res_id'],53 'search_view_id': id['res_id'],
54 }54 }
5555
56project_account_analytic_line()
5756
58# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:57# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5958
=== modified file 'account/report/account_analytic_entries_report.py'
--- account/report/account_analytic_entries_report.py 2012-12-06 14:56:32 +0000
+++ account/report/account_analytic_entries_report.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20##############################################################################20##############################################################################
2121
22from openerp import tools22from openerp import tools
23from openerp.osv import fields,osv23from openerp.osv import fields,osv, orm
2424
25class analytic_entries_report(osv.osv):25class analytic_entries_report(orm.Model):
26 _name = "analytic.entries.report"26 _name = "analytic.entries.report"
27 _description = "Analytic Entries Statistics"27 _description = "Analytic Entries Statistics"
28 _auto = False28 _auto = False
@@ -81,6 +81,5 @@
81 a.move_id,a.product_id,a.product_uom_id81 a.move_id,a.product_id,a.product_uom_id
82 )82 )
83 """)83 """)
84analytic_entries_report()
8584
86# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:85# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
8786
=== modified file 'account/report/account_entries_report.py'
--- account/report/account_entries_report.py 2012-12-17 15:23:03 +0000
+++ account/report/account_entries_report.py 2012-12-20 15:08:18 +0000
@@ -20,10 +20,10 @@
20##############################################################################20##############################################################################
2121
22from openerp import tools22from openerp import tools
23from openerp.osv import fields,osv23from openerp.osv import fields,osv, orm
24import openerp.addons.decimal_precision as dp24import openerp.addons.decimal_precision as dp
2525
26class account_entries_report(osv.osv):26class account_entries_report(orm.Model):
27 _name = "account.entries.report"27 _name = "account.entries.report"
28 _description = "Journal Items Analysis"28 _description = "Journal Items Analysis"
29 _auto = False29 _auto = False
@@ -152,6 +152,5 @@
152 where l.state != 'draft'152 where l.state != 'draft'
153 )153 )
154 """)154 """)
155account_entries_report()
156155
157# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:156# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
158157
=== modified file 'account/report/account_invoice_report.py'
--- account/report/account_invoice_report.py 2012-12-17 15:23:03 +0000
+++ account/report/account_invoice_report.py 2012-12-20 15:08:18 +0000
@@ -21,9 +21,9 @@
2121
22from openerp import tools22from openerp import tools
23import openerp.addons.decimal_precision as dp23import openerp.addons.decimal_precision as dp
24from openerp.osv import fields,osv24from openerp.osv import fields,osv, orm
2525
26class account_invoice_report(osv.osv):26class account_invoice_report(orm.Model):
27 _name = "account.invoice.report"27 _name = "account.invoice.report"
28 _description = "Invoices Statistics"28 _description = "Invoices Statistics"
29 _auto = False29 _auto = False
@@ -217,6 +217,5 @@
217 self._table, 217 self._table,
218 self._select(), self._sub_select(), self._from(), self._group_by()))218 self._select(), self._sub_select(), self._from(), self._group_by()))
219219
220account_invoice_report()
221220
222# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:221# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
223222
=== modified file 'account/report/account_report.py'
--- account/report/account_report.py 2012-12-10 11:16:54 +0000
+++ account/report/account_report.py 2012-12-20 15:08:18 +0000
@@ -25,7 +25,7 @@
2525
26from openerp import pooler26from openerp import pooler
27from openerp import tools27from openerp import tools
28from openerp.osv import fields,osv28from openerp.osv import fields,osv, orm
2929
30def _code_get(self, cr, uid, context=None):30def _code_get(self, cr, uid, context=None):
31 acc_type_obj = self.pool.get('account.account.type')31 acc_type_obj = self.pool.get('account.account.type')
@@ -34,7 +34,7 @@
34 return [(r['code'], r['name']) for r in res]34 return [(r['code'], r['name']) for r in res]
3535
3636
37class report_account_receivable(osv.osv):37class report_account_receivable(orm.Model):
38 _name = "report.account.receivable"38 _name = "report.account.receivable"
39 _description = "Receivable accounts"39 _description = "Receivable accounts"
40 _auto = False40 _auto = False
@@ -67,10 +67,9 @@
67 group by67 group by
68 to_char(date,'YYYY:IW'), a.type68 to_char(date,'YYYY:IW'), a.type
69 )""")69 )""")
70report_account_receivable()
7170
72 #a.type in ('receivable','payable')71 #a.type in ('receivable','payable')
73class temp_range(osv.osv):72class temp_range(orm.Model):
74 _name = 'temp.range'73 _name = 'temp.range'
75 _description = 'A Temporary table used for Dashboard view'74 _description = 'A Temporary table used for Dashboard view'
7675
@@ -78,9 +77,8 @@
78 'name': fields.char('Range',size=64)77 'name': fields.char('Range',size=64)
79 }78 }
8079
81temp_range()
8280
83class report_aged_receivable(osv.osv):81class report_aged_receivable(orm.Model):
84 _name = "report.aged.receivable"82 _name = "report.aged.receivable"
85 _description = "Aged Receivable Till Today"83 _description = "Aged Receivable Till Today"
86 _auto = False84 _auto = False
@@ -148,9 +146,8 @@
148 select id,name from temp_range146 select id,name from temp_range
149 )""")147 )""")
150148
151report_aged_receivable()
152149
153class report_invoice_created(osv.osv):150class report_invoice_created(orm.Model):
154 _name = "report.invoice.created"151 _name = "report.invoice.created"
155 _description = "Report of Invoices Created within Last 15 days"152 _description = "Report of Invoices Created within Last 15 days"
156 _auto = False153 _auto = False
@@ -201,9 +198,8 @@
201 AND198 AND
202 (to_date(to_char(inv.create_date, 'YYYY-MM-dd'),'YYYY-MM-dd') > (CURRENT_DATE-15))199 (to_date(to_char(inv.create_date, 'YYYY-MM-dd'),'YYYY-MM-dd') > (CURRENT_DATE-15))
203 )""")200 )""")
204report_invoice_created()
205201
206class report_account_type_sales(osv.osv):202class report_account_type_sales(orm.Model):
207 _name = "report.account_type.sales"203 _name = "report.account_type.sales"
208 _description = "Report of the Sales by Account Type"204 _description = "Report of the Sales by Account Type"
209 _auto = False205 _auto = False
@@ -242,10 +238,9 @@
242 group by238 group by
243 to_char(inv.date_invoice, 'YYYY'),to_char(inv.date_invoice,'MM'),inv.currency_id, inv.period_id, inv_line.product_id, account.user_type239 to_char(inv.date_invoice, 'YYYY'),to_char(inv.date_invoice,'MM'),inv.currency_id, inv.period_id, inv_line.product_id, account.user_type
244 )""")240 )""")
245report_account_type_sales()241
246242
247243class report_account_sales(orm.Model):
248class report_account_sales(osv.osv):
249 _name = "report.account.sales"244 _name = "report.account.sales"
250 _description = "Report of the Sales by Account"245 _description = "Report of the Sales by Account"
251 _auto = False246 _auto = False
@@ -284,6 +279,5 @@
284 group by279 group by
285 to_char(inv.date_invoice, 'YYYY'),to_char(inv.date_invoice,'MM'),inv.currency_id, inv.period_id, inv_line.product_id, account.id280 to_char(inv.date_invoice, 'YYYY'),to_char(inv.date_invoice,'MM'),inv.currency_id, inv.period_id, inv_line.product_id, account.id
286 )""")281 )""")
287report_account_sales()
288282
289# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:283# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
290284
=== modified file 'account/report/account_treasury_report.py'
--- account/report/account_treasury_report.py 2012-12-17 15:23:03 +0000
+++ account/report/account_treasury_report.py 2012-12-20 15:08:18 +0000
@@ -20,10 +20,10 @@
20##############################################################################20##############################################################################
2121
22from openerp import tools22from openerp import tools
23from openerp.osv import fields,osv23from openerp.osv import fields,osv, orm
24import openerp.addons.decimal_precision as dp24import openerp.addons.decimal_precision as dp
2525
26class account_treasury_report(osv.osv):26class account_treasury_report(orm.Model):
27 _name = "account.treasury.report"27 _name = "account.treasury.report"
28 _description = "Treasury Analysis"28 _description = "Treasury Analysis"
29 _auto = False29 _auto = False
@@ -78,6 +78,5 @@
78 group by p.id, p.fiscalyear_id, p.date_start, am.company_id78 group by p.id, p.fiscalyear_id, p.date_start, am.company_id
79 )79 )
80 """)80 """)
81account_treasury_report()
8281
83# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:82# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
8483
=== modified file 'account/res_config.py'
--- account/res_config.py 2012-12-10 11:16:54 +0000
+++ account/res_config.py 2012-12-20 15:08:18 +0000
@@ -26,10 +26,10 @@
26from os.path import join as opj26from os.path import join as opj
2727
28from openerp.tools.translate import _28from openerp.tools.translate import _
29from openerp.osv import fields, osv29from openerp.osv import fields, osv, orm
30from openerp import tools30from openerp import tools
3131
32class account_config_settings(osv.osv_memory):32class account_config_settings(orm.TransientModel):
33 _name = 'account.config.settings'33 _name = 'account.config.settings'
34 _inherit = 'res.config.settings'34 _inherit = 'res.config.settings'
3535
3636
=== modified file 'account/res_currency.py'
--- account/res_currency.py 2012-12-10 11:16:54 +0000
+++ account/res_currency.py 2012-12-20 15:08:18 +0000
@@ -18,11 +18,11 @@
18#18#
19##############################################################################19##############################################################################
2020
21from openerp.osv import osv21from openerp.osv import osv, orm
2222
23"""Inherit res.currency to handle accounting date values when converting currencies"""23"""Inherit res.currency to handle accounting date values when converting currencies"""
2424
25class res_currency_account(osv.osv):25class res_currency_account(orm.Model):
26 _inherit = "res.currency"26 _inherit = "res.currency"
2727
28 def _get_conversion_rate(self, cr, uid, from_currency, to_currency, context=None):28 def _get_conversion_rate(self, cr, uid, from_currency, to_currency, context=None):
@@ -43,6 +43,5 @@
43 rate = float(tot2)/float(tot1)43 rate = float(tot2)/float(tot1)
44 return rate44 return rate
4545
46res_currency_account()
4746
48# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:47# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4948
=== modified file 'account/wizard/account_automatic_reconcile.py'
--- account/wizard/account_automatic_reconcile.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_automatic_reconcile.py 2012-12-20 15:08:18 +0000
@@ -21,10 +21,10 @@
2121
22import time22import time
2323
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
25from openerp.tools.translate import _25from openerp.tools.translate import _
2626
27class account_automatic_reconcile(osv.osv_memory):27class account_automatic_reconcile(orm.TransientModel):
28 _name = 'account.automatic.reconcile'28 _name = 'account.automatic.reconcile'
29 _description = 'Automatic Reconcile'29 _description = 'Automatic Reconcile'
3030
@@ -246,6 +246,5 @@
246 'context': context,246 'context': context,
247 }247 }
248248
249account_automatic_reconcile()
250249
251# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:250# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
252251
=== modified file 'account/wizard/account_change_currency.py'
--- account/wizard/account_change_currency.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_change_currency.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class account_change_currency(osv.osv_memory):25class account_change_currency(orm.TransientModel):
26 _name = 'account.change.currency'26 _name = 'account.change.currency'
27 _description = 'Change Currency'27 _description = 'Change Currency'
28 _columns = {28 _columns = {
@@ -73,6 +73,5 @@
73 obj_inv.write(cr, uid, [invoice.id], {'currency_id': new_currency}, context=context)73 obj_inv.write(cr, uid, [invoice.id], {'currency_id': new_currency}, context=context)
74 return {'type': 'ir.actions.act_window_close'}74 return {'type': 'ir.actions.act_window_close'}
7575
76account_change_currency()
7776
78# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:77# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7978
=== modified file 'account/wizard/account_chart.py'
--- account/wizard/account_chart.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_chart.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_chart(osv.osv_memory):24class account_chart(orm.TransientModel):
25 """25 """
26 For Chart of Accounts26 For Chart of Accounts
27 """27 """
@@ -105,6 +105,5 @@
105 'fiscalyear': _get_fiscalyear,105 'fiscalyear': _get_fiscalyear,
106 }106 }
107107
108account_chart()
109108
110# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:109# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
111110
=== modified file 'account/wizard/account_financial_report.py'
--- account/wizard/account_financial_report.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_financial_report.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class accounting_report(osv.osv_memory):24class accounting_report(orm.TransientModel):
25 _name = "accounting.report"25 _name = "accounting.report"
26 _inherit = "account.common.report"26 _inherit = "account.common.report"
27 _description = "Accounting Report"27 _description = "Accounting Report"
@@ -93,6 +93,5 @@
93 'datas': data,93 'datas': data,
94 }94 }
9595
96accounting_report()
9796
98# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:97# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
9998
=== modified file 'account/wizard/account_fiscalyear_close.py'
--- account/wizard/account_fiscalyear_close.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_fiscalyear_close.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class account_fiscalyear_close(osv.osv_memory):25class account_fiscalyear_close(orm.TransientModel):
26 """26 """
27 Closes Account Fiscalyear and Generate Opening entries for New Fiscalyear27 Closes Account Fiscalyear and Generate Opening entries for New Fiscalyear
28 """28 """
@@ -278,6 +278,5 @@
278278
279 return {'type': 'ir.actions.act_window_close'}279 return {'type': 'ir.actions.act_window_close'}
280280
281account_fiscalyear_close()
282281
283# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:282# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
284283
=== modified file 'account/wizard/account_fiscalyear_close_state.py'
--- account/wizard/account_fiscalyear_close_state.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_fiscalyear_close_state.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class account_fiscalyear_close_state(osv.osv_memory):25class account_fiscalyear_close_state(orm.TransientModel):
26 """26 """
27 Closes Account Fiscalyear27 Closes Account Fiscalyear
28 """28 """
@@ -56,6 +56,5 @@
5656
57 return {'type': 'ir.actions.act_window_close'}57 return {'type': 'ir.actions.act_window_close'}
5858
59account_fiscalyear_close_state()
6059
61# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:60# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6261
=== modified file 'account/wizard/account_invoice_refund.py'
--- account/wizard/account_invoice_refund.py 2012-12-18 17:42:25 +0000
+++ account/wizard/account_invoice_refund.py 2012-12-20 15:08:18 +0000
@@ -21,11 +21,11 @@
2121
22import time22import time
2323
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
25from openerp.tools.translate import _25from openerp.tools.translate import _
26from openerp import netsvc26from openerp import netsvc
2727
28class account_invoice_refund(osv.osv_memory):28class account_invoice_refund(orm.TransientModel):
2929
30 """Refunds invoice"""30 """Refunds invoice"""
3131
@@ -223,6 +223,5 @@
223 return self.compute_refund(cr, uid, ids, data_refund, context=context)223 return self.compute_refund(cr, uid, ids, data_refund, context=context)
224224
225225
226account_invoice_refund()
227226
228# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:227# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
229228
=== modified file 'account/wizard/account_invoice_state.py'
--- account/wizard/account_invoice_state.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_invoice_state.py 2012-12-20 15:08:18 +0000
@@ -19,12 +19,12 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv22from openerp.osv import osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
24from openerp import netsvc24from openerp import netsvc
25from openerp import pooler25from openerp import pooler
2626
27class account_invoice_confirm(osv.osv_memory):27class account_invoice_confirm(orm.TransientModel):
28 """28 """
29 This wizard will confirm the all the selected draft invoices29 This wizard will confirm the all the selected draft invoices
30 """30 """
@@ -45,9 +45,8 @@
45 wf_service.trg_validate(uid, 'account.invoice', record['id'], 'invoice_open', cr)45 wf_service.trg_validate(uid, 'account.invoice', record['id'], 'invoice_open', cr)
46 return {'type': 'ir.actions.act_window_close'}46 return {'type': 'ir.actions.act_window_close'}
4747
48account_invoice_confirm()
4948
50class account_invoice_cancel(osv.osv_memory):49class account_invoice_cancel(orm.TransientModel):
51 """50 """
52 This wizard will cancel the all the selected invoices.51 This wizard will cancel the all the selected invoices.
53 If in the journal, the option allow cancelling entry is not selected then it will give warning message.52 If in the journal, the option allow cancelling entry is not selected then it will give warning message.
@@ -69,6 +68,5 @@
69 wf_service.trg_validate(uid, 'account.invoice', record['id'], 'invoice_cancel', cr)68 wf_service.trg_validate(uid, 'account.invoice', record['id'], 'invoice_cancel', cr)
70 return {'type': 'ir.actions.act_window_close'}69 return {'type': 'ir.actions.act_window_close'}
7170
72account_invoice_cancel()
7371
74# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:72# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7573
=== modified file 'account/wizard/account_journal_select.py'
--- account/wizard/account_journal_select.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_journal_select.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv22from openerp.osv import osv, orm
2323
24class account_journal_select(osv.osv_memory):24class account_journal_select(orm.TransientModel):
25 """25 """
26 Account Journal Select26 Account Journal Select
27 """27 """
@@ -45,6 +45,5 @@
45 result['context'] = str({'journal_id': journal_id, 'period_id': period_id})45 result['context'] = str({'journal_id': journal_id, 'period_id': period_id})
46 return result46 return result
4747
48account_journal_select()
4948
50# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:49# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5150
=== modified file 'account/wizard/account_move_bank_reconcile.py'
--- account/wizard/account_move_bank_reconcile.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_move_bank_reconcile.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class account_move_bank_reconcile(osv.osv_memory):25class account_move_bank_reconcile(orm.TransientModel):
26 """26 """
27 Bank Reconciliation27 Bank Reconciliation
28 """28 """
@@ -59,6 +59,5 @@
59 'type': 'ir.actions.act_window'59 'type': 'ir.actions.act_window'
60 }60 }
6161
62account_move_bank_reconcile()
6362
64# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:63# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6564
=== modified file 'account/wizard/account_move_line_reconcile_select.py'
--- account/wizard/account_move_line_reconcile_select.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_move_line_reconcile_select.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class account_move_line_reconcile_select(osv.osv_memory):25class account_move_line_reconcile_select(orm.TransientModel):
26 _name = "account.move.line.reconcile.select"26 _name = "account.move.line.reconcile.select"
27 _description = "Move line reconcile select"27 _description = "Move line reconcile select"
28 _columns = {28 _columns = {
@@ -50,6 +50,5 @@
50 'type': 'ir.actions.act_window'50 'type': 'ir.actions.act_window'
51 }51 }
5252
53account_move_line_reconcile_select()
5453
55# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:54# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5655
=== modified file 'account/wizard/account_move_line_select.py'
--- account/wizard/account_move_line_select.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_move_line_select.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv22from openerp.osv import osv, orm
2323
24class account_move_line_select(osv.osv_memory):24class account_move_line_select(orm.TransientModel):
25 """25 """
26 Account move line select26 Account move line select
27 """27 """
@@ -67,6 +67,5 @@
67 result['domain']=result['domain'][0:-1]+','+domain+result['domain'][-1]67 result['domain']=result['domain'][0:-1]+','+domain+result['domain'][-1]
68 return result68 return result
6969
70account_move_line_select()
7170
72# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:71# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7372
=== modified file 'account/wizard/account_move_line_unreconcile_select.py'
--- account/wizard/account_move_line_unreconcile_select.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_move_line_unreconcile_select.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_move_line_unreconcile_select(osv.osv_memory):24class account_move_line_unreconcile_select(orm.TransientModel):
25 _name = "account.move.line.unreconcile.select"25 _name = "account.move.line.unreconcile.select"
26 _description = "Unreconciliation"26 _description = "Unreconciliation"
27 _columns ={27 _columns ={
@@ -39,6 +39,5 @@
39 'type': 'ir.actions.act_window'39 'type': 'ir.actions.act_window'
40 }40 }
4141
42account_move_line_unreconcile_select()
4342
44# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:43# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4544
=== modified file 'account/wizard/account_open_closed_fiscalyear.py'
--- account/wizard/account_open_closed_fiscalyear.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_open_closed_fiscalyear.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class account_open_closed_fiscalyear(osv.osv_memory):25class account_open_closed_fiscalyear(orm.TransientModel):
26 _name = "account.open.closed.fiscalyear"26 _name = "account.open.closed.fiscalyear"
27 _description = "Choose Fiscal Year"27 _description = "Choose Fiscal Year"
28 _columns = {28 _columns = {
@@ -43,6 +43,5 @@
43 cr.execute('delete from account_move where id IN %s', (tuple(ids_move),))43 cr.execute('delete from account_move where id IN %s', (tuple(ids_move),))
44 return {'type': 'ir.actions.act_window_close'}44 return {'type': 'ir.actions.act_window_close'}
4545
46account_open_closed_fiscalyear()
4746
48# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:47# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4948
=== modified file 'account/wizard/account_period_close.py'
--- account/wizard/account_period_close.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_period_close.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class account_period_close(osv.osv_memory):25class account_period_close(orm.TransientModel):
26 """26 """
27 close period27 close period
28 """28 """
@@ -55,6 +55,5 @@
5555
56 return {'type': 'ir.actions.act_window_close'}56 return {'type': 'ir.actions.act_window_close'}
5757
58account_period_close()
5958
60# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:59# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6160
=== modified file 'account/wizard/account_reconcile.py'
--- account/wizard/account_reconcile.py 2012-12-17 15:23:03 +0000
+++ account/wizard/account_reconcile.py 2012-12-20 15:08:18 +0000
@@ -21,11 +21,11 @@
2121
22import time22import time
2323
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
25from openerp.tools.translate import _25from openerp.tools.translate import _
26import openerp.addons.decimal_precision as dp26import openerp.addons.decimal_precision as dp
2727
28class account_move_line_reconcile(osv.osv_memory):28class account_move_line_reconcile(orm.TransientModel):
29 """29 """
30 Account move line reconcile wizard, it checks for the write off the reconcile entry or directly reconcile.30 Account move line reconcile wizard, it checks for the write off the reconcile entry or directly reconcile.
31 """31 """
@@ -91,9 +91,8 @@
91 period_id, journal_id, context=context)91 period_id, journal_id, context=context)
92 return {'type': 'ir.actions.act_window_close'}92 return {'type': 'ir.actions.act_window_close'}
9393
94account_move_line_reconcile()
9594
96class account_move_line_reconcile_writeoff(osv.osv_memory):95class account_move_line_reconcile_writeoff(orm.TransientModel):
97 """96 """
98 It opens the write off wizard form, in that user can define the journal, account, analytic account for reconcile97 It opens the write off wizard form, in that user can define the journal, account, analytic account for reconcile
99 """98 """
@@ -158,6 +157,5 @@
158 period_id, journal_id, context=context)157 period_id, journal_id, context=context)
159 return {'type': 'ir.actions.act_window_close'}158 return {'type': 'ir.actions.act_window_close'}
160159
161account_move_line_reconcile_writeoff()
162160
163# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:161# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
164162
=== modified file 'account/wizard/account_reconcile_partner_process.py'
--- account/wizard/account_reconcile_partner_process.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_reconcile_partner_process.py 2012-12-20 15:08:18 +0000
@@ -21,9 +21,9 @@
2121
22import time22import time
2323
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
2525
26class account_partner_reconcile_process(osv.osv_memory):26class account_partner_reconcile_process(orm.TransientModel):
27 _name = 'account.partner.reconcile.process'27 _name = 'account.partner.reconcile.process'
28 _description = 'Reconcilation Process partner by partner'28 _description = 'Reconcilation Process partner by partner'
2929
@@ -98,6 +98,5 @@
98 'next_partner_id': _get_partner,98 'next_partner_id': _get_partner,
99 }99 }
100100
101account_partner_reconcile_process()
102101
103# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:102# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
104103
=== modified file 'account/wizard/account_report_account_balance.py'
--- account/wizard/account_report_account_balance.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_report_account_balance.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_balance_report(osv.osv_memory):24class account_balance_report(orm.TransientModel):
25 _inherit = "account.common.account.report"25 _inherit = "account.common.account.report"
26 _name = 'account.balance.report'26 _name = 'account.balance.report'
27 _description = 'Trial Balance Report'27 _description = 'Trial Balance Report'
@@ -38,6 +38,5 @@
38 data = self.pre_print_report(cr, uid, ids, data, context=context)38 data = self.pre_print_report(cr, uid, ids, data, context=context)
39 return {'type': 'ir.actions.report.xml', 'report_name': 'account.account.balance', 'datas': data}39 return {'type': 'ir.actions.report.xml', 'report_name': 'account.account.balance', 'datas': data}
4040
41account_balance_report()
4241
43# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:42# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4443
=== modified file 'account/wizard/account_report_aged_partner_balance.py'
--- account/wizard/account_report_aged_partner_balance.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_report_aged_partner_balance.py 2012-12-20 15:08:18 +0000
@@ -22,10 +22,10 @@
22import time22import time
23from datetime import datetime23from datetime import datetime
24from dateutil.relativedelta import relativedelta24from dateutil.relativedelta import relativedelta
25from openerp.osv import fields, osv25from openerp.osv import fields, osv, orm
26from openerp.tools.translate import _26from openerp.tools.translate import _
2727
28class account_aged_trial_balance(osv.osv_memory):28class account_aged_trial_balance(orm.TransientModel):
29 _inherit = 'account.common.partner.report'29 _inherit = 'account.common.partner.report'
30 _name = 'account.aged.trial.balance'30 _name = 'account.aged.trial.balance'
31 _description = 'Account Aged Trial balance Report'31 _description = 'Account Aged Trial balance Report'
@@ -86,6 +86,5 @@
86 'datas': data86 'datas': data
87 }87 }
8888
89account_aged_trial_balance()
9089
91# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:90# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
9291
=== modified file 'account/wizard/account_report_central_journal.py'
--- account/wizard/account_report_central_journal.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_report_central_journal.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_central_journal(osv.osv_memory):24class account_central_journal(orm.TransientModel):
25 _name = 'account.central.journal'25 _name = 'account.central.journal'
26 _description = 'Account Central Journal'26 _description = 'Account Central Journal'
27 _inherit = "account.common.journal.report"27 _inherit = "account.common.journal.report"
@@ -38,7 +38,6 @@
38 'datas': data,38 'datas': data,
39 }39 }
4040
41account_central_journal()
4241
43#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:42#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4443
4544
=== modified file 'account/wizard/account_report_common.py'
--- account/wizard/account_report_common.py 2012-12-19 23:31:33 +0000
+++ account/wizard/account_report_common.py 2012-12-20 15:08:18 +0000
@@ -22,11 +22,11 @@
22import time22import time
23from lxml import etree23from lxml import etree
2424
25from openerp.osv import fields, osv25from openerp.osv import fields, osv, orm
26from openerp.osv.orm import setup_modifiers26from openerp.osv.orm import setup_modifiers
27from openerp.tools.translate import _27from openerp.tools.translate import _
2828
29class account_common_report(osv.osv_memory):29class account_common_report(orm.TransientModel):
30 _name = "account.common.report"30 _name = "account.common.report"
31 _description = "Account Common Report"31 _description = "Account Common Report"
3232
@@ -178,6 +178,5 @@
178 data['form']['used_context'] = used_context178 data['form']['used_context'] = used_context
179 return self._print_report(cr, uid, ids, data, context=context)179 return self._print_report(cr, uid, ids, data, context=context)
180180
181account_common_report()
182181
183# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:182# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
184183
=== modified file 'account/wizard/account_report_common_account.py'
--- account/wizard/account_report_common_account.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_report_common_account.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_common_account_report(osv.osv_memory):24class account_common_account_report(orm.TransientModel):
25 _name = 'account.common.account.report'25 _name = 'account.common.account.report'
26 _description = 'Account Common Account Report'26 _description = 'Account Common Account Report'
27 _inherit = "account.common.report"27 _inherit = "account.common.report"
@@ -41,7 +41,6 @@
41 data['form'].update(self.read(cr, uid, ids, ['display_account'], context=context)[0])41 data['form'].update(self.read(cr, uid, ids, ['display_account'], context=context)[0])
42 return data42 return data
4343
44account_common_account_report()
4544
46#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:45#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4746
4847
=== modified file 'account/wizard/account_report_common_journal.py'
--- account/wizard/account_report_common_journal.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_report_common_journal.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_common_journal_report(osv.osv_memory):24class account_common_journal_report(orm.TransientModel):
25 _name = 'account.common.journal.report'25 _name = 'account.common.journal.report'
26 _description = 'Account Common Journal Report'26 _description = 'Account Common Journal Report'
27 _inherit = "account.common.report"27 _inherit = "account.common.report"
@@ -50,6 +50,5 @@
50 data['form']['active_ids'] = self.pool.get('account.journal.period').search(cr, uid, [('journal_id', 'in', data['form']['journal_ids']), ('period_id', 'in', period_list)], context=context)50 data['form']['active_ids'] = self.pool.get('account.journal.period').search(cr, uid, [('journal_id', 'in', data['form']['journal_ids']), ('period_id', 'in', period_list)], context=context)
51 return data51 return data
5252
53account_common_journal_report()
5453
55# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:54# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5655
=== modified file 'account/wizard/account_report_common_partner.py'
--- account/wizard/account_report_common_partner.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_report_common_partner.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_common_partner_report(osv.osv_memory):24class account_common_partner_report(orm.TransientModel):
25 _name = 'account.common.partner.report'25 _name = 'account.common.partner.report'
26 _description = 'Account Common Partner Report'26 _description = 'Account Common Partner Report'
27 _inherit = "account.common.report"27 _inherit = "account.common.report"
@@ -42,7 +42,6 @@
42 data['form'].update(self.read(cr, uid, ids, ['result_selection'], context=context)[0])42 data['form'].update(self.read(cr, uid, ids, ['result_selection'], context=context)[0])
43 return data43 return data
4444
45account_common_partner_report()
4645
47#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:46#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
48# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:47# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4948
=== modified file 'account/wizard/account_report_general_journal.py'
--- account/wizard/account_report_general_journal.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_report_general_journal.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_general_journal(osv.osv_memory):24class account_general_journal(orm.TransientModel):
25 _inherit = "account.common.journal.report"25 _inherit = "account.common.journal.report"
26 _name = 'account.general.journal'26 _name = 'account.general.journal'
27 _description = 'Account General Journal'27 _description = 'Account General Journal'
@@ -34,7 +34,6 @@
34 data = self.pre_print_report(cr, uid, ids, data, context=context)34 data = self.pre_print_report(cr, uid, ids, data, context=context)
35 return {'type': 'ir.actions.report.xml', 'report_name': 'account.general.journal', 'datas': data}35 return {'type': 'ir.actions.report.xml', 'report_name': 'account.general.journal', 'datas': data}
3636
37account_general_journal()
3837
39#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:38#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4039
4140
=== modified file 'account/wizard/account_report_general_ledger.py'
--- account/wizard/account_report_general_ledger.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_report_general_ledger.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_report_general_ledger(osv.osv_memory):24class account_report_general_ledger(orm.TransientModel):
25 _inherit = "account.common.account.report"25 _inherit = "account.common.account.report"
26 _name = "account.report.general.ledger"26 _name = "account.report.general.ledger"
27 _description = "General Ledger Report"27 _description = "General Ledger Report"
@@ -58,6 +58,5 @@
58 return { 'type': 'ir.actions.report.xml', 'report_name': 'account.general.ledger_landscape', 'datas': data}58 return { 'type': 'ir.actions.report.xml', 'report_name': 'account.general.ledger_landscape', 'datas': data}
59 return { 'type': 'ir.actions.report.xml', 'report_name': 'account.general.ledger', 'datas': data}59 return { 'type': 'ir.actions.report.xml', 'report_name': 'account.general.ledger', 'datas': data}
6060
61account_report_general_ledger()
6261
63# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:62# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6463
=== modified file 'account/wizard/account_report_partner_balance.py'
--- account/wizard/account_report_partner_balance.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_report_partner_balance.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_partner_balance(osv.osv_memory):24class account_partner_balance(orm.TransientModel):
25 """25 """
26 This wizard will provide the partner balance report by periods, between any two dates.26 This wizard will provide the partner balance report by periods, between any two dates.
27 """27 """
@@ -50,6 +50,5 @@
50 'datas': data,50 'datas': data,
51 }51 }
5252
53account_partner_balance()
5453
55# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:54# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5655
=== modified file 'account/wizard/account_report_partner_ledger.py'
--- account/wizard/account_report_partner_ledger.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_report_partner_ledger.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_partner_ledger(osv.osv_memory):24class account_partner_ledger(orm.TransientModel):
25 """25 """
26 This wizard will provide the partner Ledger report by periods, between any two dates.26 This wizard will provide the partner Ledger report by periods, between any two dates.
27 """27 """
@@ -67,6 +67,5 @@
67 'datas': data,67 'datas': data,
68 }68 }
6969
70account_partner_ledger()
7170
72# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:71# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7372
=== modified file 'account/wizard/account_report_print_journal.py'
--- account/wizard/account_report_print_journal.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_report_print_journal.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from lxml import etree23from lxml import etree
2424
25class account_print_journal(osv.osv_memory):25class account_print_journal(orm.TransientModel):
26 _inherit = "account.common.journal.report"26 _inherit = "account.common.journal.report"
27 _name = 'account.print.journal'27 _name = 'account.print.journal'
28 _description = 'Account Print Journal'28 _description = 'Account Print Journal'
@@ -72,7 +72,6 @@
72 report_name = 'account.journal.period.print'72 report_name = 'account.journal.period.print'
73 return {'type': 'ir.actions.report.xml', 'report_name': report_name, 'datas': data}73 return {'type': 'ir.actions.report.xml', 'report_name': report_name, 'datas': data}
7474
75account_print_journal()
7675
77#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:76#vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7877
7978
=== modified file 'account/wizard/account_state_open.py'
--- account/wizard/account_state_open.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_state_open.py 2012-12-20 15:08:18 +0000
@@ -18,12 +18,12 @@
18# along with this program. If not, see <http://www.gnu.org/licenses/>.18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#19#
20##############################################################################20##############################################################################
21from openerp.osv import osv21from openerp.osv import osv, orm
2222
23from openerp import netsvc23from openerp import netsvc
24from openerp.tools.translate import _24from openerp.tools.translate import _
2525
26class account_state_open(osv.osv_memory):26class account_state_open(orm.TransientModel):
27 _name = 'account.state.open'27 _name = 'account.state.open'
28 _description = 'Account State Open'28 _description = 'Account State Open'
2929
@@ -39,6 +39,5 @@
39 wf_service.trg_validate(uid, 'account.invoice', context['active_ids'][0], 'open_test', cr)39 wf_service.trg_validate(uid, 'account.invoice', context['active_ids'][0], 'open_test', cr)
40 return {'type': 'ir.actions.act_window_close'}40 return {'type': 'ir.actions.act_window_close'}
4141
42account_state_open()
4342
44# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:43# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4544
=== modified file 'account/wizard/account_subscription_generate.py'
--- account/wizard/account_subscription_generate.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_subscription_generate.py 2012-12-20 15:08:18 +0000
@@ -21,9 +21,9 @@
2121
22import time22import time
2323
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
2525
26class account_subscription_generate(osv.osv_memory):26class account_subscription_generate(orm.TransientModel):
2727
28 _name = "account.subscription.generate"28 _name = "account.subscription.generate"
29 _description = "Subscription Compute"29 _description = "Subscription Compute"
@@ -48,6 +48,5 @@
48 result['domain'] = str([('id','in',moves_created)])48 result['domain'] = str([('id','in',moves_created)])
49 return result49 return result
5050
51account_subscription_generate()
5251
53# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:52# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5453
=== modified file 'account/wizard/account_tax_chart.py'
--- account/wizard/account_tax_chart.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_tax_chart.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_tax_chart(osv.osv_memory):24class account_tax_chart(orm.TransientModel):
25 """25 """
26 For Chart of taxes26 For Chart of taxes
27 """27 """
@@ -73,6 +73,5 @@
73 'target_move': 'posted'73 'target_move': 'posted'
74 }74 }
7575
76account_tax_chart()
7776
78# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:77# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7978
=== modified file 'account/wizard/account_unreconcile.py'
--- account/wizard/account_unreconcile.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_unreconcile.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv22from openerp.osv import osv, orm
2323
24class account_unreconcile(osv.osv_memory):24class account_unreconcile(orm.TransientModel):
25 _name = "account.unreconcile"25 _name = "account.unreconcile"
26 _description = "Account Unreconcile"26 _description = "Account Unreconcile"
2727
@@ -33,9 +33,8 @@
33 obj_move_line._remove_move_reconcile(cr, uid, context['active_ids'], context=context)33 obj_move_line._remove_move_reconcile(cr, uid, context['active_ids'], context=context)
34 return {'type': 'ir.actions.act_window_close'}34 return {'type': 'ir.actions.act_window_close'}
3535
36account_unreconcile()
3736
38class account_unreconcile_reconcile(osv.osv_memory):37class account_unreconcile_reconcile(orm.TransientModel):
39 _name = "account.unreconcile.reconcile"38 _name = "account.unreconcile.reconcile"
40 _description = "Account Unreconcile Reconcile"39 _description = "Account Unreconcile Reconcile"
4140
@@ -48,6 +47,5 @@
48 obj_move_reconcile.unlink(cr, uid, rec_ids, context=context)47 obj_move_reconcile.unlink(cr, uid, rec_ids, context=context)
49 return {'type': 'ir.actions.act_window_close'}48 return {'type': 'ir.actions.act_window_close'}
5049
51account_unreconcile_reconcile()
5250
53# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:51# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5452
=== modified file 'account/wizard/account_use_model.py'
--- account/wizard/account_use_model.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_use_model.py 2012-12-20 15:08:18 +0000
@@ -20,10 +20,10 @@
20##############################################################################20##############################################################################
21import time21import time
2222
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
24from openerp.tools.translate import _24from openerp.tools.translate import _
2525
26class account_use_model(osv.osv_memory):26class account_use_model(orm.TransientModel):
2727
28 _name = 'account.use.model'28 _name = 'account.use.model'
29 _description = 'Use model'29 _description = 'Use model'
@@ -71,6 +71,5 @@
71 'type': 'ir.actions.act_window',71 'type': 'ir.actions.act_window',
72 }72 }
7373
74account_use_model()
7574
76# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:75# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7776
=== modified file 'account/wizard/account_validate_account_move.py'
--- account/wizard/account_validate_account_move.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_validate_account_move.py 2012-12-20 15:08:18 +0000
@@ -18,10 +18,10 @@
18# along with this program. If not, see <http://www.gnu.org/licenses/>.18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#19#
20##############################################################################20##############################################################################
21from openerp.osv import fields, osv21from openerp.osv import fields, osv, orm
22from openerp.tools.translate import _22from openerp.tools.translate import _
2323
24class validate_account_move(osv.osv_memory):24class validate_account_move(orm.TransientModel):
25 _name = "validate.account.move"25 _name = "validate.account.move"
26 _description = "Validate Account Move"26 _description = "Validate Account Move"
27 _columns = {27 _columns = {
@@ -40,9 +40,8 @@
40 obj_move.button_validate(cr, uid, ids_move, context=context)40 obj_move.button_validate(cr, uid, ids_move, context=context)
41 return {'type': 'ir.actions.act_window_close'}41 return {'type': 'ir.actions.act_window_close'}
4242
43validate_account_move()
4443
45class validate_account_move_lines(osv.osv_memory):44class validate_account_move_lines(orm.TransientModel):
46 _name = "validate.account.move.lines"45 _name = "validate.account.move.lines"
47 _description = "Validate Account Move Lines"46 _description = "Validate Account Move Lines"
4847
@@ -61,7 +60,6 @@
61 raise osv.except_osv(_('Warning!'), _('Selected Entry Lines does not have any account move enties in draft state.'))60 raise osv.except_osv(_('Warning!'), _('Selected Entry Lines does not have any account move enties in draft state.'))
62 obj_move.button_validate(cr, uid, move_ids, context)61 obj_move.button_validate(cr, uid, move_ids, context)
63 return {'type': 'ir.actions.act_window_close'}62 return {'type': 'ir.actions.act_window_close'}
64validate_account_move_lines()
6563
66# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:64# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6765
6866
=== modified file 'account/wizard/account_vat.py'
--- account/wizard/account_vat.py 2012-12-06 14:56:32 +0000
+++ account/wizard/account_vat.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_vat_declaration(osv.osv_memory):24class account_vat_declaration(orm.TransientModel):
25 _name = 'account.vat.declaration'25 _name = 'account.vat.declaration'
26 _description = 'Account Vat Declaration'26 _description = 'Account Vat Declaration'
27 _inherit = "account.common.report"27 _inherit = "account.common.report"
@@ -59,6 +59,5 @@
59 'datas': datas,59 'datas': datas,
60 }60 }
6161
62account_vat_declaration()
6362
64# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:63# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6564
=== modified file 'account/wizard/pos_box.py'
--- account/wizard/pos_box.py 2012-12-17 15:23:03 +0000
+++ account/wizard/pos_box.py 2012-12-20 15:08:18 +0000
@@ -1,9 +1,9 @@
1#!/usr/bin/env python1#!/usr/bin/env python
2from openerp.osv import fields, osv2from openerp.osv import fields, osv, orm
3import openerp.addons.decimal_precision as dp3import openerp.addons.decimal_precision as dp
4from openerp.tools.translate import _4from openerp.tools.translate import _
55
6class CashBox(osv.osv_memory):6class CashBox(orm.TransientModel):
7 _register = False7 _register = False
8 _columns = {8 _columns = {
9 'name' : fields.char('Reason', size=64, required=True),9 'name' : fields.char('Reason', size=64, required=True),
@@ -63,7 +63,6 @@
63 'name' : box.name,63 'name' : box.name,
64 }64 }
6565
66CashBoxIn()
6766
68class CashBoxOut(CashBox):67class CashBoxOut(CashBox):
69 _name = 'cash.box.out'68 _name = 'cash.box.out'
@@ -78,4 +77,3 @@
78 'name' : box.name,77 'name' : box.name,
79 }78 }
8079
81CashBoxOut()
8280
=== modified file 'account_analytic_analysis/account_analytic_analysis.py'
--- account_analytic_analysis/account_analytic_analysis.py 2012-12-06 14:56:32 +0000
+++ account_analytic_analysis/account_analytic_analysis.py 2012-12-20 15:08:18 +0000
@@ -19,7 +19,7 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv, fields22from openerp.osv import osv, fields, orm
23from openerp.osv.orm import intersect, except_orm23from openerp.osv.orm import intersect, except_orm
24import openerp.tools24import openerp.tools
25from openerp.tools.translate import _25from openerp.tools.translate import _
@@ -27,7 +27,7 @@
27from openerp.addons.decimal_precision import decimal_precision as dp27from openerp.addons.decimal_precision import decimal_precision as dp
2828
2929
30class account_analytic_account(osv.osv):30class account_analytic_account(orm.Model):
31 _name = "account.analytic.account"31 _name = "account.analytic.account"
32 _inherit = "account.analytic.account"32 _inherit = "account.analytic.account"
3333
@@ -484,9 +484,8 @@
484 res['value']['to_invoice'] = template.to_invoice.id484 res['value']['to_invoice'] = template.to_invoice.id
485 res['value']['pricelist_id'] = template.pricelist_id.id485 res['value']['pricelist_id'] = template.pricelist_id.id
486 return res486 return res
487account_analytic_account()
488487
489class account_analytic_account_summary_user(osv.osv):488class account_analytic_account_summary_user(orm.Model):
490 _name = "account_analytic_analysis.summary.user"489 _name = "account_analytic_analysis.summary.user"
491 _description = "Hours Summary by User"490 _description = "Hours Summary by User"
492 _order='user'491 _order='user'
@@ -539,9 +538,8 @@
539 unit_amount538 unit_amount
540 from lu, mu)''')539 from lu, mu)''')
541 540
542account_analytic_account_summary_user()
543541
544class account_analytic_account_summary_month(osv.osv):542class account_analytic_account_summary_month(orm.Model):
545 _name = "account_analytic_analysis.summary.month"543 _name = "account_analytic_analysis.summary.month"
546 _description = "Hours summary by month"544 _description = "Hours summary by month"
547 _auto = False545 _auto = False
@@ -601,5 +599,4 @@
601 ')')599 ')')
602600
603601
604account_analytic_account_summary_month()
605# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:602# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
606603
=== modified file 'account_analytic_analysis/cron_account_analytic_account.py'
--- account_analytic_analysis/cron_account_analytic_account.py 2012-12-17 14:43:06 +0000
+++ account_analytic_analysis/cron_account_analytic_account.py 2012-12-20 15:08:18 +0000
@@ -7,7 +7,7 @@
7 import StringIO7 import StringIO
88
9from openerp import tools9from openerp import tools
10from openerp.osv import osv10from openerp.osv import osv, orm
1111
12MAKO_TEMPLATE = u"""Hello ${user.name},12MAKO_TEMPLATE = u"""Hello ${user.name},
1313
@@ -45,7 +45,7 @@
45OpenERP45OpenERP
46"""46"""
4747
48class analytic_account(osv.osv):48class analytic_account(orm.Model):
49 _inherit = 'account.analytic.account'49 _inherit = 'account.analytic.account'
5050
51 def cron_account_analytic_account(self, cr, uid, context=None):51 def cron_account_analytic_account(self, cr, uid, context=None):
@@ -74,6 +74,5 @@
7474
75 return True75 return True
7676
77analytic_account()
7877
79# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:78# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
8079
=== modified file 'account_analytic_analysis/res_config.py'
--- account_analytic_analysis/res_config.py 2012-12-06 14:56:32 +0000
+++ account_analytic_analysis/res_config.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class sale_configuration(osv.osv_memory):24class sale_configuration(orm.TransientModel):
25 _inherit = 'sale.config.settings'25 _inherit = 'sale.config.settings'
2626
27 _columns = {27 _columns = {
2828
=== modified file 'account_analytic_default/account_analytic_default.py'
--- account_analytic_default/account_analytic_default.py 2012-12-06 14:56:32 +0000
+++ account_analytic_default/account_analytic_default.py 2012-12-20 15:08:18 +0000
@@ -21,9 +21,9 @@
2121
22import time22import time
2323
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
2525
26class account_analytic_default(osv.osv):26class account_analytic_default(orm.Model):
27 _name = "account.analytic.default"27 _name = "account.analytic.default"
28 _description = "Analytic Distribution"28 _description = "Analytic Distribution"
29 _rec_name = "analytic_id"29 _rec_name = "analytic_id"
@@ -67,9 +67,8 @@
67 best_index = index67 best_index = index
68 return res68 return res
6969
70account_analytic_default()
7170
72class account_invoice_line(osv.osv):71class account_invoice_line(orm.Model):
73 _inherit = "account.invoice.line"72 _inherit = "account.invoice.line"
74 _description = "Invoice Line"73 _description = "Invoice Line"
7574
@@ -82,10 +81,9 @@
82 res_prod['value'].update({'account_analytic_id': False})81 res_prod['value'].update({'account_analytic_id': False})
83 return res_prod82 return res_prod
8483
85account_invoice_line()84
8685
8786class stock_picking(orm.Model):
88class stock_picking(osv.osv):
89 _inherit = "stock.picking"87 _inherit = "stock.picking"
9088
91 def _get_account_analytic_invoice(self, cursor, user, picking, move_line):89 def _get_account_analytic_invoice(self, cursor, user, picking, move_line):
@@ -97,9 +95,8 @@
9795
98 return super(stock_picking, self)._get_account_analytic_invoice(cursor, user, picking, move_line)96 return super(stock_picking, self)._get_account_analytic_invoice(cursor, user, picking, move_line)
9997
100stock_picking()
10198
102class sale_order_line(osv.osv):99class sale_order_line(orm.Model):
103 _inherit = "sale.order.line"100 _inherit = "sale.order.line"
104101
105 # Method overridden to set the analytic account by default on criterion match102 # Method overridden to set the analytic account by default on criterion match
@@ -118,6 +115,5 @@
118 inv_line_obj.write(cr, uid, [line.id], {'account_analytic_id': rec.analytic_id.id}, context=context)115 inv_line_obj.write(cr, uid, [line.id], {'account_analytic_id': rec.analytic_id.id}, context=context)
119 return create_ids116 return create_ids
120117
121sale_order_line()
122118
123# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:119# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
124120
=== modified file 'account_analytic_plans/account_analytic_plans.py'
--- account_analytic_plans/account_analytic_plans.py 2012-12-06 14:56:32 +0000
+++ account_analytic_plans/account_analytic_plans.py 2012-12-20 15:08:18 +0000
@@ -22,7 +22,7 @@
22import time22import time
23from lxml import etree23from lxml import etree
2424
25from openerp.osv import fields, osv25from openerp.osv import fields, osv, orm
26from openerp import tools26from openerp import tools
27from openerp.tools.translate import _27from openerp.tools.translate import _
2828
@@ -47,7 +47,7 @@
47 res[r[self._fields_id]].append( r['id'] )47 res[r[self._fields_id]].append( r['id'] )
48 return res48 return res
4949
50class account_analytic_line(osv.osv):50class account_analytic_line(orm.Model):
51 _inherit = 'account.analytic.line'51 _inherit = 'account.analytic.line'
52 _description = 'Analytic Line'52 _description = 'Analytic Line'
5353
@@ -65,9 +65,8 @@
65 'percentage': fields.float('Percentage')65 'percentage': fields.float('Percentage')
66 }66 }
6767
68account_analytic_line()
6968
70class account_analytic_plan(osv.osv):69class account_analytic_plan(orm.Model):
71 _name = "account.analytic.plan"70 _name = "account.analytic.plan"
72 _description = "Analytic Plan"71 _description = "Analytic Plan"
73 _columns = {72 _columns = {
@@ -75,9 +74,8 @@
75 'plan_ids': fields.one2many('account.analytic.plan.line', 'plan_id', 'Analytic Plans'),74 'plan_ids': fields.one2many('account.analytic.plan.line', 'plan_id', 'Analytic Plans'),
76 }75 }
7776
78account_analytic_plan()
7977
80class account_analytic_plan_line(osv.osv):78class account_analytic_plan_line(orm.Model):
81 _name = "account.analytic.plan.line"79 _name = "account.analytic.plan.line"
82 _description = "Analytic Plan Line"80 _description = "Analytic Plan Line"
83 _order = "sequence, id"81 _order = "sequence, id"
@@ -94,9 +92,8 @@
94 'max_required': 100.0,92 'max_required': 100.0,
95 }93 }
9694
97account_analytic_plan_line()
9895
99class account_analytic_plan_instance(osv.osv):96class account_analytic_plan_instance(orm.Model):
100 _name = "account.analytic.plan.instance"97 _name = "account.analytic.plan.instance"
101 _description = "Analytic Plan Instance"98 _description = "Analytic Plan Instance"
102 _columns = {99 _columns = {
@@ -257,9 +254,8 @@
257 vals['code'] = this.code and (str(this.code)+'*') or "*"254 vals['code'] = this.code and (str(this.code)+'*') or "*"
258 return super(account_analytic_plan_instance, self).write(cr, uid, ids, vals, context=context)255 return super(account_analytic_plan_instance, self).write(cr, uid, ids, vals, context=context)
259256
260account_analytic_plan_instance()
261257
262class account_analytic_plan_instance_line(osv.osv):258class account_analytic_plan_instance_line(orm.Model):
263 _name = "account.analytic.plan.instance.line"259 _name = "account.analytic.plan.instance.line"
264 _description = "Analytic Instance Line"260 _description = "Analytic Instance Line"
265 _rec_name = "analytic_account_id"261 _rec_name = "analytic_account_id"
@@ -280,18 +276,16 @@
280 res.append((record['id'], record['analytic_account_id']))276 res.append((record['id'], record['analytic_account_id']))
281 return res277 return res
282278
283account_analytic_plan_instance_line()
284279
285class account_journal(osv.osv):280class account_journal(orm.Model):
286 _inherit = "account.journal"281 _inherit = "account.journal"
287 _name = "account.journal"282 _name = "account.journal"
288 _columns = {283 _columns = {
289 'plan_id': fields.many2one('account.analytic.plan', 'Analytic Plans'),284 'plan_id': fields.many2one('account.analytic.plan', 'Analytic Plans'),
290 }285 }
291286
292account_journal()
293287
294class account_invoice_line(osv.osv):288class account_invoice_line(orm.Model):
295 _inherit = "account.invoice.line"289 _inherit = "account.invoice.line"
296 _name = "account.invoice.line"290 _name = "account.invoice.line"
297 _columns = {291 _columns = {
@@ -315,9 +309,8 @@
315 res_prod['value'].update({'analytics_id': rec.analytics_id.id})309 res_prod['value'].update({'analytics_id': rec.analytics_id.id})
316 return res_prod310 return res_prod
317311
318account_invoice_line()
319312
320class account_move_line(osv.osv):313class account_move_line(orm.Model):
321314
322 _inherit = "account.move.line"315 _inherit = "account.move.line"
323 _name = "account.move.line"316 _name = "account.move.line"
@@ -370,9 +363,8 @@
370 result = super(account_move_line, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu)363 result = super(account_move_line, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar=toolbar, submenu=submenu)
371 return result364 return result
372365
373account_move_line()
374366
375class account_invoice(osv.osv):367class account_invoice(orm.Model):
376 _name = "account.invoice"368 _name = "account.invoice"
377 _inherit = "account.invoice"369 _inherit = "account.invoice"
378370
@@ -425,24 +417,21 @@
425 il['analytic_lines'].append((0, 0, al_vals))417 il['analytic_lines'].append((0, 0, al_vals))
426 return iml418 return iml
427419
428account_invoice()
429420
430class account_analytic_plan(osv.osv):421class account_analytic_plan(orm.Model):
431 _inherit = "account.analytic.plan"422 _inherit = "account.analytic.plan"
432 _columns = {423 _columns = {
433 'default_instance_id': fields.many2one('account.analytic.plan.instance', 'Default Entries'),424 'default_instance_id': fields.many2one('account.analytic.plan.instance', 'Default Entries'),
434 }425 }
435account_analytic_plan()
436426
437class analytic_default(osv.osv):427class analytic_default(orm.Model):
438 _inherit = "account.analytic.default"428 _inherit = "account.analytic.default"
439 _columns = {429 _columns = {
440 'analytics_id': fields.many2one('account.analytic.plan.instance', 'Analytic Distribution'),430 'analytics_id': fields.many2one('account.analytic.plan.instance', 'Analytic Distribution'),
441 }431 }
442432
443analytic_default()
444433
445class sale_order_line(osv.osv):434class sale_order_line(orm.Model):
446 _inherit = "sale.order.line"435 _inherit = "sale.order.line"
447436
448 # Method overridden to set the analytic account by default on criterion match437 # Method overridden to set the analytic account by default on criterion match
@@ -459,10 +448,9 @@
459 inv_line_obj.write(cr, uid, [line.id], {'analytics_id': rec.analytics_id.id}, context=context)448 inv_line_obj.write(cr, uid, [line.id], {'analytics_id': rec.analytics_id.id}, context=context)
460 return create_ids449 return create_ids
461450
462sale_order_line()451
463452
464453class account_bank_statement(orm.Model):
465class account_bank_statement(osv.osv):
466 _inherit = "account.bank.statement"454 _inherit = "account.bank.statement"
467 _name = "account.bank.statement"455 _name = "account.bank.statement"
468456
@@ -488,15 +476,13 @@
488 continue476 continue
489 return True477 return True
490478
491account_bank_statement()479
492480
493481class account_bank_statement_line(orm.Model):
494class account_bank_statement_line(osv.osv):
495 _inherit = "account.bank.statement.line"482 _inherit = "account.bank.statement.line"
496 _name = "account.bank.statement.line"483 _name = "account.bank.statement.line"
497 _columns = {484 _columns = {
498 'analytics_id': fields.many2one('account.analytic.plan.instance', 'Analytic Distribution'),485 'analytics_id': fields.many2one('account.analytic.plan.instance', 'Analytic Distribution'),
499 }486 }
500account_bank_statement_line()
501487
502# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:488# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
503489
=== modified file 'account_analytic_plans/wizard/account_crossovered_analytic.py'
--- account_analytic_plans/wizard/account_crossovered_analytic.py 2012-12-06 14:56:32 +0000
+++ account_analytic_plans/wizard/account_crossovered_analytic.py 2012-12-20 15:08:18 +0000
@@ -21,10 +21,10 @@
2121
22import time22import time
2323
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
25from openerp.tools.translate import _25from openerp.tools.translate import _
2626
27class account_crossovered_analytic(osv.osv_memory):27class account_crossovered_analytic(orm.TransientModel):
28 _name = "account.crossovered.analytic"28 _name = "account.crossovered.analytic"
29 _description = "Print Crossovered Analytic"29 _description = "Print Crossovered Analytic"
30 _columns = {30 _columns = {
@@ -71,6 +71,5 @@
71 'datas': datas,71 'datas': datas,
72 }72 }
7373
74account_crossovered_analytic()
7574
76# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:75# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7776
=== modified file 'account_analytic_plans/wizard/analytic_plan_create_model.py'
--- account_analytic_plans/wizard/analytic_plan_create_model.py 2012-12-06 14:56:32 +0000
+++ account_analytic_plans/wizard/analytic_plan_create_model.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv22from openerp.osv import osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class analytic_plan_create_model(osv.osv_memory):25class analytic_plan_create_model(orm.TransientModel):
26 _name = "analytic.plan.create.model"26 _name = "analytic.plan.create.model"
27 _description = "analytic.plan.create.model"27 _description = "analytic.plan.create.model"
2828
@@ -55,6 +55,5 @@
55 else:55 else:
56 return {'type': 'ir.actions.act_window_close'}56 return {'type': 'ir.actions.act_window_close'}
5757
58analytic_plan_create_model()
5958
60# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:59# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6160
=== modified file 'account_anglo_saxon/invoice.py'
--- account_anglo_saxon/invoice.py 2012-12-19 01:04:29 +0000
+++ account_anglo_saxon/invoice.py 2012-12-20 15:08:18 +0000
@@ -21,9 +21,9 @@
21#21#
22##############################################################################22##############################################################################
2323
24from openerp.osv import osv24from openerp.osv import osv, orm
2525
26class account_invoice_line(osv.osv):26class account_invoice_line(orm.Model):
27 _inherit = "account.invoice.line"27 _inherit = "account.invoice.line"
2828
29 def move_line_get(self, cr, uid, invoice_id, context=None):29 def move_line_get(self, cr, uid, invoice_id, context=None):
@@ -157,7 +157,7 @@
157 res['value'].update({'account_id':a})157 res['value'].update({'account_id':a})
158 return res158 return res
159159
160class account_invoice(osv.osv):160class account_invoice(orm.Model):
161 _inherit = "account.invoice"161 _inherit = "account.invoice"
162162
163 def _prepare_refund(self, cr, uid, invoice, date=None, period_id=None, description=None, journal_id=None, context=None):163 def _prepare_refund(self, cr, uid, invoice, date=None, period_id=None, description=None, journal_id=None, context=None):
164164
=== modified file 'account_anglo_saxon/product.py'
--- account_anglo_saxon/product.py 2012-12-06 14:56:32 +0000
+++ account_anglo_saxon/product.py 2012-12-20 15:08:18 +0000
@@ -18,9 +18,9 @@
18#18#
19##############################################################################19##############################################################################
2020
21from openerp.osv import fields, osv21from openerp.osv import fields, osv, orm
2222
23class product_category(osv.osv):23class product_category(orm.Model):
24 _inherit = "product.category"24 _inherit = "product.category"
25 _columns = {25 _columns = {
26 'property_account_creditor_price_difference_categ': fields.property(26 'property_account_creditor_price_difference_categ': fields.property(
@@ -48,9 +48,8 @@
48 help="This account will be used to value outgoing stock using cost price."),48 help="This account will be used to value outgoing stock using cost price."),
4949
50 }50 }
51product_category()
5251
53class product_template(osv.osv):52class product_template(orm.Model):
54 _inherit = "product.template"53 _inherit = "product.template"
55 _columns = {54 _columns = {
56 'property_account_creditor_price_difference': fields.property(55 'property_account_creditor_price_difference': fields.property(
@@ -78,7 +77,6 @@
78 help="This account will be used to value outgoing stock using cost price."),77 help="This account will be used to value outgoing stock using cost price."),
7978
80 }79 }
81product_template()
8280
8381
84# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:82# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
8583
=== modified file 'account_anglo_saxon/purchase.py'
--- account_anglo_saxon/purchase.py 2012-12-06 14:56:32 +0000
+++ account_anglo_saxon/purchase.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class purchase_order(osv.osv):24class purchase_order(orm.Model):
25 _name = "purchase.order"25 _name = "purchase.order"
26 _inherit = "purchase.order"26 _inherit = "purchase.order"
27 _description = "Purchase Order"27 _description = "Purchase Order"
@@ -37,6 +37,5 @@
37 new_account_id = self.pool.get('account.fiscal.position').map_account(cr, uid, fpos, acc_id)37 new_account_id = self.pool.get('account.fiscal.position').map_account(cr, uid, fpos, acc_id)
38 line.update({'account_id': new_account_id})38 line.update({'account_id': new_account_id})
39 return line39 return line
40purchase_order()
4140
42# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:41# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4342
=== modified file 'account_anglo_saxon/stock.py'
--- account_anglo_saxon/stock.py 2012-12-18 22:50:15 +0000
+++ account_anglo_saxon/stock.py 2012-12-20 15:08:18 +0000
@@ -19,12 +19,12 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv22from openerp.osv import osv, orm
2323
24#----------------------------------------------------------24#----------------------------------------------------------
25# Stock Picking25# Stock Picking
26#----------------------------------------------------------26#----------------------------------------------------------
27class stock_picking(osv.osv):27class stock_picking(orm.Model):
28 _inherit = "stock.picking"28 _inherit = "stock.picking"
29 _description = "Picking List"29 _description = "Picking List"
3030
@@ -57,7 +57,6 @@
57 self.pool.get('account.invoice.line').write(cr, uid, [ol.id], {'account_id': a})57 self.pool.get('account.invoice.line').write(cr, uid, [ol.id], {'account_id': a})
58 return res58 return res
5959
60stock_picking()
6160
6261
63# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:62# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6463
=== modified file 'account_asset/account_asset.py'
--- account_asset/account_asset.py 2012-12-17 15:23:03 +0000
+++ account_asset/account_asset.py 2012-12-20 15:08:18 +0000
@@ -23,10 +23,10 @@
23from datetime import datetime23from datetime import datetime
24from dateutil.relativedelta import relativedelta24from dateutil.relativedelta import relativedelta
2525
26from openerp.osv import fields, osv26from openerp.osv import fields, osv, orm
27import openerp.addons.decimal_precision as dp27import openerp.addons.decimal_precision as dp
2828
29class account_asset_category(osv.osv):29class account_asset_category(orm.Model):
30 _name = 'account.asset.category'30 _name = 'account.asset.category'
31 _description = 'Asset category'31 _description = 'Asset category'
3232
@@ -69,9 +69,8 @@
69 res['value'] = {'account_depreciation_id': account_asset_id}69 res['value'] = {'account_depreciation_id': account_asset_id}
70 return res70 return res
7171
72account_asset_category()
7372
74class account_asset_asset(osv.osv):73class account_asset_asset(orm.Model):
75 _name = 'account.asset.asset'74 _name = 'account.asset.asset'
76 _description = 'Asset'75 _description = 'Asset'
7776
@@ -351,9 +350,8 @@
351 'context': context,350 'context': context,
352 }351 }
353352
354account_asset_asset()
355353
356class account_asset_depreciation_line(osv.osv):354class account_asset_depreciation_line(orm.Model):
357 _name = 'account.asset.depreciation.line'355 _name = 'account.asset.depreciation.line'
358 _description = 'Asset depreciation line'356 _description = 'Asset depreciation line'
359357
@@ -446,18 +444,16 @@
446 asset.write({'state': 'close'})444 asset.write({'state': 'close'})
447 return created_move_ids445 return created_move_ids
448446
449account_asset_depreciation_line()
450447
451class account_move_line(osv.osv):448class account_move_line(orm.Model):
452 _inherit = 'account.move.line'449 _inherit = 'account.move.line'
453 _columns = {450 _columns = {
454 'asset_id': fields.many2one('account.asset.asset', 'Asset'),451 'asset_id': fields.many2one('account.asset.asset', 'Asset'),
455 'entry_ids': fields.one2many('account.move.line', 'asset_id', 'Entries', readonly=True, states={'draft':[('readonly',False)]}),452 'entry_ids': fields.one2many('account.move.line', 'asset_id', 'Entries', readonly=True, states={'draft':[('readonly',False)]}),
456453
457 }454 }
458account_move_line()
459455
460class account_asset_history(osv.osv):456class account_asset_history(orm.Model):
461 _name = 'account.asset.history'457 _name = 'account.asset.history'
462 _description = 'Asset history'458 _description = 'Asset history'
463 _columns = {459 _columns = {
@@ -480,6 +476,5 @@
480 'user_id': lambda self, cr, uid, ctx: uid476 'user_id': lambda self, cr, uid, ctx: uid
481 }477 }
482478
483account_asset_history()
484479
485# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:480# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
486481
=== modified file 'account_asset/account_asset_invoice.py'
--- account_asset/account_asset_invoice.py 2012-12-06 14:56:32 +0000
+++ account_asset/account_asset_invoice.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_invoice(osv.osv):24class account_invoice(orm.Model):
2525
26 _inherit = 'account.invoice'26 _inherit = 'account.invoice'
27 def action_number(self, cr, uid, ids, *args):27 def action_number(self, cr, uid, ids, *args):
@@ -35,9 +35,8 @@
35 res['asset_id'] = x.get('asset_id', False)35 res['asset_id'] = x.get('asset_id', False)
36 return res36 return res
3737
38account_invoice()
3938
40class account_invoice_line(osv.osv):39class account_invoice_line(orm.Model):
4140
42 _inherit = 'account.invoice.line'41 _inherit = 'account.invoice.line'
43 _columns = {42 _columns = {
@@ -66,6 +65,5 @@
66 asset_obj.validate(cr, uid, [asset_id], context=context)65 asset_obj.validate(cr, uid, [asset_id], context=context)
67 return True66 return True
6867
69account_invoice_line()
7068
71# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:69# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7270
=== modified file 'account_asset/report/account_asset_report.py'
--- account_asset/report/account_asset_report.py 2012-12-06 14:56:32 +0000
+++ account_asset/report/account_asset_report.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20##############################################################################20##############################################################################
2121
22from openerp import tools22from openerp import tools
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
2424
25class asset_asset_report(osv.osv):25class asset_asset_report(orm.Model):
26 _name = "asset.asset.report"26 _name = "asset.asset.report"
27 _description = "Assets Analysis"27 _description = "Assets Analysis"
28 _auto = False28 _auto = False
@@ -82,6 +82,5 @@
82 a.purchase_value, a.id, a.salvage_value82 a.purchase_value, a.id, a.salvage_value
83 )""")83 )""")
84 84
85asset_asset_report()
8685
87# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:86# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
8887
=== modified file 'account_asset/wizard/account_asset_change_duration.py' (properties changed: +x to -x)
--- account_asset/wizard/account_asset_change_duration.py 2012-12-06 14:56:32 +0000
+++ account_asset/wizard/account_asset_change_duration.py 2012-12-20 15:08:18 +0000
@@ -21,9 +21,9 @@
21import time21import time
22from lxml import etree22from lxml import etree
2323
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
2525
26class asset_modify(osv.osv_memory):26class asset_modify(orm.TransientModel):
27 _name = 'asset.modify'27 _name = 'asset.modify'
28 _description = 'Modify Asset'28 _description = 'Modify Asset'
2929
@@ -127,6 +127,5 @@
127 asset_obj.compute_depreciation_board(cr, uid, [asset_id], context=context)127 asset_obj.compute_depreciation_board(cr, uid, [asset_id], context=context)
128 return {'type': 'ir.actions.act_window_close'}128 return {'type': 'ir.actions.act_window_close'}
129129
130asset_modify()
131130
132# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:131# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
133132
=== modified file 'account_asset/wizard/wizard_asset_compute.py' (properties changed: +x to -x)
--- account_asset/wizard/wizard_asset_compute.py 2012-12-06 14:56:32 +0000
+++ account_asset/wizard/wizard_asset_compute.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class asset_depreciation_confirmation_wizard(osv.osv_memory):25class asset_depreciation_confirmation_wizard(orm.TransientModel):
26 _name = "asset.depreciation.confirmation.wizard"26 _name = "asset.depreciation.confirmation.wizard"
27 _description = "asset.depreciation.confirmation.wizard"27 _description = "asset.depreciation.confirmation.wizard"
28 _columns = {28 _columns = {
@@ -55,6 +55,5 @@
55 'type': 'ir.actions.act_window',55 'type': 'ir.actions.act_window',
56 }56 }
5757
58asset_depreciation_confirmation_wizard()
5958
60# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:59# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6160
=== modified file 'account_bank_statement_extensions/account_bank_statement.py'
--- account_bank_statement_extensions/account_bank_statement.py 2012-12-17 15:23:03 +0000
+++ account_bank_statement_extensions/account_bank_statement.py 2012-12-20 15:08:18 +0000
@@ -21,11 +21,11 @@
21##############################################################################21##############################################################################
2222
23import time23import time
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
25import openerp.addons.decimal_precision as dp25import openerp.addons.decimal_precision as dp
26from openerp.tools.translate import _26from openerp.tools.translate import _
2727
28class account_bank_statement(osv.osv):28class account_bank_statement(orm.Model):
29 _inherit = 'account.bank.statement'29 _inherit = 'account.bank.statement'
3030
31 def write(self, cr, uid, ids, vals, context=None):31 def write(self, cr, uid, ids, vals, context=None):
@@ -33,7 +33,7 @@
33 context = {}33 context = {}
34 # bypass obsolete statement line resequencing34 # bypass obsolete statement line resequencing
35 if vals.get('line_ids', False) or context.get('ebanking_import', False):35 if vals.get('line_ids', False) or context.get('ebanking_import', False):
36 res = super(osv.osv, self).write(cr, uid, ids, vals, context=context)36 res = super(orm.Model, self).write(cr, uid, ids, vals, context=context)
37 else:37 else:
38 res = super(account_bank_statement, self).write(cr, uid, ids, vals, context=context)38 res = super(account_bank_statement, self).write(cr, uid, ids, vals, context=context)
39 return res39 return res
@@ -56,9 +56,8 @@
56 (tuple([x.id for x in st.line_ids]),))56 (tuple([x.id for x in st.line_ids]),))
57 return True57 return True
5858
59account_bank_statement()
6059
61class account_bank_statement_line_global(osv.osv):60class account_bank_statement_line_global(orm.Model):
62 _name = 'account.bank.statement.line.global'61 _name = 'account.bank.statement.line.global'
63 _description = 'Batch Payment Info'62 _description = 'Batch Payment Info'
6463
@@ -100,9 +99,8 @@
100 ids = self.search(cr, user, args, context=context, limit=limit)99 ids = self.search(cr, user, args, context=context, limit=limit)
101 return self.name_get(cr, user, ids, context=context)100 return self.name_get(cr, user, ids, context=context)
102101
103account_bank_statement_line_global()
104102
105class account_bank_statement_line(osv.osv):103class account_bank_statement_line(orm.Model):
106 _inherit = 'account.bank.statement.line'104 _inherit = 'account.bank.statement.line'
107 _columns = {105 _columns = {
108 'val_date': fields.date('Value Date', states={'confirm': [('readonly', True)]}),106 'val_date': fields.date('Value Date', states={'confirm': [('readonly', True)]}),
@@ -130,6 +128,5 @@
130 Please go to the associated bank statement in order to delete and/or modify bank statement line.'))128 Please go to the associated bank statement in order to delete and/or modify bank statement line.'))
131 return super(account_bank_statement_line, self).unlink(cr, uid, ids, context=context)129 return super(account_bank_statement_line, self).unlink(cr, uid, ids, context=context)
132130
133account_bank_statement_line()
134131
135# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:132# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
136133
=== modified file 'account_bank_statement_extensions/res_partner_bank.py'
--- account_bank_statement_extensions/res_partner_bank.py 2012-12-06 14:56:32 +0000
+++ account_bank_statement_extensions/res_partner_bank.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20#20#
21##############################################################################21##############################################################################
2222
23from openerp.osv import osv23from openerp.osv import osv, orm
2424
25class res_partner_bank(osv.osv):25class res_partner_bank(orm.Model):
26 _inherit = 'res.partner.bank'26 _inherit = 'res.partner.bank'
2727
28 def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100):28 def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100):
@@ -35,5 +35,4 @@
35 ids = self.search(cr, user, args, context=context, limit=limit)35 ids = self.search(cr, user, args, context=context, limit=limit)
36 return self.name_get(cr, user, ids, context=context)36 return self.name_get(cr, user, ids, context=context)
3737
38res_partner_bank()
39# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:38# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4039
=== modified file 'account_bank_statement_extensions/wizard/cancel_statement_line.py'
--- account_bank_statement_extensions/wizard/cancel_statement_line.py 2012-12-06 14:56:32 +0000
+++ account_bank_statement_extensions/wizard/cancel_statement_line.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20#20#
21##############################################################################21##############################################################################
2222
23from openerp.osv import osv23from openerp.osv import osv, orm
2424
25class cancel_statement_line(osv.osv_memory):25class cancel_statement_line(orm.TransientModel):
26 _name = 'cancel.statement.line'26 _name = 'cancel.statement.line'
27 _description = 'Cancel selected statement lines'27 _description = 'Cancel selected statement lines'
2828
@@ -32,6 +32,5 @@
32 line_obj.write(cr, uid, line_ids, {'state': 'draft'}, context=context)32 line_obj.write(cr, uid, line_ids, {'state': 'draft'}, context=context)
33 return {}33 return {}
3434
35cancel_statement_line()
3635
37# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:36# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
3837
=== modified file 'account_bank_statement_extensions/wizard/confirm_statement_line.py'
--- account_bank_statement_extensions/wizard/confirm_statement_line.py 2012-12-06 14:56:32 +0000
+++ account_bank_statement_extensions/wizard/confirm_statement_line.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20#20#
21##############################################################################21##############################################################################
2222
23from openerp.osv import osv23from openerp.osv import osv, orm
2424
25class confirm_statement_line(osv.osv_memory):25class confirm_statement_line(orm.TransientModel):
26 _name = 'confirm.statement.line'26 _name = 'confirm.statement.line'
27 _description = 'Confirm selected statement lines'27 _description = 'Confirm selected statement lines'
2828
@@ -32,6 +32,5 @@
32 line_obj.write(cr, uid, line_ids, {'state': 'confirm'}, context=context)32 line_obj.write(cr, uid, line_ids, {'state': 'confirm'}, context=context)
33 return {}33 return {}
3434
35confirm_statement_line()
3635
37# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:36# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
3837
=== modified file 'account_budget/account_budget.py'
--- account_budget/account_budget.py 2012-12-17 15:23:03 +0000
+++ account_budget/account_budget.py 2012-12-20 15:08:18 +0000
@@ -21,7 +21,7 @@
2121
22import datetime22import datetime
2323
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
25from openerp.tools.translate import _25from openerp.tools.translate import _
2626
27import openerp.addons.decimal_precision as dp27import openerp.addons.decimal_precision as dp
@@ -33,7 +33,7 @@
33# ---------------------------------------------------------33# ---------------------------------------------------------
34# Budgets34# Budgets
35# ---------------------------------------------------------35# ---------------------------------------------------------
36class account_budget_post(osv.osv):36class account_budget_post(orm.Model):
37 _name = "account.budget.post"37 _name = "account.budget.post"
38 _description = "Budgetary Position"38 _description = "Budgetary Position"
39 _columns = {39 _columns = {
@@ -48,10 +48,9 @@
48 }48 }
49 _order = "name"49 _order = "name"
5050
51account_budget_post()51
5252
5353class crossovered_budget(orm.Model):
54class crossovered_budget(osv.osv):
55 _name = "crossovered.budget"54 _name = "crossovered.budget"
56 _description = "Budget"55 _description = "Budget"
5756
@@ -104,9 +103,8 @@
104 })103 })
105 return True104 return True
106105
107crossovered_budget()
108106
109class crossovered_budget_lines(osv.osv):107class crossovered_budget_lines(orm.Model):
110108
111 def _prac_amt(self, cr, uid, ids, context=None):109 def _prac_amt(self, cr, uid, ids, context=None):
112 res = {}110 res = {}
@@ -202,15 +200,13 @@
202 'company_id': fields.related('crossovered_budget_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True)200 'company_id': fields.related('crossovered_budget_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True)
203 }201 }
204202
205crossovered_budget_lines()
206203
207class account_analytic_account(osv.osv):204class account_analytic_account(orm.Model):
208 _inherit = "account.analytic.account"205 _inherit = "account.analytic.account"
209206
210 _columns = {207 _columns = {
211 'crossovered_budget_line': fields.one2many('crossovered.budget.lines', 'analytic_account_id', 'Budget Lines'),208 'crossovered_budget_line': fields.one2many('crossovered.budget.lines', 'analytic_account_id', 'Budget Lines'),
212 }209 }
213210
214account_analytic_account()
215211
216# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:212# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
217213
=== modified file 'account_budget/report/crossovered_budget_report.py'
--- account_budget/report/crossovered_budget_report.py 2012-12-06 15:13:16 +0000
+++ account_budget/report/crossovered_budget_report.py 2012-12-20 15:08:18 +0000
@@ -20,12 +20,8 @@
20##############################################################################20##############################################################################
2121
22import time22import time
23import datetime
2423
25from openerp import pooler
26from openerp.report import report_sxw24from openerp.report import report_sxw
27import operator
28from openerp import osv
2925
30class budget_report(report_sxw.rml_parse):26class budget_report(report_sxw.rml_parse):
31 def __init__(self, cr, uid, name, context):27 def __init__(self, cr, uid, name, context):
3228
=== modified file 'account_budget/wizard/account_budget_analytic.py'
--- account_budget/wizard/account_budget_analytic.py 2012-12-06 14:56:32 +0000
+++ account_budget/wizard/account_budget_analytic.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20##############################################################################20##############################################################################
21import time21import time
2222
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
2424
25class account_budget_analytic(osv.osv_memory):25class account_budget_analytic(orm.TransientModel):
2626
27 _name = 'account.budget.analytic'27 _name = 'account.budget.analytic'
28 _description = 'Account Budget report for analytic account'28 _description = 'Account Budget report for analytic account'
@@ -50,6 +50,5 @@
50 'datas': datas,50 'datas': datas,
51 }51 }
5252
53account_budget_analytic()
5453
55# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:54# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5655
=== modified file 'account_budget/wizard/account_budget_crossovered_report.py'
--- account_budget/wizard/account_budget_crossovered_report.py 2012-12-06 14:56:32 +0000
+++ account_budget/wizard/account_budget_crossovered_report.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20##############################################################################20##############################################################################
21import time21import time
2222
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
2424
25class account_budget_crossvered_report(osv.osv_memory):25class account_budget_crossvered_report(orm.TransientModel):
2626
27 _name = "account.budget.crossvered.report"27 _name = "account.budget.crossvered.report"
28 _description = "Account Budget crossvered report"28 _description = "Account Budget crossvered report"
@@ -51,6 +51,5 @@
51 'datas': datas,51 'datas': datas,
52 }52 }
5353
54account_budget_crossvered_report()
5554
56# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:55# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5756
=== modified file 'account_budget/wizard/account_budget_crossovered_summary_report.py'
--- account_budget/wizard/account_budget_crossovered_summary_report.py 2012-12-06 14:56:32 +0000
+++ account_budget/wizard/account_budget_crossovered_summary_report.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20##############################################################################20##############################################################################
21import time21import time
2222
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
2424
25class account_budget_crossvered_summary_report(osv.osv_memory):25class account_budget_crossvered_summary_report(orm.TransientModel):
26 """26 """
27 This wizard provides the crossovered budget summary report'27 This wizard provides the crossovered budget summary report'
28 """28 """
@@ -53,7 +53,6 @@
53 'datas': datas,53 'datas': datas,
54 }54 }
5555
56account_budget_crossvered_summary_report()
5756
58# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:57# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5958
6059
=== modified file 'account_budget/wizard/account_budget_report.py'
--- account_budget/wizard/account_budget_report.py 2012-12-06 14:56:32 +0000
+++ account_budget/wizard/account_budget_report.py 2012-12-20 15:08:18 +0000
@@ -20,10 +20,10 @@
20##############################################################################20##############################################################################
21import time21import time
2222
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
2424
2525
26class account_budget_report(osv.osv_memory):26class account_budget_report(orm.TransientModel):
2727
28 _name = "account.budget.report"28 _name = "account.budget.report"
29 _description = "Account Budget report for analytic account"29 _description = "Account Budget report for analytic account"
@@ -52,6 +52,5 @@
52 'datas': datas,52 'datas': datas,
53 }53 }
5454
55account_budget_report()
5655
57# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:56# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5857
=== modified file 'account_check_writing/account.py'
--- account_check_writing/account.py 2012-12-06 14:56:32 +0000
+++ account_check_writing/account.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv,fields22from openerp.osv import osv,fields, orm
2323
24class account_journal(osv.osv):24class account_journal(orm.Model):
25 _inherit = "account.journal"25 _inherit = "account.journal"
2626
27 _columns = {27 _columns = {
@@ -29,9 +29,8 @@
29 'use_preprint_check': fields.boolean('Use Preprinted Check'),29 'use_preprint_check': fields.boolean('Use Preprinted Check'),
30 }30 }
3131
32account_journal()
3332
34class res_company(osv.osv):33class res_company(orm.Model):
35 _inherit = "res.company"34 _inherit = "res.company"
36 _columns = {35 _columns = {
37 'check_layout': fields.selection([36 'check_layout': fields.selection([
@@ -46,5 +45,4 @@
46 'check_layout' : lambda *a: 'top',45 'check_layout' : lambda *a: 'top',
47 }46 }
48 47
49res_company()
50# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:48# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5149
=== modified file 'account_check_writing/account_voucher.py'
--- account_check_writing/account_voucher.py 2012-12-17 15:46:28 +0000
+++ account_check_writing/account_voucher.py 2012-12-20 15:08:18 +0000
@@ -19,12 +19,12 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv,fields22from openerp.osv import osv,fields, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
24from openerp.tools.amount_to_text_en import amount_to_text24from openerp.tools.amount_to_text_en import amount_to_text
25from lxml import etree25from lxml import etree
2626
27class account_voucher(osv.osv):27class account_voucher(orm.Model):
28 _inherit = 'account.voucher'28 _inherit = 'account.voucher'
2929
30 def _make_journal_search(self, cr, uid, ttype, context=None):30 def _make_journal_search(self, cr, uid, ttype, context=None):
@@ -97,4 +97,3 @@
97 res['arch'] = etree.tostring(doc)97 res['arch'] = etree.tostring(doc)
98 return res98 return res
9999
100account_voucher()
101100
=== modified file 'account_check_writing/wizard/account_check_batch_printing.py'
--- account_check_writing/wizard/account_check_batch_printing.py 2012-12-17 15:46:28 +0000
+++ account_check_writing/wizard/account_check_batch_printing.py 2012-12-20 15:08:18 +0000
@@ -21,9 +21,9 @@
2121
22from openerp.tools.translate import _22from openerp.tools.translate import _
2323
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
2525
26class account_check_write(osv.osv_memory):26class account_check_write(orm.TransientModel):
27 _name = 'account.check.write'27 _name = 'account.check.write'
28 _description = 'Prin Check in Batch'28 _description = 'Prin Check in Batch'
2929
@@ -83,5 +83,4 @@
83 'nodestroy': True83 'nodestroy': True
84 }84 }
8585
86account_check_write()
8786
8887
=== modified file 'account_followup/account_followup.py'
--- account_followup/account_followup.py 2012-12-17 14:43:06 +0000
+++ account_followup/account_followup.py 2012-12-20 15:08:18 +0000
@@ -19,12 +19,12 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from lxml import etree23from lxml import etree
2424
25from openerp.tools.translate import _25from openerp.tools.translate import _
2626
27class followup(osv.osv):27class followup(orm.Model):
28 _name = 'account_followup.followup'28 _name = 'account_followup.followup'
29 _description = 'Account Follow-up'29 _description = 'Account Follow-up'
30 _rec_name = 'name'30 _rec_name = 'name'
@@ -39,7 +39,7 @@
39 _sql_constraints = [('company_uniq', 'unique(company_id)', 'Only one follow-up per company is allowed')] 39 _sql_constraints = [('company_uniq', 'unique(company_id)', 'Only one follow-up per company is allowed')]
4040
4141
42class followup_line(osv.osv):42class followup_line(orm.Model):
4343
44 def _get_default_template(self, cr, uid, ids, context=None):44 def _get_default_template(self, cr, uid, ids, context=None):
45 try:45 try:
@@ -95,7 +95,7 @@
95 ]95 ]
9696
9797
98class account_move_line(osv.osv):98class account_move_line(orm.Model):
9999
100 def _get_result(self, cr, uid, ids, name, arg, context=None):100 def _get_result(self, cr, uid, ids, name, arg, context=None):
101 res = {}101 res = {}
@@ -113,7 +113,7 @@
113 }113 }
114114
115115
116class res_partner(osv.osv):116class res_partner(orm.Model):
117117
118 def fields_view_get(self, cr, uid, view_id=None, view_type=None, context=None, toolbar=False, submenu=False):118 def fields_view_get(self, cr, uid, view_id=None, view_type=None, context=None, toolbar=False, submenu=False):
119 res = super(res_partner, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context,119 res = super(res_partner, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context,
120120
=== modified file 'account_followup/report/account_followup_report.py'
--- account_followup/report/account_followup_report.py 2012-12-06 14:56:32 +0000
+++ account_followup/report/account_followup_report.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from openerp import tools23from openerp import tools
2424
25class account_followup_stat(osv.osv):25class account_followup_stat(orm.Model):
26 _name = "account_followup.stat"26 _name = "account_followup.stat"
27 _description = "Follow-up Statistics"27 _description = "Follow-up Statistics"
28 _rec_name = 'partner_id'28 _rec_name = 'partner_id'
@@ -91,6 +91,5 @@
91 GROUP BY91 GROUP BY
92 l.id, l.partner_id, l.company_id, l.blocked, l.period_id92 l.id, l.partner_id, l.company_id, l.blocked, l.period_id
93 )""")93 )""")
94account_followup_stat()
9594
96# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:95# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
9796
=== modified file 'account_followup/wizard/account_followup_print.py'
--- account_followup/wizard/account_followup_print.py 2012-12-10 11:16:54 +0000
+++ account_followup/wizard/account_followup_print.py 2012-12-20 15:08:18 +0000
@@ -23,10 +23,10 @@
23import time23import time
2424
25from openerp import tools25from openerp import tools
26from openerp.osv import fields, osv26from openerp.osv import fields, osv, orm
27from openerp.tools.translate import _27from openerp.tools.translate import _
2828
29class account_followup_stat_by_partner(osv.osv):29class account_followup_stat_by_partner(orm.Model):
30 _name = "account_followup.stat.by.partner"30 _name = "account_followup.stat.by.partner"
31 _description = "Follow-up Statistics by Partner"31 _description = "Follow-up Statistics by Partner"
32 _rec_name = 'partner_id'32 _rec_name = 'partner_id'
@@ -72,10 +72,9 @@
72 GROUP BY72 GROUP BY
73 l.partner_id, l.company_id73 l.partner_id, l.company_id
74 )""") #Blocked is to take into account litigation74 )""") #Blocked is to take into account litigation
75account_followup_stat_by_partner()75
7676
7777class account_followup_sending_results(orm.TransientModel):
78class account_followup_sending_results(osv.osv_memory):
79 78
80 def do_report(self, cr, uid, ids, context=None):79 def do_report(self, cr, uid, ids, context=None):
81 if context is None:80 if context is None:
@@ -106,10 +105,9 @@
106 'description':_get_description,105 'description':_get_description,
107 }106 }
108 107
109account_followup_sending_results()108
110109
111110class account_followup_print(orm.TransientModel):
112class account_followup_print(osv.osv_memory):
113 _name = 'account_followup.print'111 _name = 'account_followup.print'
114 _description = 'Print Follow-up & Send Mail to Customers'112 _description = 'Print Follow-up & Send Mail to Customers'
115 _columns = {113 _columns = {
@@ -315,6 +313,5 @@
315 to_update[str(id)]= {'level': fups[followup_line_id][1], 'partner_id': stat_line_id}313 to_update[str(id)]= {'level': fups[followup_line_id][1], 'partner_id': stat_line_id}
316 return {'partner_ids': partner_list, 'to_update': to_update}314 return {'partner_ids': partner_list, 'to_update': to_update}
317315
318account_followup_print()
319316
320# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:317# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
321318
=== modified file 'account_payment/account_invoice.py'
--- account_payment/account_invoice.py 2012-12-06 14:56:32 +0000
+++ account_payment/account_invoice.py 2012-12-20 15:08:18 +0000
@@ -21,9 +21,9 @@
2121
22from datetime import datetime22from datetime import datetime
23from openerp.tools.translate import _23from openerp.tools.translate import _
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
2525
26class Invoice(osv.osv):26class Invoice(orm.Model):
27 _inherit = 'account.invoice'27 _inherit = 'account.invoice'
2828
29 # Forbid to cancel an invoice if the related move lines have already been29 # Forbid to cancel an invoice if the related move lines have already been
@@ -65,6 +65,5 @@
65 'minus the amount which is already in payment order'),65 'minus the amount which is already in payment order'),
66 }66 }
6767
68Invoice()
6968
70# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:69# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
7170
=== modified file 'account_payment/account_move_line.py'
--- account_payment/account_move_line.py 2012-12-06 14:56:32 +0000
+++ account_payment/account_move_line.py 2012-12-20 15:08:18 +0000
@@ -20,10 +20,10 @@
20##############################################################################20##############################################################################
2121
22from operator import itemgetter22from operator import itemgetter
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
24from openerp.tools.translate import _24from openerp.tools.translate import _
2525
26class account_move_line(osv.osv):26class account_move_line(orm.Model):
27 _inherit = "account.move.line"27 _inherit = "account.move.line"
2828
29 def amount_to_pay(self, cr, uid, ids, name, arg=None, context=None):29 def amount_to_pay(self, cr, uid, ids, name, arg=None, context=None):
@@ -115,6 +115,5 @@
115 type='float', string='Amount to pay', fnct_search=_to_pay_search),115 type='float', string='Amount to pay', fnct_search=_to_pay_search),
116 }116 }
117117
118account_move_line()
119118
120# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:119# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
121120
=== modified file 'account_payment/account_payment.py'
--- account_payment/account_payment.py 2012-12-06 14:56:32 +0000
+++ account_payment/account_payment.py 2012-12-20 15:08:18 +0000
@@ -22,12 +22,12 @@
22import logging22import logging
23import time23import time
2424
25from openerp.osv import fields, osv25from openerp.osv import fields, osv, orm
26from openerp import netsvc26from openerp import netsvc
2727
28_logger = logging.getLogger(__name__)28_logger = logging.getLogger(__name__)
2929
30class payment_mode(osv.osv):30class payment_mode(orm.Model):
31 _name= 'payment.mode'31 _name= 'payment.mode'
32 _description= 'Payment Mode'32 _description= 'Payment Mode'
33 _columns = {33 _columns = {
@@ -63,9 +63,8 @@
63 return {'value': result}63 return {'value': result}
6464
6565
66payment_mode()
6766
68class payment_order(osv.osv):67class payment_order(orm.Model):
69 _name = 'payment.order'68 _name = 'payment.order'
70 _description = 'Payment Order'69 _description = 'Payment Order'
71 _rec_name = 'reference'70 _rec_name = 'reference'
@@ -174,9 +173,8 @@
174 payment_line_obj.write(cr, uid, payment_line_ids, {'date': False}, context=context)173 payment_line_obj.write(cr, uid, payment_line_ids, {'date': False}, context=context)
175 return super(payment_order, self).write(cr, uid, ids, vals, context=context)174 return super(payment_order, self).write(cr, uid, ids, vals, context=context)
176175
177payment_order()
178176
179class payment_line(osv.osv):177class payment_line(orm.Model):
180 _name = 'payment.line'178 _name = 'payment.line'
181 _description = 'Payment Line'179 _description = 'Payment Line'
182180
@@ -421,6 +419,5 @@
421 res['communication2']['states']['normal'] = [('readonly', False)]419 res['communication2']['states']['normal'] = [('readonly', False)]
422 return res420 return res
423421
424payment_line()
425422
426# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:423# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
427424
=== modified file 'account_payment/wizard/account_payment_order.py'
--- account_payment/wizard/account_payment_order.py 2012-12-06 14:56:32 +0000
+++ account_payment/wizard/account_payment_order.py 2012-12-20 15:08:18 +0000
@@ -22,9 +22,9 @@
22import time22import time
23from lxml import etree23from lxml import etree
2424
25from openerp.osv import fields, osv25from openerp.osv import fields, osv, orm
2626
27class payment_order_create(osv.osv_memory):27class payment_order_create(orm.TransientModel):
28 """28 """
29 Create a payment object with lines corresponding to the account move line29 Create a payment object with lines corresponding to the account move line
30 to pay according to the date and the mode provided by the user.30 to pay according to the date and the mode provided by the user.
@@ -118,6 +118,5 @@
118 'target': 'new',118 'target': 'new',
119 }119 }
120120
121payment_order_create()
122121
123# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:122# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
124123
=== modified file 'account_payment/wizard/account_payment_pay.py'
--- account_payment/wizard/account_payment_pay.py 2012-12-06 14:56:32 +0000
+++ account_payment/wizard/account_payment_pay.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv22from openerp.osv import osv, orm
2323
24#TODO:REMOVE this wizard is not used 24#TODO:REMOVE this wizard is not used
25class account_payment_make_payment(osv.osv_memory):25class account_payment_make_payment(orm.TransientModel):
26 _name = "account.payment.make.payment"26 _name = "account.payment.make.payment"
27 _description = "Account make payment"27 _description = "Account make payment"
2828
@@ -54,6 +54,5 @@
54# id = obj_model.read(cr, uid, [result], ['res_id'])[0]['res_id']54# id = obj_model.read(cr, uid, [result], ['res_id'])[0]['res_id']
55# return obj_act.read(cr, uid, [id])[0]55# return obj_act.read(cr, uid, [id])[0]
5656
57account_payment_make_payment()
5857
59# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:58# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6059
=== modified file 'account_payment/wizard/account_payment_populate_statement.py'
--- account_payment/wizard/account_payment_populate_statement.py 2012-12-18 17:55:47 +0000
+++ account_payment/wizard/account_payment_populate_statement.py 2012-12-20 15:08:18 +0000
@@ -22,9 +22,9 @@
22import time22import time
23from lxml import etree23from lxml import etree
2424
25from openerp.osv import fields, osv25from openerp.osv import fields, osv, orm
2626
27class account_payment_populate_statement(osv.osv_memory):27class account_payment_populate_statement(orm.TransientModel):
28 _name = "account.payment.populate.statement"28 _name = "account.payment.populate.statement"
29 _description = "Account Payment Populate Statement"29 _description = "Account Payment Populate Statement"
30 _columns = {30 _columns = {
@@ -118,6 +118,5 @@
118 line_obj.write(cr, uid, [line.id], {'bank_statement_line_id': st_line_id})118 line_obj.write(cr, uid, [line.id], {'bank_statement_line_id': st_line_id})
119 return {'type': 'ir.actions.act_window_close'}119 return {'type': 'ir.actions.act_window_close'}
120120
121account_payment_populate_statement()
122121
123# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:122# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
124123
=== modified file 'account_sequence/account_sequence.py'
--- account_sequence/account_sequence.py 2012-12-06 14:56:32 +0000
+++ account_sequence/account_sequence.py 2012-12-20 15:08:18 +0000
@@ -20,9 +20,9 @@
20#20#
21##############################################################################21##############################################################################
2222
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
2424
25class account_move(osv.osv):25class account_move(orm.Model):
26 _inherit = 'account.move'26 _inherit = 'account.move'
2727
28 _columns = {28 _columns = {
@@ -40,24 +40,21 @@
40 self.write(cr, uid, [move.id], {'internal_sequence_number': seq_no})40 self.write(cr, uid, [move.id], {'internal_sequence_number': seq_no})
41 return res41 return res
4242
43account_move()
4443
45class account_journal(osv.osv):44class account_journal(orm.Model):
46 _inherit = "account.journal"45 _inherit = "account.journal"
4746
48 _columns = {47 _columns = {
49 'internal_sequence_id': fields.many2one('ir.sequence', 'Internal Sequence', help="This sequence will be used to maintain the internal number for the journal entries related to this journal."),48 'internal_sequence_id': fields.many2one('ir.sequence', 'Internal Sequence', help="This sequence will be used to maintain the internal number for the journal entries related to this journal."),
50 }49 }
5150
52account_journal()
5351
54class account_move_line(osv.osv):52class account_move_line(orm.Model):
55 _inherit = "account.move.line"53 _inherit = "account.move.line"
5654
57 _columns = {55 _columns = {
58 'internal_sequence_number': fields.related('move_id','internal_sequence_number', type='char', relation='account.move', help='Internal Sequence Number', string='Internal Number'),56 'internal_sequence_number': fields.related('move_id','internal_sequence_number', type='char', relation='account.move', help='Internal Sequence Number', string='Internal Number'),
59 }57 }
6058
61account_move_line()
6259
63# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:60# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6461
=== modified file 'account_sequence/account_sequence_installer.py'
--- account_sequence/account_sequence_installer.py 2012-12-06 14:56:32 +0000
+++ account_sequence/account_sequence_installer.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class account_sequence_installer(osv.osv_memory):24class account_sequence_installer(orm.TransientModel):
25 _name = 'account.sequence.installer'25 _name = 'account.sequence.installer'
26 _inherit = 'res.config.installer'26 _inherit = 'res.config.installer'
2727
@@ -79,6 +79,5 @@
79 ir_values_obj.set(cr, uid, key='default', key2=False, name='internal_sequence_id', models =[('account.journal', False)], value=ir_seq)79 ir_values_obj.set(cr, uid, key='default', key2=False, name='internal_sequence_id', models =[('account.journal', False)], value=ir_seq)
80 return res80 return res
8181
82account_sequence_installer()
8382
84# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:83# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
8584
=== modified file 'account_test/account_test.py'
--- account_test/account_test.py 2012-12-17 15:46:28 +0000
+++ account_test/account_test.py 2012-12-20 15:08:18 +0000
@@ -28,7 +28,7 @@
28#28#
29##############################################################################29##############################################################################
3030
31from openerp.osv import fields,osv31from openerp.osv import fields,osv, orm
32import pooler32import pooler
33import netsvc33import netsvc
34import time34import time
@@ -43,7 +43,7 @@
43result = res43result = res
44'''44'''
4545
46class accounting_assert_test(osv.osv):46class accounting_assert_test(orm.Model):
47 _name = "accounting.assert.test"47 _name = "accounting.assert.test"
48 _order = "sequence"48 _order = "sequence"
4949
@@ -61,5 +61,4 @@
61 'sequence': 10,61 'sequence': 10,
62 }62 }
6363
64accounting_assert_test()
6564
6665
=== modified file 'account_voucher/account_voucher.py'
--- account_voucher/account_voucher.py 2012-12-20 11:47:30 +0000
+++ account_voucher/account_voucher.py 2012-12-20 15:08:18 +0000
@@ -23,11 +23,11 @@
23from lxml import etree23from lxml import etree
2424
25from openerp import netsvc25from openerp import netsvc
26from openerp.osv import fields, osv26from openerp.osv import fields, osv, orm
27import openerp.addons.decimal_precision as dp27import openerp.addons.decimal_precision as dp
28from openerp.tools.translate import _28from openerp.tools.translate import _
2929
30class res_company(osv.osv):30class res_company(orm.Model):
31 _inherit = "res.company"31 _inherit = "res.company"
32 _columns = {32 _columns = {
33 'income_currency_exchange_account_id': fields.many2one(33 'income_currency_exchange_account_id': fields.many2one(
@@ -40,9 +40,8 @@
40 domain="[('type', '=', 'other')]",),40 domain="[('type', '=', 'other')]",),
41 }41 }
4242
43res_company()
4443
45class account_config_settings(osv.osv_memory):44class account_config_settings(orm.TransientModel):
46 _inherit = 'account.config.settings'45 _inherit = 'account.config.settings'
47 _columns = {46 _columns = {
48 'income_currency_exchange_account_id': fields.related(47 'income_currency_exchange_account_id': fields.related(
@@ -57,7 +56,7 @@
57 string="Loss Exchange Rate Account"),56 string="Loss Exchange Rate Account"),
58 }57 }
5958
60class account_voucher(osv.osv):59class account_voucher(orm.Model):
61 def _check_paid(self, cr, uid, ids, name, args, context=None):60 def _check_paid(self, cr, uid, ids, name, args, context=None):
62 res = {}61 res = {}
63 for voucher in self.browse(cr, uid, ids, context=context):62 for voucher in self.browse(cr, uid, ids, context=context):
@@ -1327,8 +1326,37 @@
1327 default['date'] = time.strftime('%Y-%m-%d')1326 default['date'] = time.strftime('%Y-%m-%d')
1328 return super(account_voucher, self).copy(cr, uid, id, default, context)1327 return super(account_voucher, self).copy(cr, uid, id, default, context)
13291328
13301329<<<<<<< TREE
1331class account_voucher_line(osv.osv):1330=======
1331 # -----------------------------------------
1332 # OpenChatter notifications and need_action
1333 # -----------------------------------------
1334 _document_type = {
1335 'sale': 'Sales Receipt',
1336 'purchase': 'Purchase Receipt',
1337 'payment': 'Supplier Payment',
1338 'receipt': 'Customer Payment',
1339 False: 'Payment',
1340 }
1341
1342 def create_send_note(self, cr, uid, ids, context=None):
1343 for obj in self.browse(cr, uid, ids, context=context):
1344 message = "%s <b>created</b>." % self._document_type[obj.type or False]
1345 self.message_post(cr, uid, [obj.id], body=message, subtype="account_voucher.mt_voucher", context=context)
1346
1347 def post_send_note(self, cr, uid, ids, context=None):
1348 for obj in self.browse(cr, uid, ids, context=context):
1349 message = "%s '%s' is <b>posted</b>." % (self._document_type[obj.type or False], obj.move_id.name)
1350 self.message_post(cr, uid, [obj.id], body=message, subtype="account_voucher.mt_voucher", context=context)
1351
1352 def reconcile_send_note(self, cr, uid, ids, context=None):
1353 for obj in self.browse(cr, uid, ids, context=context):
1354 message = "%s <b>reconciled</b>." % self._document_type[obj.type or False]
1355 self.message_post(cr, uid, [obj.id], body=message, subtype="account_voucher.mt_voucher", context=context)
1356
1357>>>>>>> MERGE-SOURCE
1358
1359class account_voucher_line(orm.Model):
1332 _name = 'account.voucher.line'1360 _name = 'account.voucher.line'
1333 _description = 'Voucher Lines'1361 _description = 'Voucher Lines'
1334 _order = "move_line_id"1362 _order = "move_line_id"
@@ -1476,9 +1504,8 @@
1476 'type':ttype1504 'type':ttype
1477 })1505 })
1478 return values1506 return values
1479account_voucher_line()
14801507
1481class account_bank_statement(osv.osv):1508class account_bank_statement(orm.Model):
1482 _inherit = 'account.bank.statement'1509 _inherit = 'account.bank.statement'
14831510
1484 def button_confirm_bank(self, cr, uid, ids, context=None):1511 def button_confirm_bank(self, cr, uid, ids, context=None):
@@ -1529,9 +1556,8 @@
1529 raise osv.except_osv(_('Unable to change journal !'), _('You can not change the journal as you already reconciled some statement lines!'))1556 raise osv.except_osv(_('Unable to change journal !'), _('You can not change the journal as you already reconciled some statement lines!'))
1530 return super(account_bank_statement, self).write(cr, uid, ids, vals, context=context)1557 return super(account_bank_statement, self).write(cr, uid, ids, vals, context=context)
15311558
1532account_bank_statement()
15331559
1534class account_bank_statement_line(osv.osv):1560class account_bank_statement_line(orm.Model):
1535 _inherit = 'account.bank.statement.line'1561 _inherit = 'account.bank.statement.line'
15361562
1537 def onchange_partner_id(self, cr, uid, ids, partner_id, context=None):1563 def onchange_partner_id(self, cr, uid, ids, partner_id, context=None):
@@ -1583,7 +1609,6 @@
1583 voucher_obj.unlink(cr, uid, unlink_ids, context=context)1609 voucher_obj.unlink(cr, uid, unlink_ids, context=context)
1584 return super(account_bank_statement_line, self).unlink(cr, uid, ids, context=context)1610 return super(account_bank_statement_line, self).unlink(cr, uid, ids, context=context)
15851611
1586account_bank_statement_line()
15871612
1588def resolve_o2m_operations(cr, uid, target_osv, operations, fields, context):1613def resolve_o2m_operations(cr, uid, target_osv, operations, fields, context):
1589 results = []1614 results = []
15901615
=== modified file 'account_voucher/invoice.py'
--- account_voucher/invoice.py 2012-12-06 14:56:32 +0000
+++ account_voucher/invoice.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv22from openerp.osv import osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class invoice(osv.osv):25class invoice(orm.Model):
26 _inherit = 'account.invoice'26 _inherit = 'account.invoice'
2727
28 def invoice_pay_customer(self, cr, uid, ids, context=None):28 def invoice_pay_customer(self, cr, uid, ids, context=None):
@@ -51,6 +51,5 @@
51 }51 }
52 }52 }
5353
54invoice()
5554
56# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:55# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5756
=== modified file 'account_voucher/report/account_voucher_sales_receipt.py'
--- account_voucher/report/account_voucher_sales_receipt.py 2012-12-06 14:56:32 +0000
+++ account_voucher/report/account_voucher_sales_receipt.py 2012-12-20 15:08:18 +0000
@@ -18,10 +18,10 @@
18#18#
19##############################################################################19##############################################################################
2020
21from openerp.osv import fields, osv21from openerp.osv import fields, osv, orm
22from openerp import tools22from openerp import tools
2323
24class sale_receipt_report(osv.osv):24class sale_receipt_report(orm.Model):
25 _name = "sale.receipt.report"25 _name = "sale.receipt.report"
26 _description = "Sales Receipt Statistics"26 _description = "Sales Receipt Statistics"
27 _auto = False27 _auto = False
@@ -126,6 +126,5 @@
126 )126 )
127 """)127 """)
128128
129sale_receipt_report()
130129
131# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:130# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
132131
=== modified file 'account_voucher/wizard/account_statement_from_invoice.py'
--- account_voucher/wizard/account_statement_from_invoice.py 2012-12-18 17:55:47 +0000
+++ account_voucher/wizard/account_statement_from_invoice.py 2012-12-20 15:08:18 +0000
@@ -21,10 +21,10 @@
2121
22import time22import time
2323
24from openerp.osv import fields, osv24from openerp.osv import fields, osv, orm
25from openerp.tools.translate import _25from openerp.tools.translate import _
2626
27class account_statement_from_invoice_lines(osv.osv_memory):27class account_statement_from_invoice_lines(orm.TransientModel):
28 """28 """
29 Generate Entries by Statement from Invoices29 Generate Entries by Statement from Invoices
30 """30 """
@@ -123,6 +123,5 @@
123 }, context=context)123 }, context=context)
124 return {'type': 'ir.actions.act_window_close'}124 return {'type': 'ir.actions.act_window_close'}
125125
126account_statement_from_invoice_lines()
127126
128# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:127# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
129128
=== modified file 'analytic/analytic.py'
--- analytic/analytic.py 2012-12-20 15:05:47 +0000
+++ analytic/analytic.py 2012-12-20 15:08:18 +0000
@@ -22,12 +22,12 @@
22import time22import time
23from datetime import datetime23from datetime import datetime
2424
25from openerp.osv import fields, osv25from openerp.osv import fields, osv, orm
26from openerp import tools26from openerp import tools
27from openerp.tools.translate import _27from openerp.tools.translate import _
28import openerp.addons.decimal_precision as dp28import openerp.addons.decimal_precision as dp
2929
30class account_analytic_account(osv.osv):30class account_analytic_account(orm.Model):
31 _name = 'account.analytic.account'31 _name = 'account.analytic.account'
32 _inherit = ['mail.thread']32 _inherit = ['mail.thread']
33 _description = 'Analytic Account'33 _description = 'Analytic Account'
@@ -315,7 +315,27 @@
315 account_ids = self.search(cr, uid, args, limit=limit, context=context)315 account_ids = self.search(cr, uid, args, limit=limit, context=context)
316 return self.name_get(cr, uid, account_ids, context=context)316 return self.name_get(cr, uid, account_ids, context=context)
317317
318<<<<<<< TREE
318class account_analytic_line(osv.osv):319class account_analytic_line(osv.osv):
320=======
321 def create(self, cr, uid, vals, context=None):
322 contract = super(account_analytic_account, self).create(cr, uid, vals, context=context)
323 if contract:
324 self.create_send_note(cr, uid, [contract], context=context)
325 return contract
326
327 def create_send_note(self, cr, uid, ids, context=None):
328 for obj in self.browse(cr, uid, ids, context=context):
329 message = _("Contract <b>created</b>.")
330 if obj.partner_id:
331 message = _("Contract for <em>%s</em> has been <b>created</b>.") % (obj.partner_id.name,)
332 self.message_post(cr, uid, [obj.id], body=message,
333 subtype="analytic.mt_account_status", context=context)
334
335
336
337class account_analytic_line(orm.Model):
338>>>>>>> MERGE-SOURCE
319 _name = 'account.analytic.line'339 _name = 'account.analytic.line'
320 _description = 'Analytic Line'340 _description = 'Analytic Line'
321341
@@ -355,6 +375,5 @@
355 (_check_no_view, 'You cannot create analytic line on view account.', ['account_id']),375 (_check_no_view, 'You cannot create analytic line on view account.', ['account_id']),
356 ]376 ]
357377
358account_analytic_line()
359378
360# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:379# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
361380
=== modified file 'analytic_contract_hr_expense/analytic_contract_hr_expense.py'
--- analytic_contract_hr_expense/analytic_contract_hr_expense.py 2012-12-18 13:41:18 +0000
+++ analytic_contract_hr_expense/analytic_contract_hr_expense.py 2012-12-20 15:08:18 +0000
@@ -18,11 +18,11 @@
18# along with this program. If not, see <http://www.gnu.org/licenses/>.18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#19#
20##############################################################################20##############################################################################
21from openerp.osv import fields, osv21from openerp.osv import fields, osv, orm
22from openerp.osv.orm import intersect22from openerp.osv.orm import intersect
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class account_analytic_account(osv.osv):25class account_analytic_account(orm.Model):
26 _name = "account.analytic.account"26 _name = "account.analytic.account"
27 _inherit = "account.analytic.account"27 _inherit = "account.analytic.account"
2828
@@ -137,6 +137,5 @@
137 'nodestroy': True,137 'nodestroy': True,
138 }138 }
139139
140account_analytic_account()
141140
142# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:141# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
143142
=== modified file 'analytic_user_function/analytic_user_function.py'
--- analytic_user_function/analytic_user_function.py 2012-12-18 22:50:15 +0000
+++ analytic_user_function/analytic_user_function.py 2012-12-20 15:08:18 +0000
@@ -19,11 +19,11 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields,osv22from openerp.osv import fields,osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
24import openerp.addons.decimal_precision as dp24import openerp.addons.decimal_precision as dp
2525
26class analytic_user_funct_grid(osv.osv):26class analytic_user_funct_grid(orm.Model):
27 _name="analytic.user.funct.grid"27 _name="analytic.user.funct.grid"
28 _description= "Price per User"28 _description= "Price per User"
29 _columns={29 _columns={
@@ -54,14 +54,14 @@
54 return {'value': value}54 return {'value': value}
5555
5656
57class account_analytic_account(osv.osv):57class account_analytic_account(orm.Model):
58 _inherit = "account.analytic.account"58 _inherit = "account.analytic.account"
59 _columns = {59 _columns = {
60 'user_product_ids': fields.one2many('analytic.user.funct.grid', 'account_id', 'Users/Products Rel.'),60 'user_product_ids': fields.one2many('analytic.user.funct.grid', 'account_id', 'Users/Products Rel.'),
61 }61 }
6262
6363
64class hr_analytic_timesheet(osv.osv):64class hr_analytic_timesheet(orm.Model):
65 _inherit = "hr.analytic.timesheet"65 _inherit = "hr.analytic.timesheet"
66 # Look in account, if no value for the user => look in parent until there is no more parent to look66 # Look in account, if no value for the user => look in parent until there is no more parent to look
67 # Take the first found... if nothing found => return False67 # Take the first found... if nothing found => return False
@@ -146,7 +146,7 @@
146 res ['value']['general_account_id']= a146 res ['value']['general_account_id']= a
147 return res147 return res
148148
149class account_analytic_line(osv.osv):149class account_analytic_line(orm.Model):
150 _inherit = "account.analytic.line"150 _inherit = "account.analytic.line"
151 def _get_invoice_price(self, cr, uid, account, product_id, user_id, qty, context = {}):151 def _get_invoice_price(self, cr, uid, account, product_id, user_id, qty, context = {}):
152 for grid in account.user_product_ids:152 for grid in account.user_product_ids:
153153
=== modified file 'anonymization/anonymization.py'
--- anonymization/anonymization.py 2012-12-20 11:25:28 +0000
+++ anonymization/anonymization.py 2012-12-20 15:08:18 +0000
@@ -29,7 +29,7 @@
29 import pickle29 import pickle
30import random30import random
31import datetime31import datetime
32from openerp.osv import fields, osv32from openerp.osv import fields, osv, orm
33from openerp.tools.translate import _33from openerp.tools.translate import _
3434
35from itertools import groupby35from itertools import groupby
@@ -49,7 +49,7 @@
49 return dict((k, [v for v in itr]) for k, itr in groupby(sorted(lst, key=itemgetter(*cols)), itemgetter(*cols)))49 return dict((k, [v for v in itr]) for k, itr in groupby(sorted(lst, key=itemgetter(*cols)), itemgetter(*cols)))
5050
5151
52class ir_model_fields_anonymization(osv.osv):52class ir_model_fields_anonymization(orm.Model):
53 _name = 'ir.model.fields.anonymization'53 _name = 'ir.model.fields.anonymization'
54 _rec_name = 'field_id'54 _rec_name = 'field_id'
5555
@@ -218,7 +218,7 @@
218 }218 }
219219
220220
221class ir_model_fields_anonymization_history(osv.osv):221class ir_model_fields_anonymization_history(orm.Model):
222 _name = 'ir.model.fields.anonymization.history'222 _name = 'ir.model.fields.anonymization.history'
223 _order = "date desc"223 _order = "date desc"
224224
@@ -232,7 +232,7 @@
232 }232 }
233233
234234
235class ir_model_fields_anonymize_wizard(osv.osv_memory):235class ir_model_fields_anonymize_wizard(orm.TransientModel):
236 _name = 'ir.model.fields.anonymize.wizard'236 _name = 'ir.model.fields.anonymize.wizard'
237237
238 def _get_state(self, cr, uid, ids, name, arg, context=None):238 def _get_state(self, cr, uid, ids, name, arg, context=None):
@@ -619,7 +619,7 @@
619 return res619 return res
620620
621621
622class ir_model_fields_anonymization_migration_fix(osv.osv):622class ir_model_fields_anonymization_migration_fix(orm.Model):
623 _name = 'ir.model.fields.anonymization.migration.fix'623 _name = 'ir.model.fields.anonymization.migration.fix'
624 _order = "sequence"624 _order = "sequence"
625625
626626
=== modified file 'audittrail/audittrail.py'
--- audittrail/audittrail.py 2012-12-17 15:46:28 +0000
+++ audittrail/audittrail.py 2012-12-20 15:08:18 +0000
@@ -19,15 +19,14 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22import time
23from openerp.osv.osv import object_proxy23
24from openerp.osv import fields, osv, orm
24from openerp.tools.translate import _25from openerp.tools.translate import _
25from openerp import pooler26from openerp import pooler
26import time
27from openerp import tools
28from openerp import SUPERUSER_ID27from openerp import SUPERUSER_ID
2928
30class audittrail_rule(osv.osv):29class audittrail_rule(orm.Model):
31 """30 """
32 For Auddittrail Rule31 For Auddittrail Rule
33 """32 """
@@ -119,7 +118,7 @@
119 #End Loop118 #End Loop
120 return True119 return True
121120
122class audittrail_log(osv.osv):121class audittrail_log(orm.Model):
123 """122 """
124 For Audittrail Log123 For Audittrail Log
125 """124 """
@@ -154,7 +153,7 @@
154 }153 }
155 _order = "timestamp desc"154 _order = "timestamp desc"
156155
157class audittrail_log_line(osv.osv):156class audittrail_log_line(orm.Model):
158 """157 """
159 Audittrail Log Line.158 Audittrail Log Line.
160 """159 """
@@ -171,7 +170,7 @@
171 'field_description': fields.char('Field Description', size=64),170 'field_description': fields.char('Field Description', size=64),
172 }171 }
173172
174class audittrail_objects_proxy(object_proxy):173class audittrail_objects_proxy(osv.object_proxy):
175 """ Uses Object proxy for auditing changes on object of subscribed Rules"""174 """ Uses Object proxy for auditing changes on object of subscribed Rules"""
176175
177 def get_value_text(self, cr, uid, pool, resource_pool, method, field, value):176 def get_value_text(self, cr, uid, pool, resource_pool, method, field, value):
@@ -519,7 +518,6 @@
519 return self.log_fct(cr, uid, model, method, fct_src, *args, **kw)518 return self.log_fct(cr, uid, model, method, fct_src, *args, **kw)
520 return fct_src(cr, uid, model, method, *args, **kw)519 return fct_src(cr, uid, model, method, *args, **kw)
521520
522audittrail_objects_proxy()
523521
524# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:522# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
525523
526524
=== modified file 'audittrail/wizard/audittrail_view_log.py'
--- audittrail/wizard/audittrail_view_log.py 2012-12-06 14:56:32 +0000
+++ audittrail/wizard/audittrail_view_log.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,10 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23import time23import time
2424
25class audittrail_view_log(osv.osv_memory):25class audittrail_view_log(orm.TransientModel):
2626
27 _name = "audittrail.view.log"27 _name = "audittrail.view.log"
28 _description = "View Log"28 _description = "View Log"
@@ -61,6 +61,5 @@
61 #End Loop61 #End Loop
62 return result62 return result
6363
64audittrail_view_log()
6564
66# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:65# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6766
=== modified file 'auth_crypt/auth_crypt.py'
--- auth_crypt/auth_crypt.py 2012-12-19 11:33:39 +0000
+++ auth_crypt/auth_crypt.py 2012-12-20 15:08:18 +0000
@@ -15,7 +15,7 @@
15from string import ascii_letters, digits15from string import ascii_letters, digits
1616
17import openerp17import openerp
18from openerp.osv import fields, osv18from openerp.osv import fields, osv, orm
1919
20_logger = logging.getLogger(__name__)20_logger = logging.getLogger(__name__)
2121
@@ -114,7 +114,7 @@
114 result = result.encode('base64') # doesnt seem to be crypt(3) compatible114 result = result.encode('base64') # doesnt seem to be crypt(3) compatible
115 return '%s%s$%s' % (magic_sha256, salt, result)115 return '%s%s$%s' % (magic_sha256, salt, result)
116116
117class res_users(osv.osv):117class res_users(orm.Model):
118 _inherit = "res.users"118 _inherit = "res.users"
119119
120 def set_pw(self, cr, uid, id, name, value, args, context):120 def set_pw(self, cr, uid, id, name, value, args, context):
121121
=== modified file 'auth_ldap/users_ldap.py'
--- auth_ldap/users_ldap.py 2012-12-10 11:16:54 +0000
+++ auth_ldap/users_ldap.py 2012-12-20 15:08:18 +0000
@@ -25,11 +25,11 @@
25import openerp.exceptions25import openerp.exceptions
26from openerp import pooler26from openerp import pooler
27from openerp import tools27from openerp import tools
28from openerp.osv import fields, osv28from openerp.osv import fields, osv, orm
29from openerp import SUPERUSER_ID29from openerp import SUPERUSER_ID
30_logger = logging.getLogger(__name__)30_logger = logging.getLogger(__name__)
3131
32class CompanyLDAP(osv.osv):32class CompanyLDAP(orm.Model):
33 _name = 'res.company.ldap'33 _name = 'res.company.ldap'
34 _order = 'sequence'34 _order = 'sequence'
35 _rec_name = 'ldap_server'35 _rec_name = 'ldap_server'
@@ -228,19 +228,17 @@
228 'create_user': True,228 'create_user': True,
229 }229 }
230230
231CompanyLDAP()231
232232
233233class res_company(orm.Model):
234class res_company(osv.osv):
235 _inherit = "res.company"234 _inherit = "res.company"
236 _columns = {235 _columns = {
237 'ldaps': fields.one2many(236 'ldaps': fields.one2many(
238 'res.company.ldap', 'company', 'LDAP Parameters'),237 'res.company.ldap', 'company', 'LDAP Parameters'),
239 }238 }
240res_company()239
241240
242241class users(orm.Model):
243class users(osv.osv):
244 _inherit = "res.users"242 _inherit = "res.users"
245 def login(self, db, login, password):243 def login(self, db, login, password):
246 user_id = super(users, self).login(db, login, password)244 user_id = super(users, self).login(db, login, password)
@@ -283,5 +281,4 @@
283 cr.close()281 cr.close()
284 raise openerp.exceptions.AccessDenied()282 raise openerp.exceptions.AccessDenied()
285 283
286users()
287# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:284# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
288285
=== modified file 'auth_oauth/auth_oauth.py'
--- auth_oauth/auth_oauth.py 2012-08-18 13:04:11 +0000
+++ auth_oauth/auth_oauth.py 2012-12-20 15:08:18 +0000
@@ -1,6 +1,6 @@
1from openerp.osv import osv, fields1from openerp.osv import orm, osv, fields
22
3class auth_oauth_provider(osv.osv):3class auth_oauth_provider(orm.Model):
4 """Class defining the configuration values of an OAuth2 provider"""4 """Class defining the configuration values of an OAuth2 provider"""
55
6 _name = 'auth.oauth.provider'6 _name = 'auth.oauth.provider'
77
=== modified file 'auth_oauth/res_config.py'
--- auth_oauth/res_config.py 2012-08-18 13:04:11 +0000
+++ auth_oauth/res_config.py 2012-12-20 15:08:18 +0000
@@ -19,7 +19,7 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv, fields22from openerp.osv import orm, osv, fields
2323
24import logging24import logging
25_logger = logging.getLogger(__name__)25_logger = logging.getLogger(__name__)
2626
=== modified file 'auth_oauth/res_users.py'
--- auth_oauth/res_users.py 2012-11-27 10:06:35 +0000
+++ auth_oauth/res_users.py 2012-12-20 15:08:18 +0000
@@ -6,7 +6,7 @@
6import simplejson6import simplejson
77
8import openerp8import openerp
9from openerp.osv import osv, fields9from openerp.osv import orm, osv, fields
10from openerp import SUPERUSER_ID10from openerp import SUPERUSER_ID
1111
12_logger = logging.getLogger(__name__)12_logger = logging.getLogger(__name__)
1313
=== modified file 'auth_oauth_signup/res_users.py'
--- auth_oauth_signup/res_users.py 2012-11-26 11:03:01 +0000
+++ auth_oauth_signup/res_users.py 2012-12-20 15:08:18 +0000
@@ -23,7 +23,7 @@
23import simplejson23import simplejson
2424
25import openerp25import openerp
26from openerp.osv import osv, fields26from openerp.osv import osv, fields, orm
2727
28_logger = logging.getLogger(__name__)28_logger = logging.getLogger(__name__)
2929
3030
=== modified file 'auth_openid/res_users.py'
--- auth_openid/res_users.py 2012-12-10 11:16:54 +0000
+++ auth_openid/res_users.py 2012-12-20 15:08:18 +0000
@@ -19,13 +19,13 @@
19#19#
20##############################################################################20##############################################################################
21from openerp.modules.registry import RegistryManager21from openerp.modules.registry import RegistryManager
22from openerp.osv import osv, fields22from openerp.osv import orm, fields
23import openerp.exceptions23import openerp.exceptions
24from openerp import tools24from openerp import tools
2525
26import utils26import utils
2727
28class res_users(osv.osv):28class res_users(orm.Model):
29 _inherit = 'res.users'29 _inherit = 'res.users'
3030
31 # TODO create helper fields for autofill openid_url and openid_email -> http://pad.openerp.com/web-openid31 # TODO create helper fields for autofill openid_url and openid_email -> http://pad.openerp.com/web-openid
@@ -91,7 +91,6 @@
91 raise91 raise
92 self._uid_cache.setdefault(db, {})[uid] = passwd92 self._uid_cache.setdefault(db, {})[uid] = passwd
9393
94res_users()
9594
9695
9796
9897
=== modified file 'auth_signup/res_config.py'
--- auth_signup/res_config.py 2012-12-04 10:31:46 +0000
+++ auth_signup/res_config.py 2012-12-20 15:08:18 +0000
@@ -19,7 +19,7 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv, fields22from openerp.osv import osv, fields, orm
23from openerp.tools.safe_eval import safe_eval23from openerp.tools.safe_eval import safe_eval
2424
25class base_config_settings(osv.TransientModel):25class base_config_settings(osv.TransientModel):
2626
=== modified file 'auth_signup/res_users.py'
--- auth_signup/res_users.py 2012-12-18 15:32:55 +0000
+++ auth_signup/res_users.py 2012-12-20 15:08:18 +0000
@@ -23,7 +23,7 @@
23from urllib import urlencode23from urllib import urlencode
24from urlparse import urljoin24from urlparse import urljoin
2525
26from openerp.osv import osv, fields26from openerp.osv import osv, fields, orm
27from openerp.tools.misc import DEFAULT_SERVER_DATETIME_FORMAT27from openerp.tools.misc import DEFAULT_SERVER_DATETIME_FORMAT
28from openerp.tools.safe_eval import safe_eval28from openerp.tools.safe_eval import safe_eval
29from openerp.tools.translate import _29from openerp.tools.translate import _
3030
=== modified file 'base_action_rule/base_action_rule.py'
--- base_action_rule/base_action_rule.py 2012-12-10 11:16:54 +0000
+++ base_action_rule/base_action_rule.py 2012-12-20 15:08:18 +0000
@@ -42,7 +42,7 @@
42 return datetime.strptime(date_field[:19], '%Y-%m-%d %H:%M:%S')42 return datetime.strptime(date_field[:19], '%Y-%m-%d %H:%M:%S')
4343
4444
45class base_action_rule(osv.osv):45class base_action_rule(orm.Model):
46 """ Base Action Rules """46 """ Base Action Rules """
4747
48 _name = 'base.action.rule'48 _name = 'base.action.rule'
@@ -330,16 +330,14 @@
330 context.update({'action': False})330 context.update({'action': False})
331 return True331 return True
332332
333base_action_rule()
334333
335class actions_server(osv.osv):334class actions_server(orm.Model):
336 _inherit = 'ir.actions.server'335 _inherit = 'ir.actions.server'
337 _columns = {336 _columns = {
338 'action_rule_id': fields.many2one("base.action.rule", string="Action Rule")337 'action_rule_id': fields.many2one("base.action.rule", string="Action Rule")
339 }338 }
340actions_server()
341339
342class ir_cron(osv.osv):340class ir_cron(orm.Model):
343 _inherit = 'ir.cron'341 _inherit = 'ir.cron'
344 _init_done = False342 _init_done = False
345343
@@ -361,7 +359,6 @@
361359
362 super(ir_cron, self)._poolJobs(db_name, check=check)360 super(ir_cron, self)._poolJobs(db_name, check=check)
363361
364ir_cron()
365362
366363
367# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:364# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
368365
=== modified file 'base_calendar/base_calendar.py'
--- base_calendar/base_calendar.py 2012-12-18 08:59:14 +0000
+++ base_calendar/base_calendar.py 2012-12-20 15:08:18 +0000
@@ -23,7 +23,7 @@
23from dateutil import parser23from dateutil import parser
24from dateutil import rrule24from dateutil import rrule
25from dateutil.relativedelta import relativedelta25from dateutil.relativedelta import relativedelta
26from openerp.osv import fields, osv26from openerp.osv import fields, osv, orm
27from openerp.service import web_services27from openerp.service import web_services
28from openerp.tools.translate import _28from openerp.tools.translate import _
29import pytz29import pytz
@@ -216,7 +216,7 @@
216</html>216</html>
217"""217"""
218218
219class calendar_attendee(osv.osv):219class calendar_attendee(orm.Model):
220 """220 """
221 Calendar Attendee Information221 Calendar Attendee Information
222 """222 """
@@ -626,9 +626,8 @@
626 res = super(calendar_attendee, self).create(cr, uid, vals, context)626 res = super(calendar_attendee, self).create(cr, uid, vals, context)
627 return res627 return res
628628
629calendar_attendee()
630629
631class res_alarm(osv.osv):630class res_alarm(orm.Model):
632 """Resource Alarm """631 """Resource Alarm """
633 _name = 'res.alarm'632 _name = 'res.alarm'
634 _description = 'Basic Alarm Information'633 _description = 'Basic Alarm Information'
@@ -757,9 +756,8 @@
757 where id=%%s' % model_obj._table,(data.id,))756 where id=%%s' % model_obj._table,(data.id,))
758 return True757 return True
759758
760res_alarm()
761759
762class calendar_alarm(osv.osv):760class calendar_alarm(orm.Model):
763 _name = 'calendar.alarm'761 _name = 'calendar.alarm'
764 _description = 'Event alarm information'762 _description = 'Event alarm information'
765 _inherit = 'res.alarm'763 _inherit = 'res.alarm'
@@ -910,10 +908,9 @@
910 self.write(cr, uid, [alarm.id], update_vals)908 self.write(cr, uid, [alarm.id], update_vals)
911 return True909 return True
912910
913calendar_alarm()911
914912
915913class calendar_event(orm.Model):
916class calendar_event(osv.osv):
917 _name = "calendar.event"914 _name = "calendar.event"
918 _description = "Calendar Event"915 _description = "Calendar Event"
919 __attribute__ = {}916 __attribute__ = {}
@@ -1602,9 +1599,8 @@
1602 """1599 """
1603 return self.write(cr, uid, ids, {'state': 'confirmed'}, context)1600 return self.write(cr, uid, ids, {'state': 'confirmed'}, context)
16041601
1605calendar_event()
16061602
1607class calendar_todo(osv.osv):1603class calendar_todo(orm.Model):
1608 """ Calendar Task """1604 """ Calendar Task """
16091605
1610 _name = "calendar.todo"1606 _name = "calendar.todo"
@@ -1651,10 +1647,9 @@
1651 __attribute__ = {}1647 __attribute__ = {}
16521648
16531649
1654calendar_todo()1650
16551651
16561652class ir_values(orm.Model):
1657class ir_values(osv.osv):
1658 _inherit = 'ir.values'1653 _inherit = 'ir.values'
16591654
1660 def set(self, cr, uid, key, key2, name, models, value, replace=True, \1655 def set(self, cr, uid, key, key2, name, models, value, replace=True, \
@@ -1696,9 +1691,8 @@
1696 return super(ir_values, self).get(cr, uid, key, key2, new_model, \1691 return super(ir_values, self).get(cr, uid, key, key2, new_model, \
1697 meta, context, res_id_req, without_user, key2_req)1692 meta, context, res_id_req, without_user, key2_req)
16981693
1699ir_values()
17001694
1701class ir_model(osv.osv):1695class ir_model(orm.Model):
17021696
1703 _inherit = 'ir.model'1697 _inherit = 'ir.model'
17041698
@@ -1722,7 +1716,6 @@
1722 val['id'] = base_calendar_id2real_id(val['id'])1716 val['id'] = base_calendar_id2real_id(val['id'])
1723 return isinstance(ids, (str, int, long)) and data[0] or data1717 return isinstance(ids, (str, int, long)) and data[0] or data
17241718
1725ir_model()
17261719
1727class virtual_report_spool(web_services.report_spool):1720class virtual_report_spool(web_services.report_spool):
17281721
@@ -1745,9 +1738,8 @@
1745 data['id'] = base_calendar_id2real_id(data['id'])1738 data['id'] = base_calendar_id2real_id(data['id'])
1746 return super(virtual_report_spool, self).exp_report(db, uid, object, new_ids, data, context)1739 return super(virtual_report_spool, self).exp_report(db, uid, object, new_ids, data, context)
17471740
1748virtual_report_spool()
17491741
1750class res_users(osv.osv):1742class res_users(orm.Model):
1751 _inherit = 'res.users'1743 _inherit = 'res.users'
17521744
1753 def _get_user_avail(self, cr, uid, ids, context=None):1745 def _get_user_avail(self, cr, uid, ids, context=None):
@@ -1798,6 +1790,5 @@
1798 string='Free/Busy'),1790 string='Free/Busy'),
1799 }1791 }
18001792
1801res_users()
18021793
1803# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:1794# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
18041795
=== modified file 'base_calendar/crm_meeting.py'
--- base_calendar/crm_meeting.py 2012-12-20 12:49:27 +0000
+++ base_calendar/crm_meeting.py 2012-12-20 15:08:18 +0000
@@ -19,10 +19,15 @@
19#19#
20##############################################################################20##############################################################################
2121
22<<<<<<< TREE
22import time23import time
2324
24from openerp.osv import fields, osv25from openerp.osv import fields, osv
25from openerp.tools import DEFAULT_SERVER_DATE_FORMAT26from openerp.tools import DEFAULT_SERVER_DATE_FORMAT
27=======
28from openerp.osv import fields, osv, orm
29from openerp import tools
30>>>>>>> MERGE-SOURCE
26from openerp.tools.translate import _31from openerp.tools.translate import _
27from base_calendar import get_real_ids, base_calendar_id2real_id32from base_calendar import get_real_ids, base_calendar_id2real_id
28from openerp.addons.base_status.base_state import base_state33from openerp.addons.base_status.base_state import base_state
@@ -121,7 +126,7 @@
121 thread_id = get_real_ids(thread_id)126 thread_id = get_real_ids(thread_id)
122 return super(crm_meeting, self).message_post(cr, uid, thread_id, body=body, subject=subject, type=type, subtype=subtype, parent_id=parent_id, attachments=attachments, context=context, **kwargs)127 return super(crm_meeting, self).message_post(cr, uid, thread_id, body=body, subject=subject, type=type, subtype=subtype, parent_id=parent_id, attachments=attachments, context=context, **kwargs)
123128
124class mail_message(osv.osv):129class mail_message(orm.Model):
125 _inherit = "mail.message"130 _inherit = "mail.message"
126131
127 def search(self, cr, uid, args, offset=0, limit=0, order=None, context=None, count=False):132 def search(self, cr, uid, args, offset=0, limit=0, order=None, context=None, count=False):
@@ -139,7 +144,7 @@
139 doc_dict.setdefault(virtual_id, doc_dict[get_real_ids(virtual_id)])144 doc_dict.setdefault(virtual_id, doc_dict[get_real_ids(virtual_id)])
140 return super(mail_message, self)._find_allowed_model_wise(cr, uid, doc_model, doc_dict, context=context)145 return super(mail_message, self)._find_allowed_model_wise(cr, uid, doc_model, doc_dict, context=context)
141146
142class ir_attachment(osv.osv):147class ir_attachment(orm.Model):
143 _inherit = "ir.attachment"148 _inherit = "ir.attachment"
144149
145 def search(self, cr, uid, args, offset=0, limit=0, order=None, context=None, count=False):150 def search(self, cr, uid, args, offset=0, limit=0, order=None, context=None, count=False):
@@ -159,7 +164,7 @@
159 vals['res_id'] = get_real_ids(vals.get('res_id'))164 vals['res_id'] = get_real_ids(vals.get('res_id'))
160 return super(ir_attachment, self).write(cr, uid, ids, vals, context=context)165 return super(ir_attachment, self).write(cr, uid, ids, vals, context=context)
161166
162class invite_wizard(osv.osv_memory):167class invite_wizard(orm.TransientModel):
163 _inherit = 'mail.wizard.invite'168 _inherit = 'mail.wizard.invite'
164169
165 def default_get(self, cr, uid, fields, context=None):170 def default_get(self, cr, uid, fields, context=None):
166171
=== modified file 'base_gengo/ir_translation.py'
--- base_gengo/ir_translation.py 2012-12-06 14:56:32 +0000
+++ base_gengo/ir_translation.py 2012-12-20 15:08:18 +0000
@@ -19,7 +19,7 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25LANG_CODE_MAPPING = {25LANG_CODE_MAPPING = {
2626
=== modified file 'base_gengo/res_company.py'
--- base_gengo/res_company.py 2012-12-06 14:56:32 +0000
+++ base_gengo/res_company.py 2012-12-20 15:08:18 +0000
@@ -19,7 +19,7 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
2424
25class res_company(osv.Model):25class res_company(osv.Model):
2626
=== modified file 'base_gengo/wizard/base_gengo_translations.py'
--- base_gengo/wizard/base_gengo_translations.py 2012-11-16 13:50:21 +0000
+++ base_gengo/wizard/base_gengo_translations.py 2012-12-20 15:08:18 +0000
@@ -23,7 +23,7 @@
23import re23import re
24import time24import time
2525
26from openerp.osv import osv, fields26from openerp.osv import osv, fields, orm
27from openerp import tools27from openerp import tools
28from openerp.tools.translate import _28from openerp.tools.translate import _
2929
@@ -48,7 +48,7 @@
48 'args': "'(%s,)'" % (str(GENGO_DEFAULT_LIMIT)),48 'args': "'(%s,)'" % (str(GENGO_DEFAULT_LIMIT)),
49}49}
5050
51class base_gengo_translations(osv.osv_memory):51class base_gengo_translations(orm.TransientModel):
5252
53 _name = 'base.gengo.translations'53 _name = 'base.gengo.translations'
54 _columns = {54 _columns = {
5555
=== modified file 'base_iban/base_iban.py'
--- base_iban/base_iban.py 2012-12-06 14:56:32 +0000
+++ base_iban/base_iban.py 2012-12-20 15:08:18 +0000
@@ -20,7 +20,7 @@
20##############################################################################20##############################################################################
21import string21import string
2222
23from openerp.osv import fields, osv23from openerp.osv import fields, osv, orm
24from openerp.tools.translate import _24from openerp.tools.translate import _
2525
26# Reference Examples of IBAN26# Reference Examples of IBAN
@@ -77,7 +77,7 @@
77 iban_str = iban_str[4:]77 iban_str = iban_str[4:]
78 return ' '.join(res)78 return ' '.join(res)
7979
80class res_partner_bank(osv.osv):80class res_partner_bank(orm.Model):
81 _inherit = "res.partner.bank"81 _inherit = "res.partner.bank"
8282
83 def create(self, cr, uid, vals, context=None):83 def create(self, cr, uid, vals, context=None):
@@ -181,6 +181,5 @@
181 (_check_bank, '\nPlease define BIC/Swift code on bank for bank type IBAN Account to make valid payments', ['bic'])181 (_check_bank, '\nPlease define BIC/Swift code on bank for bank type IBAN Account to make valid payments', ['bic'])
182 ]182 ]
183183
184res_partner_bank()
185184
186# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:185# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
187186
=== modified file 'base_report_designer/base_report_designer.py'
--- base_report_designer/base_report_designer.py 2012-12-06 14:56:32 +0000
+++ base_report_designer/base_report_designer.py 2012-12-20 15:08:18 +0000
@@ -19,7 +19,7 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import osv22from openerp.osv import osv, orm
23from openerp_sxw2rml import sxw2rml23from openerp_sxw2rml import sxw2rml
24from StringIO import StringIO24from StringIO import StringIO
25import base6425import base64
@@ -27,7 +27,7 @@
27from openerp import addons27from openerp import addons
28 28
2929
30class report_xml(osv.osv):30class report_xml(orm.Model):
31 _inherit = 'ir.actions.report.xml'31 _inherit = 'ir.actions.report.xml'
3232
33 def sxwtorml(self, cr, uid, file_sxw, file_type):33 def sxwtorml(self, cr, uid, file_sxw, file_type):
@@ -76,7 +76,6 @@
76 'report_rml_content': rml_data and base64.encodestring(rml_data) or False76 'report_rml_content': rml_data and base64.encodestring(rml_data) or False
77 }77 }
7878
79report_xml()
8079
81# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:80# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
8281
8382
=== modified file 'base_report_designer/installer.py'
--- base_report_designer/installer.py 2012-12-06 14:56:32 +0000
+++ base_report_designer/installer.py 2012-12-20 15:08:18 +0000
@@ -20,12 +20,12 @@
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields22from openerp.osv import fields
23from openerp.osv import osv23from openerp.osv import osv, orm
24import base6424import base64
25from openerp.tools.translate import _25from openerp.tools.translate import _
26from openerp import addons26from openerp import addons
2727
28class base_report_designer_installer(osv.osv_memory):28class base_report_designer_installer(orm.TransientModel):
29 _name = 'base_report_designer.installer'29 _name = 'base_report_designer.installer'
30 _inherit = 'res.config.installer'30 _inherit = 'res.config.installer'
3131
@@ -58,6 +58,5 @@
58 4. if your connection success, A message appears like 'You can start creating your report in current document.'.58 4. if your connection success, A message appears like 'You can start creating your report in current document.'.
59 """59 """
60 }60 }
61base_report_designer_installer()
62# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:61# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
6362
6463
=== modified file 'base_report_designer/openerp_sxw2rml/openerp_sxw2rml.py'
--- base_report_designer/openerp_sxw2rml/openerp_sxw2rml.py 2012-11-29 22:26:45 +0000
+++ base_report_designer/openerp_sxw2rml/openerp_sxw2rml.py 2012-12-20 15:08:18 +0000
@@ -32,7 +32,6 @@
3232
3333
34import re34import re
35import string
36import os35import os
37import zipfile36import zipfile
38import xml.dom.minidom37import xml.dom.minidom
@@ -88,7 +87,7 @@
88 def _stringToTuple(self, s):87 def _stringToTuple(self, s):
89 """Helper function."""88 """Helper function."""
90 try:89 try:
91 temp = string.split(s,",")90 temp = s.split(",")
92 return int(temp[0]),int(temp[1])91 return int(temp[0]),int(temp[1])
93 except:92 except:
94 return None93 return None
9594
=== modified file 'base_report_designer/wizard/base_report_designer_modify.py'
--- base_report_designer/wizard/base_report_designer_modify.py 2012-12-10 11:16:54 +0000
+++ base_report_designer/wizard/base_report_designer_modify.py 2012-12-20 15:08:18 +0000
@@ -21,14 +21,11 @@
21##############################################################################21##############################################################################
2222
23import base6423import base64
24import time24
25import urllib25from openerp import tools
2626from openerp.osv import fields, orm
27from openerp import osv, pooler, tools27
28from openerp.osv import fields, osv28class base_report_sxw(orm.TransientModel):
29from openerp.tools.translate import _
30
31class base_report_sxw(osv.osv_memory):
32 """Base Report sxw """29 """Base Report sxw """
33 _name = 'base.report.sxw'30 _name = 'base.report.sxw'
3431
@@ -54,9 +51,8 @@
54 'target': 'new',51 'target': 'new',
55 }52 }
5653
57base_report_sxw()
5854
59class base_report_file_sxw(osv.osv_memory):55class base_report_file_sxw(orm.TransientModel):
60 """Base Report File sxw """56 """Base Report File sxw """
61 _name = 'base.report.file.sxw'57 _name = 'base.report.file.sxw'
6258
@@ -116,9 +112,8 @@
116 'type': 'ir.actions.act_window',112 'type': 'ir.actions.act_window',
117 'target': 'new',113 'target': 'new',
118 }114 }
119base_report_file_sxw()
120115
121class base_report_rml_save(osv.osv_memory):116class base_report_rml_save(orm.TransientModel):
122 """Base Report file Save"""117 """Base Report file Save"""
123 _name = 'base.report.rml.save'118 _name = 'base.report.rml.save'
124 def default_get(self, cr, uid, fields, context=None):119 def default_get(self, cr, uid, fields, context=None):
@@ -133,12 +128,11 @@
133 @return: A dictionary which of fields with values.128 @return: A dictionary which of fields with values.
134129
135 """130 """
136
137 res = super(base_report_rml_save, self).default_get(cr, uid, fields, context=context)131 res = super(base_report_rml_save, self).default_get(cr, uid, fields, context=context)
138 report_id = self.pool.get('base.report.sxw').search(cr,uid,[])132 report_id = self.pool.get('base.report.sxw').search(cr,uid,[])
139 data = self.pool.get('base.report.file.sxw').read(cr, uid, report_id, context=context)[0]133 data = self.pool.get('base.report.file.sxw').read(cr, uid, report_id, context=context)[0]
140 report = self.pool.get('ir.actions.report.xml').browse(cr, uid, data['report_id'], context=context)134 report = self.pool.get('ir.actions.report.xml').browse(cr, uid, data['report_id'], context=context)
141 135
142 if 'file_rml' in fields:136 if 'file_rml' in fields:
143 res['file_rml'] = base64.encodestring(report.report_rml_content)137 res['file_rml'] = base64.encodestring(report.report_rml_content)
144 return res138 return res
@@ -146,6 +140,5 @@
146 'file_rml':fields.binary('Save As'),140 'file_rml':fields.binary('Save As'),
147 }141 }
148142
149base_report_rml_save()
150143
151# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:144# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
152145
=== modified file 'base_setup/base_setup.py'
--- base_setup/base_setup.py 2012-12-06 14:56:32 +0000
+++ base_setup/base_setup.py 2012-12-20 15:08:18 +0000
@@ -23,12 +23,12 @@
23import cgi23import cgi
24from openerp import pooler24from openerp import pooler
25from openerp import tools25from openerp import tools
26from openerp.osv import fields, osv26from openerp.osv import fields, osv, orm
27from openerp.tools.translate import _27from openerp.tools.translate import _
28from lxml import etree28from lxml import etree
2929
30# Specify Your Terminology will move to 'partner' module30# Specify Your Terminology will move to 'partner' module
31class specify_partner_terminology(osv.osv_memory):31class specify_partner_terminology(orm.TransientModel):
32 _name = 'base.setup.terminology'32 _name = 'base.setup.terminology'
33 _inherit = 'res.config'33 _inherit = 'res.config'
34 _columns = {34 _columns = {
3535
=== modified file 'base_setup/res_config.py'
--- base_setup/res_config.py 2012-12-17 14:43:06 +0000
+++ base_setup/res_config.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class base_config_settings(osv.osv_memory):24class base_config_settings(orm.TransientModel):
25 _name = 'base.config.settings'25 _name = 'base.config.settings'
26 _inherit = 'res.config.settings'26 _inherit = 'res.config.settings'
27 _columns = {27 _columns = {
@@ -53,7 +53,7 @@
53# Preferences wizard for Sales & CRM.53# Preferences wizard for Sales & CRM.
54# It is defined here because it is inherited independently in modules sale, crm,54# It is defined here because it is inherited independently in modules sale, crm,
55# plugin_outlook and plugin_thunderbird.55# plugin_outlook and plugin_thunderbird.
56class sale_config_settings(osv.osv_memory):56class sale_config_settings(orm.TransientModel):
57 _name = 'sale.config.settings'57 _name = 'sale.config.settings'
58 _inherit = 'res.config.settings'58 _inherit = 'res.config.settings'
59 _columns = {59 _columns = {
6060
=== modified file 'base_status/base_stage.py'
--- base_status/base_stage.py 2012-12-18 13:11:42 +0000
+++ base_status/base_stage.py 2012-12-20 15:08:18 +0000
@@ -19,7 +19,7 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class base_stage(object):25class base_stage(object):
2626
=== modified file 'base_status/base_state.py'
--- base_status/base_state.py 2012-12-18 13:11:42 +0000
+++ base_status/base_state.py 2012-12-20 15:08:18 +0000
@@ -19,7 +19,7 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
23from openerp.tools.translate import _23from openerp.tools.translate import _
2424
25class base_state(object):25class base_state(object):
2626
=== modified file 'base_vat/base_vat.py'
--- base_vat/base_vat.py 2012-12-18 17:55:47 +0000
+++ base_vat/base_vat.py 2012-12-20 15:08:18 +0000
@@ -32,7 +32,7 @@
32 "Install it to support more countries, for example with `easy_install vatnumber`.")32 "Install it to support more countries, for example with `easy_install vatnumber`.")
33 vatnumber = None33 vatnumber = None
3434
35from openerp.osv import fields, osv35from openerp.osv import fields, osv, orm
36from openerp.tools.misc import ustr36from openerp.tools.misc import ustr
37from openerp.tools.translate import _37from openerp.tools.translate import _
3838
@@ -71,7 +71,7 @@
71 'sk': 'SK0012345675',71 'sk': 'SK0012345675',
72}72}
7373
74class res_partner(osv.osv):74class res_partner(orm.Model):
75 _inherit = 'res.partner'75 _inherit = 'res.partner'
7676
77 def _split_vat(self, vat):77 def _split_vat(self, vat):
@@ -243,6 +243,5 @@
243 return False243 return False
244 return check == int(vat[8])244 return check == int(vat[8])
245245
246res_partner()
247246
248# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:247# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
249248
=== modified file 'base_vat/res_company.py'
--- base_vat/res_company.py 2012-12-06 14:56:32 +0000
+++ base_vat/res_company.py 2012-12-20 15:08:18 +0000
@@ -19,9 +19,9 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields, osv22from openerp.osv import fields, osv, orm
2323
24class res_company_vat (osv.osv):24class res_company_vat (orm.Model):
25 _inherit = 'res.company'25 _inherit = 'res.company'
26 _columns = {26 _columns = {
27 'vat_check_vies': fields.boolean('VIES VAT Check',27 'vat_check_vies': fields.boolean('VIES VAT Check',
2828
=== modified file 'board/board.py'
--- board/board.py 2012-12-06 14:56:32 +0000
+++ board/board.py 2012-12-20 15:08:18 +0000
@@ -24,9 +24,9 @@
24from textwrap import dedent24from textwrap import dedent
2525
26from openerp import tools26from openerp import tools
27from openerp.osv import fields, osv27from openerp.osv import fields, osv, orm
2828
29class board_board(osv.osv):29class board_board(orm.Model):
30 _name = 'board.board'30 _name = 'board.board'
31 _description = "Board"31 _description = "Board"
32 _auto = False32 _auto = False
@@ -98,7 +98,7 @@
98 return etree.tostring(remove_unauthorized_children(archnode), pretty_print=True)98 return etree.tostring(remove_unauthorized_children(archnode), pretty_print=True)
9999
100100
101class board_create(osv.osv_memory):101class board_create(orm.TransientModel):
102102
103 def board_create(self, cr, uid, ids, context=None):103 def board_create(self, cr, uid, ids, context=None):
104 assert len(ids) == 1104 assert len(ids) == 1
105105
=== modified file 'crm/crm.py'
--- crm/crm.py 2012-12-18 09:32:41 +0000
+++ crm/crm.py 2012-12-20 15:08:18 +0000
@@ -23,7 +23,7 @@
23import time23import time
24from lxml import etree24from lxml import etree
25from openerp.osv import fields25from openerp.osv import fields
26from openerp.osv import osv26from openerp.osv import osv, orm
27from openerp import tools27from openerp import tools
28from openerp.tools.translate import _28from openerp.tools.translate import _
2929
@@ -44,7 +44,7 @@
44 ('5', 'Lowest'),44 ('5', 'Lowest'),
45]45]
4646
47class crm_case_channel(osv.osv):47class crm_case_channel(orm.Model):
48 _name = "crm.case.channel"48 _name = "crm.case.channel"
49 _description = "Channels"49 _description = "Channels"
50 _order = 'name'50 _order = 'name'
@@ -56,7 +56,7 @@
56 'active': lambda *a: 1,56 'active': lambda *a: 1,
57 }57 }
5858
59class crm_case_stage(osv.osv):59class crm_case_stage(orm.Model):
60 """ Model for case stages. This models the main stages of a document60 """ Model for case stages. This models the main stages of a document
61 management flow. Main CRM objects (leads, opportunities, project61 management flow. Main CRM objects (leads, opportunities, project
62 issues, ...) will now use only stages, instead of state and stages.62 issues, ...) will now use only stages, instead of state and stages.
@@ -98,7 +98,7 @@
98 'case_default': True,98 'case_default': True,
99 }99 }
100100
101class crm_case_section(osv.osv):101class crm_case_section(orm.Model):
102 """ Model for sales teams. """102 """ Model for sales teams. """
103 _name = "crm.case.section"103 _name = "crm.case.section"
104 _inherits = {'mail.alias': 'alias_id'}104 _inherits = {'mail.alias': 'alias_id'}
@@ -145,7 +145,7 @@
145 ]145 ]
146146
147 _constraints = [147 _constraints = [
148 (osv.osv._check_recursion, 'Error ! You cannot create recursive Sales team.', ['parent_id'])148 (orm.Model._check_recursion, 'Error ! You cannot create recursive Sales team.', ['parent_id'])
149 ]149 ]
150150
151 def name_get(self, cr, uid, ids, context=None):151 def name_get(self, cr, uid, ids, context=None):
@@ -185,7 +185,7 @@
185 mail_alias.unlink(cr, uid, alias_ids, context=context)185 mail_alias.unlink(cr, uid, alias_ids, context=context)
186 return res186 return res
187187
188class crm_case_categ(osv.osv):188class crm_case_categ(orm.Model):
189 """ Category of Case """189 """ Category of Case """
190 _name = "crm.case.categ"190 _name = "crm.case.categ"
191 _description = "Category of Case"191 _description = "Category of Case"
@@ -204,7 +204,7 @@
204 'object_id' : _find_object_id204 'object_id' : _find_object_id
205 }205 }
206206
207class crm_case_resource_type(osv.osv):207class crm_case_resource_type(orm.Model):
208 """ Resource Type of case """208 """ Resource Type of case """
209 _name = "crm.case.resource.type"209 _name = "crm.case.resource.type"
210 _description = "Campaign"210 _description = "Campaign"
@@ -221,7 +221,7 @@
221 res = obj.read(cr, uid, ids, ['object', 'name'], context)221 res = obj.read(cr, uid, ids, ['object', 'name'], context)
222 return [(r['object'], r['name']) for r in res]222 return [(r['object'], r['name']) for r in res]
223223
224class crm_payment_mode(osv.osv):224class crm_payment_mode(orm.Model):
225 """ Payment Mode for Fund """225 """ Payment Mode for Fund """
226 _name = "crm.payment.mode"226 _name = "crm.payment.mode"
227 _description = "CRM Payment Mode"227 _description = "CRM Payment Mode"
228228
=== modified file 'crm/crm_action_rule.py'
--- crm/crm_action_rule.py 2012-12-06 14:56:32 +0000
+++ crm/crm_action_rule.py 2012-12-20 15:08:18 +0000
@@ -25,11 +25,11 @@
25from openerp.tools.translate import _25from openerp.tools.translate import _
26from openerp.tools import ustr26from openerp.tools import ustr
27from openerp.osv import fields27from openerp.osv import fields
28from openerp.osv import osv28from openerp.osv import osv, orm
2929
30import crm30import crm
3131
32class base_action_rule(osv.osv):32class base_action_rule(orm.Model):
33 """ Base Action Rule """33 """ Base Action Rule """
34 _inherit = 'base.action.rule'34 _inherit = 'base.action.rule'
35 _description = 'Action Rules'35 _description = 'Action Rules'
3636
=== modified file 'crm/crm_lead.py'
--- crm/crm_lead.py 2012-12-20 11:47:30 +0000
+++ crm/crm_lead.py 2012-12-20 15:08:18 +0000
@@ -22,7 +22,7 @@
22from openerp.addons.base_status.base_stage import base_stage22from openerp.addons.base_status.base_stage import base_stage
23import crm23import crm
24from datetime import datetime24from datetime import datetime
25from openerp.osv import fields, osv25from openerp.osv import fields, osv, orm
26import time26import time
27from openerp import tools27from openerp import tools
28from openerp.tools.translate import _28from openerp.tools.translate import _
@@ -66,7 +66,7 @@
66 crm.AVAILABLE_STATES[4][0], # Pending66 crm.AVAILABLE_STATES[4][0], # Pending
67)67)
6868
69class crm_lead(base_stage, format_address, osv.osv):69class crm_lead(base_stage, format_address, orm.Model):
70 """ CRM Lead Case """70 """ CRM Lead Case """
71 _name = "crm.lead"71 _name = "crm.lead"
72 _description = "Lead/Opportunity"72 _description = "Lead/Opportunity"
7373
=== modified file 'crm/crm_meeting.py'
--- crm/crm_meeting.py 2012-12-18 12:58:39 +0000
+++ crm/crm_meeting.py 2012-12-20 15:08:18 +0000
@@ -19,7 +19,13 @@
19#19#
20##############################################################################20##############################################################################
2121
22<<<<<<< TREE
22from openerp.osv import fields, osv23from openerp.osv import fields, osv
24=======
25from openerp.osv import fields, osv, orm
26from openerp import tools
27from openerp.tools.translate import _
28>>>>>>> MERGE-SOURCE
23import logging29import logging
24_logger = logging.getLogger(__name__)30_logger = logging.getLogger(__name__)
2531
@@ -35,7 +41,7 @@
35 }41 }
3642
3743
38class calendar_attendee(osv.osv):44class calendar_attendee(orm.Model):
39 """ Calendar Attendee """45 """ Calendar Attendee """
4046
41 _inherit = 'calendar.attendee'47 _inherit = 'calendar.attendee'
@@ -68,7 +74,7 @@
68 relation="crm.case.categ", multi='categ_id'),74 relation="crm.case.categ", multi='categ_id'),
69 }75 }
7076
71class res_users(osv.osv):77class res_users(orm.Model):
72 _name = 'res.users'78 _name = 'res.users'
73 _inherit = 'res.users'79 _inherit = 'res.users'
7480
7581
=== modified file 'crm/crm_phonecall.py'
--- crm/crm_phonecall.py 2012-12-20 11:47:30 +0000
+++ crm/crm_phonecall.py 2012-12-20 15:08:18 +0000
@@ -22,11 +22,17 @@
22from openerp.addons.base_status.base_state import base_state22from openerp.addons.base_status.base_state import base_state
23import crm23import crm
24from datetime import datetime24from datetime import datetime
25<<<<<<< TREE
25from openerp.osv import fields, osv26from openerp.osv import fields, osv
26from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT27from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT
28=======
29from openerp.osv import fields, osv, orm
30import time
31from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, DATETIME_FORMATS_MAP
32>>>>>>> MERGE-SOURCE
27from openerp.tools.translate import _33from openerp.tools.translate import _
2834
29class crm_phonecall(base_state, osv.osv):35class crm_phonecall(base_state, orm.Model):
30 """ Model for CRM phonecalls """36 """ Model for CRM phonecalls """
31 _name = "crm.phonecall"37 _name = "crm.phonecall"
32 _description = "Phonecall"38 _description = "Phonecall"
3339
=== modified file 'crm/crm_segmentation.py'
--- crm/crm_segmentation.py 2012-12-06 14:56:32 +0000
+++ crm/crm_segmentation.py 2012-12-20 15:08:18 +0000
@@ -21,7 +21,7 @@
2121
22from openerp.osv import fields,osv,orm22from openerp.osv import fields,osv,orm
2323
24class crm_segmentation(osv.osv):24class crm_segmentation(orm.Model):
25 '''25 '''
26 A segmentation is a tool to automatically assign categories on partners.26 A segmentation is a tool to automatically assign categories on partners.
27 These assignations are based on criterions.27 These assignations are based on criterions.
@@ -108,9 +108,8 @@
108108
109 self.write(cr, uid, ids, {'state':'running', 'partner_id':0})109 self.write(cr, uid, ids, {'state':'running', 'partner_id':0})
110 return self.process_continue(cr, uid, ids, start=True)110 return self.process_continue(cr, uid, ids, start=True)
111crm_segmentation()
112111
113class crm_segmentation_line(osv.osv):112class crm_segmentation_line(orm.Model):
114 """ Segmentation line """113 """ Segmentation line """
115 _name = "crm.segmentation.line"114 _name = "crm.segmentation.line"
116 _description = "Segmentation line"115 _description = "Segmentation line"
@@ -180,7 +179,6 @@
180 return True179 return True
181 return True180 return True
182181
183crm_segmentation_line()
184182
185# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:183# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
186184
187185
=== modified file 'crm/report/crm_lead_report.py'
--- crm/report/crm_lead_report.py 2012-12-06 14:56:32 +0000
+++ crm/report/crm_lead_report.py 2012-12-20 15:08:18 +0000
@@ -19,7 +19,7 @@
19#19#
20##############################################################################20##############################################################################
2121
22from openerp.osv import fields,osv22from openerp.osv import fields,osv, orm
23from openerp import tools23from openerp import tools
24from .. import crm24from .. import crm
2525
@@ -46,7 +46,7 @@
46 ('12', 'December')46 ('12', 'December')
47]47]
4848
49class crm_lead_report(osv.osv):49class crm_lead_report(orm.Model):
50 """ CRM Lead Analysis """50 """ CRM Lead Analysis """
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: