18 lines
759 B
Python
18 lines
759 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
import qrcode
|
|
import base64
|
|
from io import BytesIO
|
|
from odoo import api, fields, models, _
|
|
from odoo.exceptions import ValidationError, UserError
|
|
import os
|
|
from datetime import timedelta
|
|
|
|
|
|
class RoomBooking(models.Model):
|
|
_inherit = "room.booking"
|
|
|
|
relevancy_type = fields.Selection(selection_add=[('yuthon_official', '行政发文'),
|
|
('yuthon_official_incoming_normal', '行政收文')], string="关联流程类型")
|
|
yuthon_official_id = fields.Many2one('yuthon.official', string="行政发文")
|
|
incoming_normal_id = fields.Many2one('yuthon.official.incoming.normal', string="行政发文") |