[FIX] partner_*_archive_propagate: bug fixes and unit tests#8
[FIX] partner_*_archive_propagate: bug fixes and unit tests#8ntsirintanis wants to merge 6 commits into
Conversation
Currently translated at 100.0% (4 of 4 strings) Translation: partner-contact-16.0/partner-contact-16.0-partner_multi_relation_archive_propagate Translate-URL: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-partner_multi_relation_archive_propagate/nl/
|
@ntsirintanis I cannot find anywhere in Odoo (or in OCA modules present for VluchtelingenWerk) any code to propagate archiving to children via action_archive. Where did you find this? |
Yes, I rushed for that comment. So the problem (which is really minor, but it should be tackled) is that this https://github.com/OCA/OCB/blob/4e41279573a36bd53cf25bdfa11d172c7391b5ae/odoo/models.py#L5088 calls this https://github.com/OCA/OCB/blob/4e41279573a36bd53cf25bdfa11d172c7391b5ae/odoo/models.py#L5082 which ultimately messes up with our propagation logic here: but only when force_outside_ui = True. In these cases action_archive should not call toggle_active() but just write() directly. All these concern archiving via the gear menu, and nothing else |
Currently translated at 100.0% (3 of 3 strings) Translation: partner-contact-16.0/partner-contact-16.0-partner_middlename Translate-URL: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-partner_middlename/nl/
|
@ntsirintanis OK, add explanation of Archive via action and Archive with Children button to USAGE section of README. If time, you might expand the usage with some commented screenshots as documentation. |
Currently translated at 100.0% (14 of 14 strings) Translation: partner-contact-16.0/partner-contact-16.0-partner_multi_relation_function Translate-URL: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-partner_multi_relation_function/it/
Currently translated at 100.0% (4 of 4 strings) Translation: partner-contact-16.0/partner-contact-16.0-partner_multi_relation_archive_propagate Translate-URL: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-partner_multi_relation_archive_propagate/it/
99019b3 to
0d8b128
Compare
|
@NL66278 pre-commit fails for an unrelated reason. Let's see if we can get these merged then, and cherry-pick to 18.0 |
0d8b128 to
ada1d8b
Compare
No description provided.