Browse Source
Hardcode constraints in the `create` method instead of using normal ones.
Hardcode constraints in the `create` method instead of using normal ones.
Depending on the context where the record is created, it gets `resource` or `model_id`. The problem is that Odoo checks constrains before inverses, so constrains would fail always. Test added to ensure future versions contemplate all use cases.pull/505/head
Jairo Llopis
8 years ago
committed by
Pedro M. Baeza
4 changed files with 51 additions and 14 deletions
-
21base_export_manager/models/ir_exports.py
-
13base_export_manager/models/ir_exports_line.py
-
26base_export_manager/tests/test_ir_exports.py
-
5base_export_manager/views/ir_exports_view.xml
Write
Preview
Loading…
Cancel
Save
Reference in new issue