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.

21 lines
1.3 KiB

  1. # -*- coding: utf-8 -*-
  2. from openerp import api, fields, models, _
  3. class ResCompany(models.Model):
  4. _inherit = 'res.company'
  5. coop_email_contact = fields.Char(string="Contact email address for the cooperator")
  6. subscription_maximum_amount = fields.Float(string="Maximum authorized subscription amount")
  7. default_country_id = fields.Many2one('res.country', string="Default country", default=lambda self: self.country_id)
  8. default_lang_id = fields.Many2one('res.lang', string="Default lang")
  9. board_representative = fields.Char(string="Board representative name")
  10. signature_scan = fields.Binary(string="Board representative signature")
  11. property_cooperator_account = fields.Many2one('account.account', company_dependent=True,
  12. string="Cooperator Account",
  13. domain="[('internal_type', '=', 'receivable'), ('deprecated', '=', False)]",
  14. help="This account will be the default one as the receivable account for the cooperators",
  15. required=True)
  16. unmix_share_type = fields.Boolean(string="Unmix share type",
  17. help="If checked, A cooperator will be authorized "
  18. "to have only one type of share")
  19. display_logo1 = fields.Boolean(string="Display logo1")
  20. display_logo2 = fields.Boolean(string="Display logo2")