-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[18.0][ADD]sale_order_client_order_ref_mandatory #3813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 18.0
Are you sure you want to change the base?
[18.0][ADD]sale_order_client_order_ref_mandatory #3813
Conversation
6f4161c to
a9a66fc
Compare
|
@DantePereyra Could you check tests ? |
@rousseldenis, tests are failing because when the However, a new error has now appeared in the test: 2025-07-15 08:11:27,282 333 ERROR odoo odoo.addons.sale_require_po_doc.tests.test_sale_require_po_doc: FAIL: TestSaleRequirePODoc.test_require_customer_need_po
Traceback (most recent call last):
File "/__w/sale-workflow/sale-workflow/sale_require_po_doc/tests/test_sale_require_po_doc.py", line 39, in test_require_customer_need_po
with self.assertRaises(ValidationError, msg=messsage):
File "/usr/lib/python3.10/contextlib.py", line 142, in __exit__
next(self.gen)
File "/opt/odoo/odoo/tests/common.py", line 484, in _assertRaises
with ExitStack() as inner:
File "/usr/lib/python3.10/contextlib.py", line 576, in __exit__
raise exc_details[1]
File "/usr/lib/python3.10/contextlib.py", line 561, in __exit__
if cb(*exc_details):
AssertionError: ValidationError not raised : You can not confirm sale order without Customer reference.The validation is not triggered because the field is already filled in. I'm a bit stuck at this point—if you have any suggestions on how to move forward, it would be helpful. Thanks! |
| default=lambda self: self._default_test_dummy_name(), | ||
| ) | ||
|
|
||
| def _default_test_dummy_name(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DantePereyra Making code depending on test behaviour is not recommended
f5cd1cb to
bc581e6
Compare
For a Sale Order, makes required client_order_ref field and reposition it,for both form view and Sale reports. Also makes this field searchable and add an optional column on both quotation and sale orders lists.
bc581e6 to
903f7e0
Compare
This module, makes




client_order_reffield required and reposition it,for both form view and Sale reports.Also makes this field searchable and add an optional column on both quotation and sale orders lists.SALE ORDER BEFORE
SALE ORDER AFTER
SALE REPORT TEMPLATE BEFORE
SALE REPORT TEMPLATE AFTER