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.
|
|
# Copyright 2020 Coop IT Easy SCRL fs # Robin Keunen <robin@coopiteasy.be> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class EMCHistoryImportSR(models.TransientModel): _name = "emc.history.import.sr" _description = "emc.history.import.sr"
name = fields.Char("Name", default="Import History") date_from = fields.Date(string="Date From", required=True) date_to = fields.Date(string="Date To", required=True)
@api.multi def import_subscription_button(self): self.env["subscription.request"].fetch_subscription_requests( date_from=self.date_from, date_to=self.date_to )
action = self.env.ref("easy_my_coop.subscription_request_action") return action.read()[0]
|