Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
310 Lượt xem

Hi,

When creating a journal entry in Odoo 18, I can’t see more than 40 lines at once. Is there a way to increase the number of visible lines in the entry form?

Thanks!

Ảnh đại diện
Huỷ bỏ

Sergio, jr related to ?

Câu trả lời hay nhất

Hi,

 You can inherit account.view_move_form and set limit on list tag

<list editable="bottom" string="Journal Items" decoration-muted="display_type in ('line_section', 'line_note')" default_order="sequence, id" limit="your_limit">

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,


1- If the lines contains more than 40 lines, it will show as the next page. To load full entries just click on the '1-40' area .


2- Edit the number as '1-112/112' and like that.

Or trying to change the tree view limit in the code.


Try to inherit the invoice line view and change the attribute 'limit'.

Eg :<list string="Sales Order Lines" editable="bottom" decoration-info="(not display_type and invoice_status == 'to invoice')"  limit="100">


Hope it helps.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

You can activate developer mode and go to Settings > Technical > Actions - Window Actions ans select the corresponding window of the list view.

In the form view under the 'General Settings' tab, in the section 'Filters' you can find the field 'Limit'. Edit this field and change the value from 80 to the required number.

Or you can define the value of the field definition of limiting while or overriding the window action in XML as:


<record id="account.action_move_journal_line" model="ir.actions.act_window">
<field name="limit">100</field>
</record>


Ảnh đại diện
Huỷ bỏ