Compare commits

..

25 commits

Author SHA1 Message Date
=Frederik Jaeckel
95e12414bc Version 7.0.7 2024-09-28 20:48:19 +02:00
=Frederik Jaeckel
1f05fa43c6 add notify 2024-09-28 20:45:31 +02:00
=Frederik Jaeckel
46eb9a8c23 add button 'execute booking now' 2024-09-28 20:45:15 +02:00
=Frederik Jaeckel
3ed2216cbf recurrence: add last-day-of-month 2024-09-28 20:44:51 +02:00
Frederik Jaeckel
f397cd593c Version 7.0.6 2024-07-19 16:24:54 +02:00
Frederik Jaeckel
8a08517a44 Use 'irrulecontext' to add 'user_id' to context of ir.rule 2024-07-19 16:23:32 +02:00
Frederik Jaeckel
a6097c1022 update gitignore 2024-07-19 16:23:28 +02:00
Frederik Jaeckel
b59e25760d Etikett ver 7.0.5 zum Änderungssatz f4651301338f hinzugefügt 2024-06-08 09:26:08 +02:00
Frederik Jaeckel
1536e8f22f Version 7.0.5 2024-06-08 09:25:58 +02:00
Frederik Jaeckel
9685670672 Add option to rule to move date of occurence to working day 2024-06-03 23:37:26 +02:00
Frederik Jaeckel
e4963beee9 config: new field 'holidays_info' to show generated holidays in config-form 2024-06-02 10:27:15 +02:00
Frederik Jaeckel
4f9e6ad1a0 config: compute holidays + test 2024-06-01 23:37:06 +02:00
Frederik Jaeckel
b5f774003f config: allow setting of holidays for each user 2024-06-01 13:33:45 +02:00
Frederik Jaeckel
73a7c1d86c New field 'move_event' for moving occurence-date if not a business day 2024-06-01 13:31:55 +02:00
Frederik Jaeckel
353b622074 Etikett ver 7.0.4 zum Änderungssatz 746c70d04a98 hinzugefügt 2024-03-11 12:51:52 +01:00
Frederik Jaeckel
0fda36881e Version 7.0.4 2024-03-11 12:51:42 +01:00
Frederik Jaeckel
3220527fe4 field 'nextrun_link' --> 'nextrun_date', add default-order 2024-03-11 12:50:00 +01:00
Frederik Jaeckel
ee593bd49f Etikett ver 7.0.3 zum Änderungssatz a496f77b38eb hinzugefügt 2024-03-10 22:23:19 +01:00
Frederik Jaeckel
6f27beb7a6 Version 7.0.3 2024-03-10 22:23:06 +01:00
Frederik Jaeckel
722b265c33 add placeholder 'rate' 2024-03-10 22:21:00 +01:00
Frederik Jaeckel
a3cba97892 Etikett ver 7.0.2 zum Änderungssatz 3a559e1ae70f hinzugefügt 2024-03-10 07:48:46 +01:00
Frederik Jaeckel
12839d06db Version 7.0.2 2024-03-10 07:47:04 +01:00
Frederik Jaeckel
b47517c4d8 fix permissions 2024-03-10 07:45:24 +01:00
Frederik Jaeckel
b321965515 Etikett ver 7.0.1 zum Änderungssatz 1f242ff67fe9 hinzugefügt 2024-03-09 22:39:57 +01:00
Frederik Jaeckel
170f5885d2 Version 7.0.1 2024-03-09 22:39:36 +01:00
8 changed files with 55 additions and 43 deletions

View file

@ -14,6 +14,32 @@ Requires
Changes
=======
*7.0.0 - 24.02.2024*
*7.0.7 - 28.09.2024*
- init
- add: recurrence rule 'last day of month'
- add: button 'execute booking now'
- add: notify
*7.0.6 - 19.07.2024*
- updt: optimize check of permissions
*7.0.5 - 08.06.2024*
- add: re-arrange date of occurence to working day
*7.0.4 - 11.03.2024*
- add: default-order for table
*7.0.3 - 10.03.2024*
- new placeholder 'rate' for description of booking
*7.0.2 - 10.03.2024*
- fix permissions
*7.0.1 - 09.03.2024*
- works

View file

@ -50,18 +50,14 @@ msgstr "geplante Buchungen"
###################
# ir.model.button #
###################
msgctxt "model:ir.model.button,string:book_now_button2"
msgctxt "model:ir.model.button,string:book_now_button"
msgid "Execute Booking Now"
msgstr "Buchung jetzt ausführen"
msgctxt "model:ir.model.button,help:book_now_button2"
msgctxt "model:ir.model.button,help:book_now_button"
msgid "The planned booking is brought forward and executed now. The next posting is then scheduled regularly for the following execution."
msgstr "Die geplante Buchung wird vorgezogen und jetzt ausgeführt. Die nächste Buchung wird dann regulär für die nachfolgende Ausführung geplant."
msgctxt "model:ir.model.button,confirm:book_now_button2"
msgid "The booking is now being made. Continue?"
msgstr "Die Buchung wird nun durchgeführt. Fortsetzen?"
#################
# ir.rule.group #

View file

@ -26,18 +26,14 @@ msgctxt "model:ir.action,name:act_planner_view"
msgid "Scheduled Bookings"
msgstr "Scheduled Bookings"
msgctxt "model:ir.model.button,string:book_now_button2"
msgctxt "model:ir.model.button,string:book_now_button"
msgid "Execute Booking Now"
msgstr "Execute Booking Now"
msgctxt "model:ir.model.button,help:book_now_button2"
msgctxt "model:ir.model.button,help:book_now_button"
msgid "The planned booking is brought forward and executed now. The next posting is then scheduled regularly for the following execution."
msgstr "The planned booking is brought forward and executed now. The next posting is then scheduled regularly for the following execution."
msgctxt "model:ir.model.button,confirm:book_now_button2"
msgid "The booking is now being made. Continue?"
msgstr "The booking is now being made. Continue?"
msgctxt "model:ir.rule.group,name:rg_planner_admin"
msgid "Administrators: scheduled bookings read/write"
msgstr "Administrators: scheduled bookings read/write"
@ -358,22 +354,6 @@ msgctxt "help:cashbook.planner,move_event:"
msgid "If the date of execution falls on a weekend or holiday, it can be moved to a business day."
msgstr "If the date of execution falls on a weekend or holiday, it can be moved to a business day."
msgctxt "field:cashbook.planner,last_day_of_month:"
msgid "Last day of the month"
msgstr "Last day of the month"
msgctxt "help:cashbook.planner,last_day_of_month:"
msgid "The booking is made on the last day of the month."
msgstr "The booking is made on the last day of the month."
msgctxt "field:cashbook.planner,notify_bycron:"
msgid "Notify"
msgstr "Notify"
msgctxt "help:cashbook.planner,notify_bycron:"
msgid "A notification will appear in the web browser when the booking has been created."
msgstr "A notification will appear in the web browser when the booking has been created."
msgctxt "model:cashbook.planner.nextrun,name:"
msgid "Next Execution Date"
msgstr "Next Execution Date"
@ -410,7 +390,18 @@ msgctxt "view:cashbook.line:"
msgid "Scheduled Bookings"
msgstr "Scheduled Bookings"
msgctxt "field:cashbook.line,planners:"
msgid "Scheduled Bookings"
msgstr "Scheduled Bookings"
msgctxt "field:cashbook.planner,last_day_of_month:"
msgid "Last day of the month"
msgstr "Last day of the month"
msgctxt "help:cashbook.planner,last_day_of_month:"
msgid "The booking is made on the last day of the month."
msgstr "The booking is made on the last day of the month."
msgctxt "field:cashbook.planner,notify_bycron:"
msgid "Notify"
msgstr "Notify"
msgctxt "help:cashbook.planner,notify_bycron:"
msgid "A notification will appear in the web browser when the booking has been created."
msgstr "A notification will appear in the web browser when the booking has been created."

View file

@ -193,7 +193,7 @@ class ScheduledBooking(DeactivableMixin, ModelSQL, ModelView):
(t.end_date, Index.Range(order='ASC')),
where=t.end_date != DEF_NONE)})
cls._buttons.update({
'book_now': {'readonly': ~Eval('active', False)},
'booknow': {'readonly': ~Eval('active', False)},
})
def get_rec_name(self, name=None):
@ -747,7 +747,7 @@ class ScheduledBooking(DeactivableMixin, ModelSQL, ModelView):
@classmethod
@ModelView.button
def book_now(cls, records):
def booknow(cls, records):
""" run planned booking now
"""
to_work = [x for x in records if x.active and x.nextrun_date]

View file

@ -158,15 +158,14 @@ full copyright notices and license terms. -->
</record>
<!-- button -->
<record model="ir.model.button" id="book_now_button2">
<field name="name">book_now</field>
<record model="ir.model.button" id="book_now_button">
<field name="name">booknow</field>
<field name="string">Execute Booking Now</field>
<field name="confirm">The booking is now being made. Continue?</field>
<field name="help">The planned booking is brought forward and executed now. The next posting is then scheduled regularly for the following execution.</field>
<field name="model" search="[('model', '=', 'cashbook.planner')]"/>
</record>
<record model="ir.model.button-res.group" id="book_now_button2-group_planner">
<field name="button" ref="book_now_button2"/>
<record model="ir.model.button-res.group" id="book_now_button-group_planner">
<field name="button" ref="book_now_button"/>
<field name="group" ref="group_planner"/>
</record>

View file

@ -401,7 +401,7 @@ class PlannerTestCase(object):
job._compute_dates_by_rrule(
count=1, query_date=date(2022, 5, 1)), [
date(2022, 5, 1)])
Planner.book_now([job])
Planner.booknow([job])
self.assertEqual(
job.rec_name, "Job 1|Book 1|Exp|Cat1|06/01/2022|usd0.00")

View file

@ -1,5 +1,5 @@
[tryton]
version=7.0.0
version=7.0.7
depends:
cashbook
extras_depend:

View file

@ -12,9 +12,9 @@ full copyright notices and license terms. -->
<label name="active"/>
<field name="active"/>
<button colspan="2" name="booknow"/>
<label name="nextrun_date" colspan="3"/>
<field name="nextrun_date"/>
<button colspan="2" name="book_now"/>
<notebook colspan="6">
<page id="rrule" col="6" string="Recurrence Rule">