Skip to content

Conversation

rjaraspearhead
Copy link

No description provided.

@rjaraspearhead rjaraspearhead force-pushed the 18.0-mig-account_receipt_journal branch from 5f91d01 to add575a Compare July 11, 2025 04:36
@rjaraspearhead rjaraspearhead changed the title 18.0 mig account receipt journal [18.0][MIG] account_receipt_journal Jul 11, 2025
@rjaraspearhead rjaraspearhead mentioned this pull request Jul 11, 2025
34 tasks
@rjaraspearhead
Copy link
Author

Hi @Shide, @SirTakobi
could you help with the review of this module?

@eLBati , if applicable, could you check the functionality in the localization?

Copy link

@Shide Shide left a comment

Choose a reason for hiding this comment

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

When you create a receipt, default journal is not set to a receipt journal (happens on sale receipt and purchase receipt).
A receipt journal must be set if is any exclusive to receipts.

@rjaraspearhead
Copy link
Author

When you create a receipt, default journal is not set to a receipt journal (happens on sale receipt and purchase receipt). A receipt journal must be set if is any exclusive to receipts.

The receipt journals are being created by default in the data files included in the module.
Let us know if you think additional configuration is needed to properly set the default journal on receipt creation.

@rjaraspearhead rjaraspearhead force-pushed the 18.0-mig-account_receipt_journal branch from add575a to fadc6ee Compare July 12, 2025 16:46
@rjaraspearhead
Copy link
Author

Test fix: #2056

@Shide
Copy link

Shide commented Jul 15, 2025

When you create a receipt, default journal is not set to a receipt journal (happens on sale receipt and purchase receipt). A receipt journal must be set if is any exclusive to receipts.

The receipt journals are being created by default in the data files included in the module. Let us know if you think additional configuration is needed to properly set the default journal on receipt creation.

A receipt Journal must be set when creating a receipt like in v16.
It's not happening in v18 (don't know the reason, but it's not happening)

@rjaraspearhead rjaraspearhead force-pushed the 18.0-mig-account_receipt_journal branch from fadc6ee to f752c92 Compare July 23, 2025 23:16
@rjaraspearhead
Copy link
Author

When you create a receipt, default journal is not set to a receipt journal (happens on sale receipt and purchase receipt). A receipt journal must be set if is any exclusive to receipts.

The receipt journals are being created by default in the data files included in the module. Let us know if you think additional configuration is needed to properly set the default journal on receipt creation.

A receipt Journal must be set when creating a receipt like in v16. It's not happening in v18 (don't know the reason, but it's not happening)

I fixed the issue so that a receipt journal is selected by default when creating a receipt.

@rjaraspearhead rjaraspearhead force-pushed the 18.0-mig-account_receipt_journal branch 3 times, most recently from 5a6a855 to 857ea0e Compare July 28, 2025 20:11
@EmilioPascual
Copy link

MT-11039 @moduon

Copy link

@Gelojr Gelojr left a comment

Choose a reason for hiding this comment

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

Review result: NOT OK. @rjaraspearhead a revision is required because creating receipts from journal views is inconsistent: in Sales, using “New” inside the journal creates an out_invoice instead of an out_receipt, and in Purchases, creating from Kanban or inside the journal produces a vendor bill (in_invoice) and/or error.

  • Test 1: OK — Sale/Purchase Receipt Journals exist with receipts=True and higher sequence than other journals of the same type.
  • Test 2: NOK — From Kanban “New” in Sale Receipts Journal creates an out_receipt (OK), but using “New” inside the journal creates a customer invoice (out_invoice) instead of a receipt.
image image
  • Test 3: NOK — Creating a purchase receipt from Kanban or inside the journal/list yields a vendor bill (in_invoice) and/or error; expected in_receipt.
image image image image
  • Test 4: OK — In a customer invoice (out_invoice), receipt-only journals are not listed in the Journal selector.
  • Test 5: OK — In a customer receipt (out_receipt), only receipt-only journals are listed in the Journal selector.
  • Test 6: OK — Journal selector respects move type in general: excludes receipt-only journals for invoices and restricts to them for receipts.

@rjaraspearhead rjaraspearhead force-pushed the 18.0-mig-account_receipt_journal branch 2 times, most recently from b1b351c to f6cfd6a Compare August 29, 2025 16:03
@rjaraspearhead
Copy link
Author

rjaraspearhead commented Aug 29, 2025

Review result: NOT OK. @rjaraspearhead a revision is required because creating receipts from journal views is inconsistent: in Sales, using “New” inside the journal creates an out_invoice instead of an out_receipt, and in Purchases, creating from Kanban or inside the journal produces a vendor bill (in_invoice) and/or error.

  • Test 1: OK — Sale/Purchase Receipt Journals exist with receipts=True and higher sequence than other journals of the same type.
  • Test 2: NOK — From Kanban “New” in Sale Receipts Journal creates an out_receipt (OK), but using “New” inside the journal creates a customer invoice (out_invoice) instead of a receipt.

image image

  • Test 3: NOK — Creating a purchase receipt from Kanban or inside the journal/list yields a vendor bill (in_invoice) and/or error; expected in_receipt.

image image image image

  • Test 4: OK — In a customer invoice (out_invoice), receipt-only journals are not listed in the Journal selector.
  • Test 5: OK — In a customer receipt (out_receipt), only receipt-only journals are listed in the Journal selector.
  • Test 6: OK — Journal selector respects move type in general: excludes receipt-only journals for invoices and restricts to them for receipts.

@Gelojr
I added the open_action method when clicking on the Journal name.

Could you please review it?

@rjaraspearhead rjaraspearhead force-pushed the 18.0-mig-account_receipt_journal branch from f6cfd6a to 23688d4 Compare August 29, 2025 16:26
Copy link

@Gelojr Gelojr left a comment

Choose a reason for hiding this comment

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

Review result: NOT OK. Limiting scope to Tests 2 and 3. Test 3 fails

  • Test 2: OK — Creating a sales receipt works both from the Sale Receipts Journal Kanban “New” and from the Journal List view; the flow that was previously NOK (creating from inside the journal/list) now behaves as expected.
  • Test 3: NOT OK — In Purchases, the “Upload” and “Drag & drop” flows fails
image

@rjaraspearhead rjaraspearhead force-pushed the 18.0-mig-account_receipt_journal branch from 23688d4 to b4f668a Compare September 1, 2025 21:13
@rjaraspearhead
Copy link
Author

Review result: NOT OK. Limiting scope to Tests 2 and 3. Test 3 fails

  • Test 2: OK — Creating a sales receipt works both from the Sale Receipts Journal Kanban “New” and from the Journal List view; the flow that was previously NOK (creating from inside the journal/list) now behaves as expected.
  • Test 3: NOT OK — In Purchases, the “Upload” and “Drag & drop” flows fails
image

Could you review the "Create a bill manually" button?
Regarding Upload and Drag & Drop, I have prepared a roadmap.

Perhaps you have some suggestions, or could you help me with this part?

@Gelojr
Copy link

Gelojr commented Sep 2, 2025

Review result: NOT OK. Limiting scope to Tests 2 and 3. Test 3 fails

  • Test 2: OK — Creating a sales receipt works both from the Sale Receipts Journal Kanban “New” and from the Journal List view; the flow that was previously NOK (creating from inside the journal/list) now behaves as expected.
  • Test 3: NOT OK — In Purchases, the “Upload” and “Drag & drop” flows fails
image

Could you review the "Create a bill manually" button? Regarding Upload and Drag & Drop, I have prepared a roadmap.

Perhaps you have some suggestions, or could you help me with this part?

The button "Create a bill manually" works properly. The other two options are the ones that don't work.
image

Perhaps you have some suggestions, or could you help me with this part?

Sorry, I'm not technician. I'm functional consultor. I don't know how to develope

@rjaraspearhead
Copy link
Author

Review result: NOT OK. Limiting scope to Tests 2 and 3. Test 3 fails

  • Test 2: OK — Creating a sales receipt works both from the Sale Receipts Journal Kanban “New” and from the Journal List view; the flow that was previously NOK (creating from inside the journal/list) now behaves as expected.
  • Test 3: NOT OK — In Purchases, the “Upload” and “Drag & drop” flows fails
image

Could you review the "Create a bill manually" button? Regarding Upload and Drag & Drop, I have prepared a roadmap.
Perhaps you have some suggestions, or could you help me with this part?

The button "Create a bill manually" works properly. The other two options are the ones that don't work. image

Perhaps you have some suggestions, or could you help me with this part?

Sorry, I'm not technician. I'm functional consultor. I don't know how to develope

@@ -0,0 +1,11 @@
# Dashboard Kanban View – Pending Items Roadmap
Copy link
Author

@rjaraspearhead rjaraspearhead Sep 3, 2025

Choose a reason for hiding this comment

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

#2054 (comment)
@Gelojr
I’m leaving test 3 in the roadmap for a future implementation.

Copy link

Choose a reason for hiding this comment

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

Okay. Then I'll approve it.

Copy link

@Gelojr Gelojr left a comment

Choose a reason for hiding this comment

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

Congratulations on the work @rjaraspearhead. PR approved; current scope is OK, with Test 3 not correct and added to the roadmap for a future implementation.
The following tests were executed:
Test 1: OK — Receipt journals exist (receipts=True) with higher sequence than other journals of the same type.
Test 2: OK — Sales receipt creation works from both the Sale Receipts Journal Kanban “New” and the Journal List view; the flow that was previously NOK from inside the journal/list now behaves as expected.
Test 3: NOT OK — In Purchases, the “Upload” and “Drag & drop” flows do not create an in_receipt (they create a vendor bill or fail); working paths are Kanban “New” and List “New”; added to the roadmap.
Test 4: OK — In a customer invoice (out_invoice), receipt-only journals are not listed in the Journal selector.
Test 5: OK — In a customer receipt (out_receipt), only receipt-only journals are listed in the Journal selector.
Test 6: OK — Journal selector respects the move type overall: excludes receipt-only journals for invoices and restricts to them for receipts.

Copy link

@Shide Shide left a comment

Choose a reason for hiding this comment

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

Code review

@rafaelbn
Copy link
Member

/ocabot migration account_receipt_journal

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Sep 12, 2025
@rafaelbn
Copy link
Member

/ocabot rebase

@OCA-git-bot
Copy link
Contributor

Congratulations, PR rebased to 18.0.

@OCA-git-bot OCA-git-bot force-pushed the 18.0-mig-account_receipt_journal branch from b4f668a to a305275 Compare September 12, 2025 17:41
@rafaelbn
Copy link
Member

Thank you for this migration @rjaraspearhead 😄 ❤️

@loida-vm and @u0f from @moduon

Next week we should finish this PR 💪🏼 💘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants