|
|
@ -5,10 +5,16 @@ |
|
|
|
<field name="model">attachment.queue</field> |
|
|
|
<field name="inherit_id" ref="attachment_queue.view_attachment_queue_form" /> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<field name="url" position="after"> |
|
|
|
<field name="task_id" attrs="{'required': [('file_type', '=', 'export')]}"/> |
|
|
|
<!-- Add Related Task and Backend --> |
|
|
|
<xpath expr="//field[@name='url']" position="after"> |
|
|
|
<field name="method_type" invisible="1"/> |
|
|
|
<field |
|
|
|
name="task_id" |
|
|
|
domain="[('method_type', '!=', 'import')]" |
|
|
|
attrs="{'required': [('file_type', '=', 'export')], 'readonly': [('method_type', '=', 'import')]}" |
|
|
|
/> |
|
|
|
<field name="storage_backend_id"/> |
|
|
|
</field> |
|
|
|
</xpath> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|