28 lines
702 B
Python
28 lines
702 B
Python
# -*- coding: utf-8 -*-
|
|
import json
|
|
import requests
|
|
from odoo import models, fields, api
|
|
|
|
from odoo.exceptions import UserError
|
|
import logging
|
|
from odoo.tools import date_utils
|
|
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
|
|
class StockBackorderConfirmation(models.TransientModel):
|
|
_inherit = 'stock.backorder.confirmation'
|
|
|
|
# 继承创建欠单
|
|
def process(self):
|
|
info = super(StockBackorderConfirmation, self).process()
|
|
_logger.info("创建欠单")
|
|
# 下发创建欠单到bfm
|
|
|
|
return info
|
|
|
|
# 继承取消创建欠单
|
|
def process_cancel_backorder(self):
|
|
info = super(StockBackorderConfirmation, self).process_cancel_backorder()
|
|
return info
|