Add multi-company support hr_holidays_usability
Add modules hr_holidays_lunch_voucher and hr_holidays_lunch_voucher_natixis
This commit is contained in:
20
hr_holidays_lunch_voucher/company.py
Normal file
20
hr_holidays_lunch_voucher/company.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2017 Akretion (http://www.akretion.com)
|
||||
# @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
|
||||
import openerp.addons.decimal_precision as dp
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = 'res.company'
|
||||
|
||||
lunch_voucher_product_id = fields.Many2one(
|
||||
'product.product', string='Lunch Voucher Product',
|
||||
ondelete='restrict')
|
||||
lunch_voucher_employer_price = fields.Float(
|
||||
'Lunch Voucher Employer Price', digits=dp.get_precision('Account'))
|
||||
|
||||
# Add constrain to check that lunch_voucher_employer_price is between
|
||||
# 50% and 60% of the price of lunch_voucher_product_id for France
|
||||
Reference in New Issue
Block a user