@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user