Skip to content

Commit

Permalink
Merge PR OCA#1265 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by AaronHForgeFlow
  • Loading branch information
OCA-git-bot committed Apr 19, 2022
2 parents 4c30b62 + b0a86f3 commit 785274d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 2 additions & 3 deletions account_fiscal_year/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
"Odoo Community Association (OCA)",
"maintainers": ["eLBati"],
"license": "AGPL-3",
"depends": [
"account",
],
"depends": ["account", "date_range"],
"data": [
"security/ir.model.access.csv",
"data/date_range_type.xml",
"security/account_fiscal_year_rule.xml",
"views/account_fiscal_year_views.xml",
],
Expand Down
7 changes: 7 additions & 0 deletions account_fiscal_year/data/date_range_type.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="fiscalyear" model="date.range.type">
<field name="name">Fiscal Year</field>
<field name="allow_overlap" eval="False" />
</record>
</odoo>
2 changes: 1 addition & 1 deletion account_fiscal_year/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_account_fiscal_year_user,account.fiscal.year.user,model_account_fiscal_year,account.group_account_user,1,0,0,0
access_account_fiscal_year_manager,account.fiscal.year.manager,model_account_fiscal_year,account.group_account_manager,1,1,1,1
access_account_fiscal_year_manager,account.fiscal.year.manager,model_account_fiscal_year,account.group_account_invoice,1,1,1,1

0 comments on commit 785274d

Please sign in to comment.