Skip to Content
Menu
This question has been flagged
1 Reply
1206 Views
<field name="move_id" colspan="4" nolabel="1" >
<tree string="Journal Items" create="false" attrs="{'visible':[('is_visible','=',False)]}">
<field name="date"/>
<field name="move_id" required="0" groups="account.group_account_user"/>
<field name="journal_id" options='{"no_open":True}'/>
<field name="name"/>
<field name="ref"/>
<field name="statement_id" invisible="1"/>
<field name="partner_id"/>
<field name="account_id" options='{"no_open":True}' domain="[('company_id', '=', company_id)]" groups="account.group_account_user,pragtech_loan.group_loan_manager,pragtech_loan.group_loan_user"/>
<field name="analytic_account_id" groups="account.group_account_user,pragtech_loan.group_loan_manager,pragtech_loan.group_loan_user"/>
<field name="reconciled" invisible="1"/>
<field name="full_reconcile_id"/>
<field name="debit" sum="Total Debit"/>
<field name="credit" sum="Total Credit"/>
<field name="amount_currency" readonly="True" groups="base.group_multi_currency,pragtech_loan.group_loan_manager,pragtech_loan.group_loan_user"/>
<field name="currency_id" readonly="True" invisible="1" />
<field name="date_maturity"/>

<field name="company_currency_id"/>
<field name="company_id"/>
<button style="padding: 0px; background-color: transparent; border: 0px; font-size: 20px; color: red" class="fa fa-trash-o" type="object" name="delete_from_db" confirm="Your sure for this??" title="deleted"/>
</tree>
</field>
Avatar
Discard
Author Best Answer

The below code outputs a list of records from the table account.move.line..And I tried deleting them but its imposible so I tried to hide them on a button click when the visible field is True or False but I havent managed..any assistamce can be of much help

Avatar
Discard