details:   https://code.tryton.org/tryton/commit/21f5067a0599
branch:    default
user:      Cédric Krier <[email protected]>
date:      Mon Dec 08 10:29:42 2025 +0100
description:
        Replace starting/ending date by start/end date

        These are the most frequent terms used.
diffstat:

 modules/account/fiscalyear.py   |   6 ++++--
 modules/account/period.py       |   6 ++++--
 modules/account/tax.py          |  16 ++++++++--------
 modules/account_rule/account.py |   4 ++--
 4 files changed, 18 insertions(+), 14 deletions(-)

diffs (95 lines):

diff -r a190b11804fc -r 21f5067a0599 modules/account/fiscalyear.py
--- a/modules/account/fiscalyear.py     Sat Dec 06 09:08:20 2025 +0100
+++ b/modules/account/fiscalyear.py     Mon Dec 08 10:29:42 2025 +0100
@@ -31,9 +31,11 @@
 class FiscalYear(Workflow, ModelSQL, ModelView):
     __name__ = 'account.fiscalyear'
     name = fields.Char('Name', size=None, required=True)
-    start_date = fields.Date('Starting Date', required=True, states=STATES,
+    start_date = fields.Date(
+        "Start Date", required=True, states=STATES,
         domain=[('start_date', '<=', Eval('end_date', None))])
-    end_date = fields.Date('Ending Date', required=True, states=STATES,
+    end_date = fields.Date(
+        "End Date", required=True, states=STATES,
         domain=[('end_date', '>=', Eval('start_date', None))])
     periods = fields.One2Many('account.period', 'fiscalyear', 'Periods',
         states=STATES,
diff -r a190b11804fc -r 21f5067a0599 modules/account/period.py
--- a/modules/account/period.py Sat Dec 06 09:08:20 2025 +0100
+++ b/modules/account/period.py Mon Dec 08 10:29:42 2025 +0100
@@ -26,9 +26,11 @@
 class Period(Workflow, ModelSQL, ModelView):
     __name__ = 'account.period'
     name = fields.Char('Name', required=True)
-    start_date = fields.Date('Starting Date', required=True, states=_STATES,
+    start_date = fields.Date(
+        "Start Date", required=True, states=_STATES,
         domain=[('start_date', '<=', Eval('end_date', None))])
-    end_date = fields.Date('Ending Date', required=True, states=_STATES,
+    end_date = fields.Date(
+        "End Date", required=True, states=_STATES,
         domain=[('end_date', '>=', Eval('start_date', None))])
     fiscalyear = fields.Many2One(
         'account.fiscalyear', "Fiscal Year", required=True, ondelete='CASCADE',
diff -r a190b11804fc -r 21f5067a0599 modules/account/tax.py
--- a/modules/account/tax.py    Sat Dec 06 09:08:20 2025 +0100
+++ b/modules/account/tax.py    Mon Dec 08 10:29:42 2025 +0100
@@ -588,8 +588,8 @@
         states={
             'invisible': Bool(Eval('parent')),
             })
-    start_date = fields.Date('Starting Date')
-    end_date = fields.Date('Ending Date')
+    start_date = fields.Date("Start Date")
+    end_date = fields.Date("End Date")
     amount = fields.Numeric(
         "Amount", digits=(None, 8),
         states={
@@ -758,8 +758,8 @@
             'invisible': Bool(Eval('parent')),
             'readonly': _states['readonly'],
             })
-    start_date = fields.Date('Starting Date', states=_states)
-    end_date = fields.Date('Ending Date', states=_states)
+    start_date = fields.Date("Start Date", states=_states)
+    end_date = fields.Date("End Date", states=_states)
     amount = fields.Numeric(
         "Amount", digits=(None, 8),
         states={
@@ -1572,8 +1572,8 @@
     __name__ = 'account.tax.rule.line.template'
     rule = fields.Many2One('account.tax.rule.template', 'Rule', required=True,
             ondelete='CASCADE')
-    start_date = fields.Date("Starting Date")
-    end_date = fields.Date("Ending Date")
+    start_date = fields.Date("Start Date")
+    end_date = fields.Date("End Date")
     group = fields.Many2One('account.tax.group', 'Tax Group',
         ondelete='RESTRICT')
     origin_tax = fields.Many2One('account.tax.template', 'Original Tax',
@@ -1693,8 +1693,8 @@
     rule = fields.Many2One(
         'account.tax.rule', "Rule",
         required=True, ondelete='CASCADE', states=_states)
-    start_date = fields.Date("Starting Date")
-    end_date = fields.Date("Ending Date")
+    start_date = fields.Date("Start Date")
+    end_date = fields.Date("End Date")
     group = fields.Many2One('account.tax.group', 'Tax Group',
         ondelete='RESTRICT', states=_states)
     origin_tax = fields.Many2One('account.tax', 'Original Tax',
diff -r a190b11804fc -r 21f5067a0599 modules/account_rule/account.py
--- a/modules/account_rule/account.py   Sat Dec 06 09:08:20 2025 +0100
+++ b/modules/account_rule/account.py   Mon Dec 08 10:29:42 2025 +0100
@@ -36,8 +36,8 @@
     __name__ = 'account.account.rule'
 
     company = fields.Many2One('company.company', "Company", required=True)
-    start_date = fields.Date("Starting Date")
-    end_date = fields.Date("Ending Date")
+    start_date = fields.Date("Start Date")
+    end_date = fields.Date("End Date")
     type = fields.Selection([
             ('receivable', "Receivable"),
             ('stock', "Stock"),

Reply via email to