Conversation
mathben
commented
Oct 15, 2025
- copying project_purchase_link and rename purchase to sale
0d27c75 to
3310ff0
Compare
4f2c2e7 to
a5c3038
Compare
2ed9dcb to
a68adfc
Compare
flotho
left a comment
There was a problem hiding this comment.
Hi,
LGTM
sucessfully tested on runboat
|
ping @carlos-lopez-tecnativa @pedrobaeza |
|
Copy from where? Did the previous authors sign the OCA CLA? You should also respect the whole commit history, and rename it from the beginning with: |
This repository : https://github.com/OCA/project/tree/18.0/project_purchase_link
I didn't check : https://github.com/OCA/project/blob/18.0/project_purchase_link/readme/CONTRIBUTORS.md
The history : https://github.com/OCA/project/commits/18.0/project_purchase_link |
|
OK, then it's not a copy, but it's a "brother" module inspired from the other. Isn't this what |
|
Hello, we formerly already had a similar module in 13.0 -> #940 |
alexey-pelykh
left a comment
There was a problem hiding this comment.
The compute methods _compute_sale_info and _compute_sale_invoice_info multiply price_subtotal * count which double-counts amounts since read_group already returns the sum -- the purchase sibling correctly just sums group["price_subtotal"]. Also, _domain_sale_invoice does not filter on move_type, so the invoice count mixes vendor bills with customer invoices. Finally, per @pedrobaeza's suggestion, CREDITS.md should mention this module is inspired by project_purchase_link.
|
@alexey-pelykh thanks for your review, I apply your suggestion. I change type of sale_line_total from integer to monetary. @pedrobaeza CREDITS.md added @leemannd is really similar with module version 13, I didn't test. Thanks |
1deb333 to
428ea18
Compare
- copying project_purchase_link and rename purchase to sale
428ea18 to
82c4445
Compare