You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
2.0 KiB

11 years ago
11 years ago
11 years ago
11 years ago
  1. # -*- coding: utf-8 -*-
  2. ###########################################################################
  3. # Module Writen to OpenERP, Open Source Management Solution
  4. # Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>).
  5. # All Rights Reserved
  6. # Credits######################################################
  7. # Coded by: Humberto Arocha <hbto@vauxoo.com>
  8. # Planified by: Rafael Silva <rsilvam@vauxoo.com>
  9. # Audited by: Nhomar Hernandez <nhomar@vauxoo.com>
  10. #############################################################################
  11. # This program is free software: you can redistribute it and/or modify
  12. # it under the terms of the GNU Affero General Public License as published
  13. # by the Free Software Foundation, either version 3 of the License, or
  14. # (at your option) any later version.
  15. #
  16. # This program is distributed in the hope that it will be useful,
  17. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. # GNU Affero General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU Affero General Public License
  22. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  23. ##########################################################################
  24. from openerp.osv import orm, fields
  25. class res_company(orm.Model):
  26. _inherit = 'res.company'
  27. _columns = {
  28. 'credit_account_ids': fields.many2many('account.account',
  29. 'credit_account_company_rel',
  30. 'company_id', 'account_id',
  31. 'Creditable Accounts'),
  32. 'debit_account_ids': fields.many2many('account.account',
  33. 'debit_account_company_rel',
  34. 'company_id', 'account_id',
  35. 'Debitable Accounts'),
  36. }