Tower: upload om_fiscal_year 19.0.1.0.1 (was 1.0.1, via marketplace)
This commit is contained in:
30
addons/om_fiscal_year/models/account_settings.py
Normal file
30
addons/om_fiscal_year/models/account_settings.py
Normal file
@@ -0,0 +1,30 @@
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
_inherit = 'res.config.settings'
|
||||
|
||||
fiscalyear_last_day = fields.Integer(
|
||||
related='company_id.fiscalyear_last_day', readonly=False
|
||||
)
|
||||
fiscalyear_last_month = fields.Selection(
|
||||
related='company_id.fiscalyear_last_month', readonly=False
|
||||
)
|
||||
tax_lock_date = fields.Date(
|
||||
related='company_id.hard_lock_date', readonly=False
|
||||
)
|
||||
sale_lock_date = fields.Date(
|
||||
related='company_id.hard_lock_date', readonly=False
|
||||
)
|
||||
purchase_lock_date = fields.Date(
|
||||
related='company_id.hard_lock_date', readonly=False
|
||||
)
|
||||
hard_lock_date = fields.Date(
|
||||
related='company_id.hard_lock_date', readonly=False
|
||||
)
|
||||
fiscalyear_lock_date = fields.Date(
|
||||
related='company_id.fiscalyear_lock_date', readonly=False
|
||||
)
|
||||
group_fiscal_year = fields.Boolean(
|
||||
string='Fiscal Years', implied_group='om_fiscal_year.group_fiscal_year'
|
||||
)
|
||||
Reference in New Issue
Block a user