Compare commits
25 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
95e12414bc | ||
![]() |
1f05fa43c6 | ||
![]() |
46eb9a8c23 | ||
![]() |
3ed2216cbf | ||
![]() |
f397cd593c | ||
![]() |
8a08517a44 | ||
![]() |
a6097c1022 | ||
![]() |
b59e25760d | ||
![]() |
1536e8f22f | ||
![]() |
9685670672 | ||
![]() |
e4963beee9 | ||
![]() |
4f9e6ad1a0 | ||
![]() |
b5f774003f | ||
![]() |
73a7c1d86c | ||
![]() |
353b622074 | ||
![]() |
0fda36881e | ||
![]() |
3220527fe4 | ||
![]() |
ee593bd49f | ||
![]() |
6f27beb7a6 | ||
![]() |
722b265c33 | ||
![]() |
a3cba97892 | ||
![]() |
12839d06db | ||
![]() |
b47517c4d8 | ||
![]() |
b321965515 | ||
![]() |
170f5885d2 |
8 changed files with 55 additions and 43 deletions
30
README.rst
30
README.rst
|
@ -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
|
||||
|
|
|
@ -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 #
|
||||
|
|
41
locale/en.po
41
locale/en.po
|
@ -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."
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=7.0.0
|
||||
version=7.0.7
|
||||
depends:
|
||||
cashbook
|
||||
extras_depend:
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue