[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#944073: tryton-proteus breaks tryton-modules-purchase-request autopkgtest: trytond.exceptions.UserError: ('UserError', ('Purchase requests are only created by the system.', ''))



Source: tryton-proteus, tryton-modules-purchase-request
Control: found -1 tryton-proteus/5.0.4-1
Control: found -1 tryton-modules-purchase-request/5.0.2-2
Severity: serious
Tags: sid bullseye
X-Debbugs-CC: debian-ci@lists.debian.org
User: debian-ci@lists.debian.org
Usertags: breaks needs-update

Dear maintainers,

With a recent upload of tryton-proteus the autopkgtest of
tryton-modules-purchase-request fails in testing when that autopkgtest
is run with the binary packages of tryton-proteus from unstable. It
passes when run with only packages from testing. In tabular form:
                                pass            fail
tryton-proteus                  from testing    5.0.4-1
tryton-modules-purchase-request from testing    5.0.2-2
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of tryton-proteus to
testing [1]. Due to the nature of this issue, I filed this bug report
against both packages. Can you please investigate the situation and
reassign the bug to the right package?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=tryton-proteus

https://ci.debian.net/data/autopkgtest/testing/amd64/t/tryton-modules-purchase-request/3324533/log.gz

/usr/lib/python3/dist-packages/trytond/modules/purchase_request/tests/scenario_purchase_request.rst
Doctest: scenario_purchase_request.rst ... FAIL

======================================================================
FAIL:
/usr/lib/python3/dist-packages/trytond/modules/purchase_request/tests/scenario_purchase_request.rst
Doctest: scenario_purchase_request.rst
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.7/doctest.py", line 2196, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for scenario_purchase_request.rst
  File
"/usr/lib/python3/dist-packages/trytond/modules/purchase_request/tests/scenario_purchase_request.rst",
line 0

----------------------------------------------------------------------
File
"/usr/lib/python3/dist-packages/trytond/modules/purchase_request/tests/scenario_purchase_request.rst",
line 228, in scenario_purchase_request.rst
Failed example:
    pr.save()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.7/doctest.py", line 1329, in __run
        compileflags, 1), test.globs)
      File "<doctest scenario_purchase_request.rst[136]>", line 1, in
<module>
        pr.save()
      File "/usr/lib/python3/dist-packages/proteus/__init__.py", line
93, in newfunc
        return self.func(owner, [instance], *args, **kwargs)
      File "/usr/lib/python3/dist-packages/proteus/__init__.py", line
816, in save
        ids = proxy.create(values, context)
      File "/usr/lib/python3/dist-packages/proteus/config.py", line 195,
in __call__
        result = rpc.result(meth(*args, **kwargs))
      File
"/usr/lib/python3/dist-packages/trytond/modules/purchase_request/purchase_request.py",
line 264, in create
        cls.raise_user_error('create_request')
      File "/usr/lib/python3/dist-packages/trytond/error.py", line 74,
in raise_user_error
        raise UserError(error)
    trytond.exceptions.UserError: ('UserError', ('Purchase requests are
only created by the system.', ''))

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: