采购申请审批完成后状态变更
This commit is contained in:
@@ -5,12 +5,12 @@ import logging
|
|||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class PurchaseRequestTierValidation(models.Model):
|
class PurchaseRequest(models.Model):
|
||||||
_name = 'purchase.request.tier.validation'
|
_inherit = 'purchase.request'
|
||||||
|
|
||||||
|
|
||||||
def _validate_tier(self, tiers=False):
|
def _validate_tier(self, tiers=False):
|
||||||
res = super(PurchaseRequestTierValidation, self)._validate_tier(tiers)
|
res = super(PurchaseRequest, self)._validate_tier(tiers)
|
||||||
|
|
||||||
# 检查是否所有审批都已通过
|
# 检查是否所有审批都已通过
|
||||||
all_approved = all(
|
all_approved = all(
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
{
|
{
|
||||||
'name': "机企猫 采购审批流程",
|
'name': "机企猫 采购申请审批流程",
|
||||||
|
|
||||||
'summary': """
|
'summary': """
|
||||||
Short (1 phrase/line) summary of the module's purpose, used as
|
采购申请审批流程""",
|
||||||
subtitle on modules listing or apps.openerp.com""",
|
|
||||||
|
|
||||||
'description': """
|
'description': """
|
||||||
Long description of module's purpose
|
采购申请审批流程""",
|
||||||
""",
|
|
||||||
|
|
||||||
'author': "My Company",
|
'author': "My Company",
|
||||||
'website': "https://www.yourcompany.com",
|
'website': "https://www.yourcompany.com",
|
||||||
|
|||||||
Reference in New Issue
Block a user