Port hr_holidays_lunch_voucher and hr_holidays_lunch_voucher_natixis to v10

This commit is contained in:
Alexis de Lattre
2017-12-04 15:01:04 +01:00
parent 06a1d182e5
commit f9951890b5
25 changed files with 107 additions and 99 deletions

View File

@@ -3,15 +3,14 @@
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import models, fields, api, _
from openerp.exceptions import Warning as UserError
from openerp.tools import float_is_zero
from odoo import models, fields, _
from odoo.exceptions import UserError
from odoo.tools import float_is_zero
class LunchVoucherPurchase(models.TransientModel):
_inherit = 'lunch.voucher.purchase'
@api.multi
def run(self):
self.ensure_one()
action = super(LunchVoucherPurchase, self).run()