GoodERP
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.

25 lines
711B

  1. # Copyright 2016 上海开阖软件有限公司 (http://www.osbzr.com)
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from odoo import api, fields, models
  4. class SettleMode(models.Model):
  5. '''
  6. 用于承兑汇票等需要额外记录票号的资金收付业务
  7. '''
  8. _name = 'settle.mode'
  9. _description = '结算方式'
  10. name = fields.Char('名称', required=True)
  11. active = fields.Boolean('启用', default=True)
  12. company_id = fields.Many2one(
  13. 'res.company',
  14. string='公司',
  15. change_default=True,
  16. default=lambda self: self.env.company)
  17. _sql_constraints = [
  18. ('name_uniq', 'unique(name)', '结算方式不能重名')
  19. ]
上海开阖软件有限公司 沪ICP备12045867号-1