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.

40 lines
2.0 KiB

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