Vauxoo / odoo

Fork of Odoo (formerly OpenERP). [This project is not publically mantained just born for internal usage with some little patches] go to official repository on github.com/odoo/odoo
https://www.odoo.com
Other
9 stars 9 forks source link

[IMP] account: set to draft CABA and Exchange Differential entries #569

Closed andreagidaltig closed 3 months ago

andreagidaltig commented 11 months ago

Using an attribute in the context to force the change of the state of the accounting entries for CABA and Exchange Differential to "draft." This is to allow the deletion of these entries to facilitate the accounting audit process. As the number of lines in the accounting entries generated by these transactions can grow significantly, this occurs each time a payment that has generated CABA or Exchange Differential entries is canceled or unreconciled, reverse lines are generated for these entries. Setting the posted journal entries to "draft" when canceling by using the button_cancel method was introduced in [1], this not allow to delete the CABA or Exchange Differential entries generated in the unreconcile and reconcile process.

[1] https://github.com/odoo/odoo/commit/1de5c98 Related: https://github.com/odoo/odoo/pull/96134 Odoo PR: https://github.com/odoo/odoo/pull/139145

Journal entries generated after doing the next:

  1. Confirm a vendor bill
  2. Register a payment
  3. Unreconcile
  4. Reconcile again

image

andreagidaltig commented 11 months ago

Hello @hbto could you review this please?

Regards.

maringuadarrama commented 7 months ago

Hello any news??

Regards.