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.4 KiB

  1. # -*- coding: utf-8 -*-
  2. from openerp import fields, models
  3. class ResCompany(models.Model):
  4. _inherit = 'res.company'
  5. coop_email_contact = fields.Char(string="Contact email address for the"
  6. " cooperator")
  7. subscription_maximum_amount = fields.Float(string="Maximum authorised"
  8. " subscription amount")
  9. default_country_id = fields.Many2one('res.country',
  10. string="Default country",
  11. default=lambda self: self.country_id)
  12. default_lang_id = fields.Many2one('res.lang',
  13. string="Default lang")
  14. allow_id_card_upload = fields.Boolean(string="Allow ID Card upload")
  15. create_user = fields.Boolean(string="Create user for cooperator",
  16. default=True)
  17. board_representative = fields.Char(string="Board representative name")
  18. signature_scan = fields.Binary(string="Board representative signature")
  19. property_cooperator_account = fields.Many2one('account.account',
  20. company_dependent=True,
  21. string="Cooperator Account",
  22. domain=[('internal_type', '=', 'receivable'),
  23. ('deprecated', '=', False)],
  24. help="This account will be"
  25. " the default one as the"
  26. " receivable account for the"
  27. " cooperators",
  28. required=True)
  29. unmix_share_type = fields.Boolean(string="Unmix share type",
  30. default=True,
  31. help="If checked, A cooperator will be"
  32. " authorised to have only one type"
  33. " of share")
  34. display_logo1 = fields.Boolean(string="Display logo 1")
  35. display_logo2 = fields.Boolean(string="Display logo 2")
  36. bottom_logo1 = fields.Binary(string="Bottom logo 1")
  37. bottom_logo2 = fields.Binary(string="Bottom logo 2")