[IMP] makes target invisible
This commit is contained in:
parent
bd44c19a14
commit
31c002e2af
@ -37,7 +37,7 @@ class ContractWizard(models.TransientModel):
|
|||||||
)
|
)
|
||||||
|
|
||||||
@api.onchange("document_template")
|
@api.onchange("document_template")
|
||||||
def _onchange_target(self):
|
def _onchange_document_template(self):
|
||||||
"""Creates transient fields for generate contract template
|
"""Creates transient fields for generate contract template
|
||||||
Looks as a tree view of *_contract_field_transient model in xml
|
Looks as a tree view of *_contract_field_transient model in xml
|
||||||
"""
|
"""
|
||||||
|
@ -11,11 +11,16 @@
|
|||||||
<group string="Template">
|
<group string="Template">
|
||||||
<field name="document_template"></field>
|
<field name="document_template"></field>
|
||||||
</group>
|
</group>
|
||||||
<group name="requisites" string="Requisites">
|
|
||||||
|
<group invisible="1">
|
||||||
|
<!-- Need for generate a document -->
|
||||||
<field name="target"/>
|
<field name="target"/>
|
||||||
<field name="partner_id" string="Partner" readonly="1"/>
|
<field name="partner_id"/>
|
||||||
<field name="company_id" string="Seller" readonly="1"/>
|
<field name="company_id"/>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
|
<button string="Create a document" type="object" name="get_docx_contract" />
|
||||||
|
|
||||||
<group string="Contract values" colspan="4">
|
<group string="Contract values" colspan="4">
|
||||||
<field name="transient_field_ids">
|
<field name="transient_field_ids">
|
||||||
<tree editable="1" create="0" delete="0">
|
<tree editable="1" create="0" delete="0">
|
||||||
@ -27,8 +32,6 @@
|
|||||||
</field>
|
</field>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<button string="Create a document" type="object" name="get_docx_contract" />
|
|
||||||
|
|
||||||
<footer/>
|
<footer/>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
@ -45,9 +48,16 @@
|
|||||||
<group string="Template">
|
<group string="Template">
|
||||||
<field name="document_template"></field>
|
<field name="document_template"></field>
|
||||||
</group>
|
</group>
|
||||||
<group name="info" string="Info">
|
|
||||||
|
<group invisible="1">
|
||||||
|
<!-- Need for generate a document -->
|
||||||
<field name="target"/>
|
<field name="target"/>
|
||||||
|
<field name="partner_id"/>
|
||||||
|
<field name="company_id"/>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
|
<button string="Create a document" type="object" name="get_docx_contract" />
|
||||||
|
|
||||||
<group string="Annex values" colspan="4">
|
<group string="Annex values" colspan="4">
|
||||||
<field name="transient_field_ids">
|
<field name="transient_field_ids">
|
||||||
<tree editable="1" create="0" delete="0">
|
<tree editable="1" create="0" delete="0">
|
||||||
@ -59,8 +69,6 @@
|
|||||||
</field>
|
</field>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<button string="Create a document" type="object" name="get_docx_contract" />
|
|
||||||
|
|
||||||
<footer/>
|
<footer/>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user