main #7
@@ -1,11 +1,23 @@
|
|||||||
from trytond.model import ModelSQL, ModelView, fields
|
import requests
|
||||||
|
from decimal import getcontext, Decimal, ROUND_HALF_UP
|
||||||
|
from datetime import datetime
|
||||||
|
from trytond.model import fields
|
||||||
|
from trytond.model import (ModelSQL, ModelView)
|
||||||
from trytond.pool import Pool, PoolMeta
|
from trytond.pool import Pool, PoolMeta
|
||||||
from trytond.transaction import Transaction
|
from trytond.transaction import Transaction
|
||||||
import logging
|
import logging
|
||||||
from sql import Table
|
from sql import Table
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
class Cron(metaclass=PoolMeta):
|
||||||
|
__name__ = 'ir.cron'
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def __setup__(cls):
|
||||||
|
super().__setup__()
|
||||||
|
cls.method.selection.append(
|
||||||
|
('automation.cron|update_shipment', "Update Shipment from freight booking info"))
|
||||||
|
|
||||||
class AutomationCron(ModelSQL, ModelView):
|
class AutomationCron(ModelSQL, ModelView):
|
||||||
"Automation Cron"
|
"Automation Cron"
|
||||||
__name__ = 'automation.cron'
|
__name__ = 'automation.cron'
|
||||||
|
|||||||
Reference in New Issue
Block a user