Skip to content

Commit a861df4

Browse files
committed
Merge PR #2073 into 16.0
Signed-off-by alexis-via
2 parents c003c54 + 6e0df21 commit a861df4

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

account_usability/models/res_config_settings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ class ResConfigSettings(models.TransientModel):
1515
"invoiced to a final customer."
1616
),
1717
)
18+
fiscalyear_last_day = fields.Integer(
19+
related="company_id.fiscalyear_last_day", readonly=False
20+
)
21+
fiscalyear_last_month = fields.Selection(
22+
related="company_id.fiscalyear_last_month", readonly=False
23+
)

account_usability/readme/DESCRIPTION.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ that are hidden and available only on EE version.
2424
to fit with the EE terms.
2525

2626
4) Rename the main menu 'Billing' into 'Accounting' to fit with EE naming.
27+
28+
5) Allow to configure ``fiscalyear_last_day`` and ``fiscalyear_last_month``
29+
fields on accounting configuration page.

account_usability/views/res_config_settings_views.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,33 @@
2828
</div>
2929
</div>
3030
</div>
31+
<div id="accounting_reports" position="after">
32+
<div
33+
class="row mt16 o_settings_container"
34+
id="fiscalyear_last_day_month"
35+
>
36+
<div class="o_setting_left_pane" />
37+
<div class="o_setting_right_pane">
38+
<label
39+
string="Fiscal Year Last Day"
40+
for="fiscalyear_last_day"
41+
/>
42+
<div>
43+
<field
44+
name="fiscalyear_last_day"
45+
class="oe_inline"
46+
/>
47+
<field
48+
name="fiscalyear_last_month"
49+
class="oe_inline"
50+
/>
51+
</div>
52+
<div class="text-muted">
53+
Type the day and select the month of the last day of the company's fiscal year.
54+
</div>
55+
</div>
56+
</div>
57+
</div>
3158
</field>
3259
</record>
3360
</odoo>

0 commit comments

Comments
 (0)