Odoo Help


Show journal entries in another view.

Arjun Khode
on 3/27/15, 2:00 AM 708 views

I have created a button like so:

<button name="%(register_payment_button_action)d" context="{'default_amount': amount,'default_partner_id': investor_id,'default_reference':investment_id}" string="Receive Investment" col="1" type="action"/>

It opens the 'vendor receipt form' and lets you register a payment. This creates a journal entry for the payment.

My problem is that I want to show the journal entries for that particular object instance in another view driven by a different model. How can I do that ?

<record id="record_form_view" model="ir.ui.view">

<field name="name">record.form.view</field>

<field name="view_type">form</field>

<field name="model">record</field>

<field name="arch" type="xml">

. . .

<field name="account_ids" colspan="4">

PY: in class 'record'


in class account_move:

class account_move(osv.Model):






When you press validate button in 'vendor receipt form', The entry gets logged in journal entries. Along with that, I want the entry to get logged in my own one2many field. So that 'field' will be a table that displays all payment transactions made through pressing my button. Likewise, different instances of object should contain their own payment transactions as a list.


Anil R. Kesariya

--Anil R. Kesariya--
| 6 5 8
Rajkot, India
--Anil R. Kesariya--

Odoo Techno Functional Expert

* Engaged with odoo since May - 2012.

* Customise existing module or develop new module base on customer requirement.

* Played key developer role in many past and running projects.

* Expert in requirement gathering of business and transforming requirement into odoo platform.

* Major expertise in core modules, database, report development and theme development.

* Integration expert.

Linkedin  : https://in.linkedin.com/in/anil-kesariya-97b20a66

Anil R. Kesariya
On 3/27/15, 2:16 AM

Hello Arjun Khode,

The words you have used for different model, it means you want to filter them by accounts?

If you want to filter them by accounts then 

Here you go!

Create new action for account.move.line object and set default filter account,

So your all entries will be filter by specific account, so you don't need to create any new model for that.

If this is not your answer than explain your question more in more details,

Hope this will helps you.



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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/27/15, 2:00 AM
Seen: 708 times
Last updated: 4/1/15, 2:31 AM