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

@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion - Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class PurchaseConfigSettings(models.TransientModel):
_inherit = 'purchase.config.settings'
lunch_voucher_product_id = fields.Many2one(
related='company_id.lunch_voucher_product_id')
lunch_voucher_employer_price = fields.Monetary(
related='company_id.lunch_voucher_employer_price')