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>
Please use meaningful titles.
Oh sorry friend, there I corrected it