1.采购订单Tree列表新增审核状态
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import logging
|
||||
from odoo.modules import get_resource_path
|
||||
from odoo import fields, models, api
|
||||
from quatotion import readSql, feature_recognize, auto_quatotion
|
||||
# from quatotion import readSql, feature_recognize, auto_quatotion
|
||||
|
||||
__author__ = 'jinling.yang'
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -4,9 +4,9 @@ import hashlib
|
||||
import os
|
||||
import json
|
||||
from datetime import datetime
|
||||
import requests
|
||||
from OCC.Extend.DataExchange import read_step_file
|
||||
from OCC.Extend.DataExchange import write_stl_file
|
||||
# import requests
|
||||
# from OCC.Extend.DataExchange import read_step_file
|
||||
# from OCC.Extend.DataExchange import write_stl_file
|
||||
from odoo import models, fields, api
|
||||
from odoo.modules import get_resource_path
|
||||
from odoo.exceptions import ValidationError, UserError
|
||||
|
||||
@@ -103,7 +103,8 @@ class RePurchaseOrder(models.Model):
|
||||
|
||||
def button_confirm(self):
|
||||
self.check_status = 'pending'
|
||||
return super().button_confirm()
|
||||
res = super().button_confirm()
|
||||
return res
|
||||
|
||||
|
||||
class ResPartnerToSale(models.Model):
|
||||
|
||||
@@ -126,12 +126,12 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_purchase_order_kpis_tree_inherit_sf" model="ir.ui.view">
|
||||
<record id="purchase_order_view_tree_inherit_sf" model="ir.ui.view">
|
||||
<field name="name">purchase.order.tree.inherit.sf</field>
|
||||
<field name="model">purchase.order</field>
|
||||
<field name="inherit_id" ref="purchase.purchase_order_kpis_tree"/>
|
||||
<field name="inherit_id" ref="purchase.purchase_order_view_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="state" position="after">
|
||||
<field name="invoice_status" position="after">
|
||||
<field name="check_status" widget="badge"
|
||||
decoration-success="check_status == 'approved'"
|
||||
decoration-warning="check_status == 'pending'"
|
||||
|
||||
Reference in New Issue
Block a user