源单据跳转

This commit is contained in:
李鹏宇
2026-02-26 16:54:03 +08:00
parent f6de1535f7
commit 2b56b51cf6
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
'category': 'zhou',
'version': '0.1',
'license': 'LGPL-3',
'depends': ['base', 'stock', 'documents', 'maintenance', 'funenc_json_widget'],
'depends': ['base', 'stock', 'purchase_stock', 'documents', 'maintenance', 'funenc_json_widget'],
'data': [
'security/ir.model.access.csv',
'views/menu.xml',
@@ -8,8 +8,12 @@
<xpath expr="//field[@name='picking_type_id']" position="after">
<field name="department_id" options="{'no_create': True}"/>
</xpath>
<xpath expr="//field[@name='origin']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='origin']" position="after">
<field name="receipt_status" invisible="1"/>
<field name="purchase_id" string="源单据" readonly="1" options="{'no_create': True, 'no_open': False}"/>
<field name="user_id" string="采购人员"/>
<field name="available_product_ids" invisible="1"/>
<field name="state" invisible="1"/>
@@ -42,6 +46,9 @@
<attribute name="string">证明</attribute>
<attribute name="invisible">receipt_status != 'certification'</attribute>
</xpath>
<xpath expr="//field[@name='location_dest_id'][@groups='stock.group_stock_multi_locations']" position="attributes">
<attribute name="invisible">picking_type_code == 'outgoing' or receipt_status == 'acceptance'</attribute>
</xpath>
<xpath expr="//field[@name='picking_properties']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>