Skip to Content
Menu
This question has been flagged
3 Replies
2121 Views

I have a problem with the filter by date, since I only select the first date that I register in an id. For example: If the "Bank" account has movement on 05/02/2019, 05/05/2019 and 06/15/2019, the filter only groups it in May and not in May and June as it should leave. For more dates to appear, I must create another account id.

In the link you can see two accounts that have the first movement in January but also contains dates that are in December but do not appear as the account "Payable" since it was created after trying to prove if the error was on the date one put the first move. Then in December, the "Bank" and "Cash" account should also be available and not only "Payable".

I attach the view link and the code. \https://ibb.co/q7rJhLq

    **<record id="proyecto_rc.account_view_search" model="ir.ui.view">
    <field name="name">proyecto_rc.account.search </field>
    <field name="model">proyecto_rc.account</field>
    <field name="arch" type="xml">
    <search string="String...">
        <field name="date"/>
        <group expand="1" string="Group By">
                <filter string="Month" name="month" help="help"  context="{'group_by':'fecha:month'}"/>
        </group>
    </search>
    </field>
    </record>**

<!-- actions opening views on models -->
<record model="ir.actions.act_window" id="proyecto_rc.account_action_window">
<field name="name">Registro de cuenta</field>    
<field name="res_model">proyecto_rc.account</field>
<field name="view_mode">tree,form</field>
</record>

<!-- server action to the one above -->

<record model="ir.actions.server" id="proyecto_rc.account_action_server">
<field name="name"> cuenta server</field>
<field name="model_id" ref="model_proyecto_rc_account"/>
<field name="state">code</field>
<field name="code">
    action = {
    "type": "ir.actions.act_window",
    "view_mode": "tree,form",
    "res_model": self._name,
    }
</field>
</record>


Avatar
Discard

Please use meaningful titles.

Author

Oh sorry friend, there I corrected it

Author Best Answer

I'm still trying to solve the problem but I can't find a solution, could you please help me

Avatar
Discard
Related Posts Replies Views Activity
3
Apr 24
1024
0
May 24
46
1
Apr 24
1830
4
Sep 23
3085
2
Sep 23
5593