analytic_contract_purchase.py 1.4 KB

12345678910111213141516171819202122232425262728
  1. # -*- coding: utf-8 -*-
  2. ##############################################################################
  3. # For copyright and license notices, see __openerp__.py file in module root
  4. # directory
  5. ##############################################################################
  6. from openerp.osv import fields, osv
  7. from openerp.tools.translate import _
  8. class account_analytic_purchase(osv.osv):
  9. _inherit = "account.analytic.account"
  10. _columns = {
  11. 'type': fields.selection([('view','Analytic View'),
  12. ('normal','Analytic Account'),
  13. ('contract','Contract or Project'),
  14. ('template','Template of Contract'),
  15. ('purchase_contract','Purchase Contract')],
  16. 'Type of Account', required=True, help="If you select the View Type, it means you won\'t allow to create journal entries using that account.\n"\
  17. "The type 'Analytic account' stands for usual accounts that you only want to use in accounting.\n"\
  18. "If you select Contract or Project, it offers you the possibility to manage the validity and the invoicing options for this account.\n"\
  19. "The special type 'Template of Contract' allows you to define a template with default data that you can reuse easily."\
  20. "oosdfsdf"),
  21. }
  22. # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: