Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][ADD] sale_unreconciled #1283

Closed
wants to merge 14 commits into from

Conversation

AaronHForgeFlow
Copy link
Contributor

This module adds a new fields "Unreconciled" on Sales Orders, that allows
to find SO's with unreconciled journal items related.

This module allows to reconcile those SO in a single click. In accounting
settings users will be able to set up a specific account for write-off.

cc @ForgeFlow

counter_part["debit"] = write_off_vals["credit"]
counter_part["credit"] = write_off_vals["debit"]
counter_part["amount_currency"] = -write_off_vals["amount_currency"]
counter_part["account_id"] = (counterpart_account.id,)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could this throw up a singleton problem?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it could, I am adding a warning message just in case

everything is reconciled or that the related accounts do not
allow reconciliation""",
)
is_delivered = fields.Boolean(search="_search_is_delivered")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this feature is adequate in this module, because I would understand that it has more to do with the stock than with the reconciliation of the sales order.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thing is, this field was part of a previous Odoo version and it was used by this module. But I agree it should be out of this module.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The field is removed now.

}

def action_done(self):
if self.unreconciled:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be refactored to iterate over self, as in the original implementation there is no self.ensure_one ()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point! done :)

help="Write-off account to reconcile Unreconciled Sale Orders",
)

sale_reconcile_journal_id = fields.Many2one("account.journal")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A string should be added in the definition, since the field is visible for the configuration

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I don't add a string, it shows as "Sale Reconcile Journal". It think it is correct but I don't mind to put another string if you suggest a different thing.

<filter
name="finance_review"
string="To Review By Finance"
domain="[('unreconciled','=', True), ('invoice_status', '=', 'invoiced'), ('is_delivered', '=', True)]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds like a more specific customization

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I think this filter would be the most useful utility in this module, as long as the "Unreconciled " filter will show sales that are unreconciled and they are correct. In any case I am removing this because the field is_delivered is removed as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the filter, it is a custom thing that is not necessary to be in the module

@AaronHForgeFlow AaronHForgeFlow force-pushed the 14.0-sale_unreconciled branch 2 times, most recently from 2971dcf to 51fe015 Compare December 17, 2021 08:31
@AaronHForgeFlow AaronHForgeFlow force-pushed the 14.0-sale_unreconciled branch 2 times, most recently from 9cc3d49 to 85dcf47 Compare May 12, 2022 11:21
@AaronHForgeFlow AaronHForgeFlow force-pushed the 14.0-sale_unreconciled branch 2 times, most recently from 794c775 to b603ebc Compare November 21, 2022 16:18
@AaronHForgeFlow AaronHForgeFlow force-pushed the 14.0-sale_unreconciled branch 7 times, most recently from f11fef3 to dd5db13 Compare December 28, 2022 19:30
@bosd
Copy link
Contributor

bosd commented Sep 30, 2023

Could you recreate a runboat?

@AaronHForgeFlow
Copy link
Contributor Author

Just rebased to see if runboat is recreated

Copy link
Contributor

@bosd bosd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Minor nitpicking on grammar.

sale_unreconciled/views/res_config_settings_view.xml Outdated Show resolved Hide resolved
sale_unreconciled/readme/DESCRIPTION.rst Outdated Show resolved Hide resolved
sale_unreconciled/readme/USAGE.rst Outdated Show resolved Hide resolved
sale_unreconciled/readme/USAGE.rst Outdated Show resolved Hide resolved
sale_unreconciled/tests/test_sale_unreconciled.py Outdated Show resolved Hide resolved
sale_unreconciled/tests/test_sale_unreconciled.py Outdated Show resolved Hide resolved
sale_unreconciled/tests/test_sale_unreconciled.py Outdated Show resolved Hide resolved
sale_unreconciled/tests/test_sale_unreconciled.py Outdated Show resolved Hide resolved
sale_unreconciled/tests/test_sale_unreconciled.py Outdated Show resolved Hide resolved
sale_unreconciled/tests/test_sale_unreconciled.py Outdated Show resolved Hide resolved
@AaronHForgeFlow AaronHForgeFlow force-pushed the 14.0-sale_unreconciled branch 3 times, most recently from 3a62797 to d39cc8e Compare October 10, 2023 10:34
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Apr 21, 2024
@bosd
Copy link
Contributor

bosd commented Apr 25, 2024

@alexis-via you might find this pr interesting.

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Apr 28, 2024
Copy link

github-actions bot commented Sep 1, 2024

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Sep 1, 2024
@github-actions github-actions bot closed this Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants