Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have a TransientModel class (credit.card.reconciliation.wz) with a field defined like this:
'voucher_payment_ids': fields.one2many('voucher.payment', 'wizard_id', 'Payments', readonly=True),
In my view file I have the following fields (among others):
<field name="period_id" domain="[('fiscalyear_id', '=', fiscal_year)]" />
<button name="action_execute_reconciled" icon="gtk-execute" type="object" string="Reconciled"/>
<button name="action_execute_not_reconciled" icon="gtk-execute" type="object" string="Not Reconciled"/>
<separator string="Payments" colspan="4"/>
<field name="voucher_payment_ids" nolabel="1">
<field name="date" string="Date"/>
<field name="amount" string="Amount" widget="currency"/>
<field name="commission" string="Comission"/>
<field name="bank_id" string="Bank"/>
<field name="date_rc" string="Date RC"/>
I wanna load data in the tree (field voucher_payment_ids) when <button name="action_execute_reconciled" ...> is clicked. I need the current form to stay open, and show data in the tree view for users to select (checkboxes) the records they want to submit later.
The records I want to load (to show in tree view field) will be retrieved using a domain, according to values of another fields in my view.
So, how to load/show data in current form, in that one2many field?
I am using OpenERP 7.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/27/14, 12:18 PM|
|Seen: 1341 times|
|Last updated: 3/16/15, 8:10 AM|