Daily updates from Odoo
Tuesday, September 16, 2014
2 changes
Resolved issues and error corrections
Module updates now keep database rules in place unless their original definition has actually changed. This prevents needless constraint drops and rebuilds, making updates safer and reducing avoidable database work.
Original PR description
When a module is updated, the sql constraints were checked against postgres `pg_get_constraintdef()` method to see if they have diverged from the one defined in python code. However this check was failing as the syntax returned by `pg_get_constraintdef()` (e.g. `CHECK ((credit * debit) = 0::numeric)`) differs from the one returned by `unify_cons_text` method (e.g. `check(debit*credit = 0)`) so the constraints were always dropped and recomputed. This adds a definition column on ir.model.constraint (storing original definition) to detect changes. This will also update the field `date_update` when the definition changes.
The online shop product page layout was adjusted so the search box uses the available page width more consistently. This helps prevent the search area from appearing too narrow, improving the shopping experience for visitors.
Original PR description
<b>Specification:</b> Bootstrap CSS class to fix this issue.
website_sale module » views » templetes.xml (id="product" template)
» Exisiting <code><div class="row">..</div></code>
» Add col-md-12 and center-block class
<b>Task:</b> https://www.odoo.com/web#id=9654&view_type=form&model=project.task&menu_id=3942&action=327
<b>Pad:</b> https://pad.odoo.com/p/r.bofwElvy1bAQy3sp