← Back to team overview

credativ team mailing list archive

[Bug 902440] Re: product & product category - accounts must not be views

 

IMHO all  fields.many2one('account.account',,
must have 
domain="[('type','!=','view')]"
except
* for parent which must have
domain="[('type','=','view')]"
* for reports, queries 
 no domain , has to be decided dependent on report


potential files to review (checks only if view is on the same line)
grep many2one|grep "'account.account'"|grep -v view|grep -v report| cut -f 1 -d':'|sort -u

./account/account_analytic_line.py
./account/account_bank_statement.py
./account/account_invoice.py
./account/account.py
./account_asset/account_asset.py
./account_coda/wizard/account_coda_import.py
./account_voucher/account_voucher.py
./account/wizard/account_automatic_reconcile.py
./account/wizard/account_move_line_reconcile_select.py
./account/wizard/account_move_line_unreconcile_select.py
./account/wizard/account_reconcile.py
./auction/auction.py
./auction/wizard/auction_pay_sel.py
./hr_payroll_account/hr_payroll_account.py
./stock/product.py
./stock/stock.py
./stock/wizard/stock_change_standard_price.py


similar for analytic accounts
grep many2one|grep "'account.analytic.account'"|grep -v view|grep -v report| cut -f 1 -d':'|sort -u
./account/account_bank_statement.py
./account/account_invoice.py
./account/account_move_line.py
./account/account.py
./account_analytic_analysis/account_analytic_analysis.py
./account_analytic_default/account_analytic_default.py
./account_analytic_plans/account_analytic_plans.py
./account_analytic_plans/wizard/account_crossovered_analytic.py
./account_asset/account_asset.py
./account_budget/account_budget.py
./account_voucher/account_voucher.py
./account/wizard/account_reconcile.py
./analytic/analytic.py
./auction/auction.py
./hr_expense/hr_expense.py
./hr_payroll_account/hr_payroll_account.py
./hr_timesheet_sheet/hr_timesheet_sheet.py
./hr_timesheet/wizard/hr_timesheet_sign_in_out.py
./project_issue_sheet/project_issue_sheet.py
./project_planning/project_planning.py
./project/project.py
./purchase/purchase.py
./sale/sale.py

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/902440

Title:
  product & product category - accounts must not be views

Status in OpenERP Addons (modules):
  New

Bug description:
  just found that for stock valuation account (anglo saxon)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/902440/+subscriptions


References