- 24 Apr, 2020 2 commits
-
-
Arnaud Fontaine authored
* Move Documents used by several bt5 to erp5_core rather than add depends on erp5_core. Once migration of Products to ZODB Components will be finished, there will be moved to their appropriate bt5s as it would be complicated to reorganize bt5s too at this point: + DeliveryCell: used by InvoiceCell Document. + DeliveryLine: used by erp5_ui_test. + InventoryCell: used by erp5_archive. + InventoryLine: used by erp5_accounting.
-
Arnaud Fontaine authored
* This prevents migrating Inventory{Line,Cell} to ZODB Components as Interactor are imported early at startup where erp5.component is not available yet. * More generally, Interactor should probably be replaced by Interaction Workflow for ERP5 objects but in this case, override is enough as it is done likewise everywhere else.
-
- 23 Apr, 2020 7 commits
-
-
Jérome Perrin authored
Now that getInterfaceTypeList also return file system interface, we can use it directly. Also simplify a bit by not getting types tool multiple times. One breaking change is that for an interface like ISomething, ISomething is no longer a valid prefix, only Something. So scripts like ISomething_getSomething are not valid, only Something_getSomething.
-
Jérome Perrin authored
`self` argument should not be a cache key, otherwise we have one cache per skin
-
Jérome Perrin authored
RESPONSE.write cannot be used with WSGI, so use another trick to return a response without commiting the transaction.
-
Arnaud Fontaine authored
* Remove TaxLine Document which was replaced by Trade Model Line a while ago. * Keep {Delivery,Inventory,Order}{Cell,Line} on FS for now because of InventoryInteractor. * About DeliveryRootSimulation Document migration to erp5_trade: + AccountingTransactionRootSimulationRule (erp5_accounting) inherited from it but as this is probably not actually used/useful, avoid depending on erp5_trade or refactoring but just copy/paste. + InvoiceRootSimulationRule inherited from it but as it is only used in erp5_invoicing (which already depends on erp5_trade) move it there. - erp5_configurator_standard_accounting_template: Add depend on erp5_invoicing. * Move Documents used by several bt5 to erp5_core rather than add depends on erp5_core. Once migration of Products to ZODB Components will be finished, there will be moved to their appropriate bt5s as it would be complicated to reorganize bt5s too at this point. + Inventory: used by erp5_archive and erp5_accounting. + Order: used by erp5_project. + PackingList: used by erp5_publication.
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
* Add bt5 dependencies: + erp5_demo_maxma_rule: Invoice*Rule rules. * Move Documents used by several bt5 to erp5_core rather than add depends on erp5_core. Once migration of Products to ZODB Components will be finished, there will be moved to their appropriate bt5s as it would be complicated to reorganize bt5s too at this point. + Invoice{Line,Cell}: used by erp5_payroll.
-
- 22 Apr, 2020 2 commits
-
-
Romain Courteaud authored
Clicking on a button tag with an embedded img tag crashes everything. The right way to fix this is probably to drop the img tag and use a CSS background url instead.
-
Romain Courteaud authored
Prevent sending the binary each time. Follow file input behaviour
-
- 21 Apr, 2020 12 commits
-
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Jérome Perrin authored
There's not only one "login of a person", so it's better to show nothing at all here.
-
Jérome Perrin authored
we can delegate "editable", it's the default value of my_view_mode_read_only_default_credential_question_answer
-
Jérome Perrin authored
This category never existed and this is always logging: Base Category 'package_type' is missing. Accessors can not be generated.
-
Jérome Perrin authored
Since catalog is migrated to an ERP5 document and can only be edited with ERP5 UI we lost the hability to define security uid column for default group, which is supposed to be defined with an empty string, something like: ` | security_uid`. Enable whitespace preserve on this field to allow saving this string string without being stripped by formulator.
-
Jérome Perrin authored
-
Jérome Perrin authored
it seems de2545fc was supposed to be a rename.
-
Jérome Perrin authored
Otherwise indentation is lost when commit from erp5_vcs interface
-
Jérome Perrin authored
Python scripts can be used as catalog methods, including as "clear catalog" methods. This was causing error when upgradeSchema was called: product/ERP5Catalog/CatalogTool.py", line 1372, in upgradeSchema method_list_by_connection_id[method.connection_id].append(method) AttributeError: connection_id
-
Jérome Perrin authored
tables() method of ZMySQLDA returns also views, which are not deleted with DROP TABLE but with DROP VIEW instruction.
-
Jérome Perrin authored
progress report shows an error like this: ![progress report page showing error 500](/uploads/6857ba9d8405d1bbba35b0857bc765d8/Screenshot_2020-04-17_at_18.04.03.png) See merge request !1103
-
- 20 Apr, 2020 1 commit
-
-
Romain Courteaud authored
After discussing on nexedi/erp5!1103 (comment 104474) we amended the original commit so that if there are no bt to install at this point we consider this step is finished (use 1 and not 0)
-
- 17 Apr, 2020 4 commits
-
-
-
Jérome Perrin authored
-
Kazuhiko Shiozaki authored
-
Nicolas Wavrant authored
It may not be the case if there is only one view, as defined by the hateoas spec
-
- 16 Apr, 2020 8 commits
-
-
Georgios Dagkakis authored
for Base_getDocumentScannerDefaultBackendDataAsJSON since we need to be able to create Active Process
-
Arnaud Fontaine authored
Add them to BaseAccessorHolder (like `Base Category` accessors) instead of Base class so they can be regenerated on reset while not having to remove ZODB Components from Base class on reset. This means that providesIFoo() will only be available on Portal Type classes whereas before it was working for direct Document instanciation, but the latter has been banned for several years anyway and the few remaining ones have been fixed (23b2b5fd, e791d08a). Also, instead of Base.provides() being a CachingMethod() (does not work with resets), create a method dynamically on the Portal Type class (erp5.portal_type.Foo), as not caching at all is ~18 times slower.
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
And thus filesystem Interfaces were not displayed/selectable in BaseType_view.
-
Arnaud Fontaine authored
erp5_certificate_authority: Certificate Authority Tool: All ERP5 objects *must* have have a Portal Type in Types Tool. And remove hack in erp5_promise which was creating a non-Portal Type class of portal_certificate_authority. Instead, add a depend on erp5_certificate_authority. `providesI*` accessors are now in BaseAccessorHolder rather than Base due to ZODB Components, this breaks reindexing (`AttributeError: providesIPredicate`). This gets rid of: WARNING ERP5Type.dynamic Cannot find a portal type definition for 'Certificate Authority Tool', trying to guess...
-
Arnaud Fontaine authored
This has been banned since the introduction of Portal Type class. When creating a new ERP5Form via addERP5Form/ZMI, its MRO: * Before: <class 'Products.ERP5Form.Form.ERP5Form'> <class 'Products.ERP5Type.Base.Base'> ... <type 'ExtensionClass.Base'> * Now: <class 'erp5.portal_type.ERP5 Form'>, <class 'Products.ERP5Form.Form.ERP5Form'>, <class 'Products.ERP5Type.Base.Base'>, ... <class 'erp5.accessor_holder.property_sheet.SimpleItem'> <class 'erp5.accessor_holder.property_sheet.Folder'> <class 'erp5.accessor_holder.property_sheet.Base'> <class 'erp5.accessor_holder.property_sheet.CategoryCore'> <class 'erp5.accessor_holder.BaseAccessorHolder'> <class 'Products.ERP5Type.dynamic.portal_type_class.GetAcquireLocalRolesMixIn'> <type 'ExtensionClass.Base'> Thus it was missing many accessors and was working only by chance (or at least unless these accessors were not called until the object was automatically migrated by the next call to __setstate__). Namely, as `providesI*` accessors are now in BaseAccessorHolder rather than Base due to ZODB Components, this breaks reindexing (`AttributeError: providesIPredicate`). Also, remove hardcoded _getAcquireLocalRoles() now that it is not used as a regular class anymore. Set this on the portal type object instead.
-
Arnaud Fontaine authored
This gets rid of: WARNING ERP5Type.dynamic Cannot find a portal type definition for 'ERP5 Form', trying to guess...
-
Jérome Perrin authored
-
- 15 Apr, 2020 1 commit
-
-
Jérome Perrin authored
km, content_translation, ods_style, open_trade, simulation and budget See merge request !1094
-
- 14 Apr, 2020 3 commits
-
-
Romain Courteaud authored
-
Romain Courteaud authored
-
Cédric Le Ninivin authored
Expanding frozen Simulation resulting from a split and Defer raise a `NotImplementedError`. It comes from the `_extendMovementCollectionDiff` function in [RuleMixin](product/ERP5/mixin/rule.py) checking the recorded property "Quantity". The Quantity Split Solver set this variable to zero hence leading the function to consider compensation is needed. This merge request remove the setting of the recorded property `quantity` on the the split movement. Re-expanding from the root was also removing that recorded property asking the question if this is needed. As of now system having used Split and defer Quantity will most likely not be able to re-expand their resulting simulation. A Test is added to validate the fix. See merge request !1097
-