OCA / sale-reporting

GNU Affero General Public License v3.0
47 stars 187 forks source link

[16.0] sale_order_line_position + sale_layout_category_hide_detail fix #257

Closed simahawk closed 5 months ago

simahawk commented 5 months ago

Fix sale_order_line.py:38: DeprecationWarning: Deprecated method flush(), use flush_model(), flush_recordset() or env.flush_all() instead

Collateral fix for sale_layout_category_hide_detail for odoo code change.

simahawk commented 5 months ago

@Yadier-Tecnativa as you've done the migration of sale_laytout_category_hide_detail on https://github.com/OCA/sale-reporting/pull/222 : can you please have a look at this fix? I made it blindly to be honest, by simply having a look at https://github.com/odoo/odoo/commit/4633fd284056811240180ea044daa5dcb8fd2ff9

image

CC @chienandalu @pedrobaeza

OCA-git-bot commented 5 months ago

What a great day to merge this nice PR. Let's do it! Prepared branch 16.0-ocabot-merge-pr-257-by-pedrobaeza-bump-minor, awaiting test results.

OCA-git-bot commented 5 months ago

Congratulations, your PR was merged at f56e5c1de3014fac2462f170c0279789aa3ba8c2. Thanks a lot for contributing to OCA. ❤️