未对挂账报表

This commit is contained in:
李鹏宇
2026-05-18 15:46:05 +08:00
parent 87a490a209
commit 9eaf23ff3f
5 changed files with 18 additions and 1 deletions
+2 -1
View File
@@ -21,7 +21,8 @@
'application': True,
'assets': {
'web.assets_backend': [
'yuthon_purchase/static/xml/misc.xml'
'yuthon_purchase/static/xml/misc.xml',
'yuthon_purchase/static/src/scss/purchase_order.scss'
],
}
@@ -0,0 +1,5 @@
.o_m2o_mutil_line {
white-space: normal !important;
word-break: break-all !important;
word-wrap: break-word !important;
}
@@ -186,6 +186,7 @@
</xpath>
<xpath expr="//field[@name='order_line']//tree//field[@name='product_id']" position="attributes">
<attribute name="domain">purchase_type == 'fixed_asset' and [('product_tag_ids.name', 'in', ['固定资产'])] or purchase_type == 'sporadic' and [('product_tag_ids.name', 'not in', ['固定资产'])] or []</attribute>
<attribute name="class">o_m2o_mutil_line</attribute>
</xpath>
<xpath expr="//field[@name='order_line']//tree//field[@name='product_id']" position="after">
<field name="brand_spec" string="品牌/规格" optional="show"/>
@@ -40,6 +40,11 @@ class SimpleBankReport extends Component {
theme: agGrid.themeMaterial,
columnDefs: columns,
rowData: [],
rowClassRules: {
'ag-row-registered': function(params) {
return params.data && params.data.状态 === '挂账';
}
},
sideBar: this.config.sideBar ? {
toolPanels: [
{
@@ -81,3 +81,8 @@
justify-content: flex-start;
text-align: left;
}
/* 挂账状态行金黄色背景 */
.ag-row-registered {
background-color: #fffbeb !important;
}