main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 5df6378e80 - Show all commits

View File

@@ -7,4 +7,5 @@ def register():
rules.AutomationRuleSet,
freight_booking.FreightBookingInfo,
cron.Cron,
cron.AutomationCron,
module='automation', type_='model')

View File

@@ -18,8 +18,8 @@ class Cron(metaclass=PoolMeta):
cls.method.selection.append(
('automation.cron|update_shipment', "Update Shipment from freight booking info"))
class PriceCron(ModelSQL, ModelView):
"Price Cron"
class AutomationCron(ModelSQL, ModelView):
"Automation Cron"
__name__ = 'automation.cron'
frequency = fields.Selection([
@@ -51,7 +51,7 @@ class PriceCron(ModelSQL, ModelView):
@classmethod
@ModelView.button
def run(cls, crons):
cls.update_forex(crons)
cls.update_shipment(crons)
@classmethod
def update_shipment(cls):