20.01.26
This commit is contained in:
@@ -7,4 +7,5 @@ def register():
|
|||||||
rules.AutomationRuleSet,
|
rules.AutomationRuleSet,
|
||||||
freight_booking.FreightBookingInfo,
|
freight_booking.FreightBookingInfo,
|
||||||
cron.Cron,
|
cron.Cron,
|
||||||
|
cron.AutomationCron,
|
||||||
module='automation', type_='model')
|
module='automation', type_='model')
|
||||||
@@ -18,8 +18,8 @@ class Cron(metaclass=PoolMeta):
|
|||||||
cls.method.selection.append(
|
cls.method.selection.append(
|
||||||
('automation.cron|update_shipment', "Update Shipment from freight booking info"))
|
('automation.cron|update_shipment', "Update Shipment from freight booking info"))
|
||||||
|
|
||||||
class PriceCron(ModelSQL, ModelView):
|
class AutomationCron(ModelSQL, ModelView):
|
||||||
"Price Cron"
|
"Automation Cron"
|
||||||
__name__ = 'automation.cron'
|
__name__ = 'automation.cron'
|
||||||
|
|
||||||
frequency = fields.Selection([
|
frequency = fields.Selection([
|
||||||
@@ -51,7 +51,7 @@ class PriceCron(ModelSQL, ModelView):
|
|||||||
@classmethod
|
@classmethod
|
||||||
@ModelView.button
|
@ModelView.button
|
||||||
def run(cls, crons):
|
def run(cls, crons):
|
||||||
cls.update_forex(crons)
|
cls.update_shipment(crons)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def update_shipment(cls):
|
def update_shipment(cls):
|
||||||
|
|||||||
Reference in New Issue
Block a user