Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
3675 Представления

Is there a way to increase the number of visible BOM lines on the screen from 40?

If I view a BOM from this way: Inventory Module > Master Data > Products > select my manufactured item > click on Bill of Material > select Bill of Material, the screen that comes up with all the BOM components is limited to 40 items. So if I have 47 items, I see "1-40 / 47" and I have to move to "page 2" to see the final 7. Is there a way to make all BOM lines appear on a single page without having click for the next page? Better, yet, is there a way to increase that number to maybe 80?


Аватар
Отменить
Лучший ответ

Hello @Eric,

Here, BOM Lines doesn't have any action so we can set limit in Tree view. Please check following code for reference.


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

            <field name="name">mrp.bom.inherited.form</field>

            <field name="model">mrp.bom</field>

            <field name="inherit_id" ref="mrp.mrp_bom_form_view"/>

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

            <xpath expr="//field[@name='bom_line_ids']/tree" position="attributes">

            <attribute name="limit">500</attribute>

            </xpath>

            </field>

        </record>

SCreenshot-1 -

Screenshot-2


Screenshot-3


Regards,




Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

Аватар
Отменить
Лучший ответ

There is a field limit in the action definition. Here you can change the default value by specifying while writing the action. ie,

<field name="limit">100</field>

else edit action directly using the debug mode. Here is an example I set the limit for Employee Tree view




Аватар
Отменить
Автор Лучший ответ

Hilar, I went to Edit Action in debug mode from that screen. I changed the Limit from 80 to 200 and nothing changed. I must be in the wrong place, or am doing something wrong : )

Aktiv Software, where I find this code?

Аватар
Отменить

Hello @Eric Added screenshot for your better understanding

Please share the Screenshot

Автор

Here you go. I'm not sure how t embed it in the post: https://imgur.com/Qahu4D1

That error appears as soon as I hit ">" after attributes and I can't continue