I think it is not possible to create production in request state manually, thus when entering a production manually there is not way to avoid filling with a number. Why would you need to refer to a draft production order by number. For me a draft production order is just that: a draft, not finished, still being worked on.
Planned date and Planned Start Date are set depending on which one is completed first. I propose to make Planned Start Date be set in a similar manner as Planned Date.
I propose the following changes:
Dimitrios Moustos (6f0a380e) at 03 Feb 22:16
Fix line length.
Dimitrios Moustos (d342a53e) at 03 Feb 21:46
Set Planned Start Date if lead time's available, start date is not ...
Dimitrios Moustos (c2fcc1b5) at 03 Feb 20:31
Set planned_start_date also if it is after planned_date.
Dimitrios Moustos (8ede4aab) at 03 Feb 20:14
Set Planned Start Date only if lead time is available and it is not...
Recurrence testing now returns the expected results without any traceback. I am still not able to generate invoices, but this is probably my lack of understanding the module or a different issue.
Since 0db956eb2505 the on_change_with for xxx2Many must return a list of instances.
Closes #12885
Closes #12905
Closes #12905
Closes #12905
Dimitrios Moustos (550f602c) at 08 Jan 10:01
Closes #12905. Set Shipment number on Wait/Receive.
... and 3 more commits
It seems to me that this issue is a duplicate of #12873 (closed)
Dimitrios Moustos (49cda50d) at 06 Jan 15:26
Add changelog entry.
Dimitrios Moustos (2a851e5d) at 06 Jan 11:09
Closes issue #12904.
Closes #12904
Dimitrios Moustos (7c6f6b79) at 06 Jan 10:38
Assign production number on transition to waiting state
Reproducible on current demo.
Create Subscription recurrence rule set, complete name and frequency (any, daily, monthly), save
Open test recurrence rule, then select the rule created, complete count = 1 (or any other integer)
When deselecting the count input field, I get the following crash:
Traceback (most recent call last):
File "usrlocallibpython3.11dist-packagestrytondwsgi.py", line 109, in dispatch_request
return endpoint(request, **request.view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondprotocolsdispatcher.py", line 43, in rpc
return methods.get(request.rpc_method, _dispatch)(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondwsgi.py", line 75, in wrapper
return func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondprotocolswrappers.py", line 197, in wrapper
return func(request, pool, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondprotocolsdispatcher.py", line 201, in _dispatch
result = rpc.result(meth(inst, *c_args, **c_kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondmodelfieldsfield.py", line 203, in wrapper
setattr(self, fieldname, value)
File "usrlocallibpython3.11dist-packagestrytondmodelfieldsone2many.py", line 303, in __set__
records = instanciate_values(Target, value, **extra)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondmodelfieldsfield.py", line 176, in instanciate_values
return tuple(instance(x) for x in (value or []))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondmodelfieldsfield.py", line 176, in <genexpr>
return tuple(instance(x) for x in (value or []))
^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondmodelfieldsfield.py", line 175, in instance
return Target(data, **extra, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "usrlocallibpython3.11dist-packagestrytondmodelmodel.py", line 278, in __init__
id = int(id)
^^^^^^^
ValueError: invalid literal for int() with base 10: 'add'
I have also been unable to create any sale subscription invoices, but this is the first crash that I have gotten.
Closes #12873