OCA / contract

GNU Affero General Public License v3.0
170 stars 522 forks source link

[16.0] contract: Invoices after contract termination #1086

Open ygol opened 4 months ago

ygol commented 4 months ago

Module : contract

Describe the bug

Invoices are generated for contracts that where terminated

To Reproduce

Affected versions: 16.0

Anyone else experienced this problem? thanks

pedrobaeza commented 4 months ago

Please reproduce it on runboat and put specific data. I haven't found this problem yet.

ygol commented 4 months ago

Here's already an exemple. image

image

pedrobaeza commented 4 months ago

Sorry, but we need specific data put on a runboat to reproduce the problem. If not, this is not traceable and impossible to recreate it.

pedrobaeza commented 4 months ago

Anyway, having a blue line means that the line is invoiceable.

ygol commented 4 months ago

http://oca-contract-16-0-6f486cf5f9f6.runboat.odoo-community.org/web#id=1&cids=1&menu_id=130&action=303&model=contract.contract&view_type=form

so here on runbot the line seems also blue image

ygol commented 4 months ago

Would anyone confirm there's a bug ? I tried to understand the code, but it is really not easy to follow: stop, _prepare_value_for_stop, is_stop_allowed, is_cancelled, cancel. get_allowed ...