Tuesday, April 21, 2020
12 changes
Miscellaneous changes
Task: https://www.odoo.com/web?debug=1#id=2150409&action=327&model=project.task&view_type=form&menu_id=4720 Forward-Port-Of: odoo/enterprise#9724 Forward-Port-Of: odoo/enterprise#7578
Original PR description
Task: https://www.odoo.com/web?debug=1#id=2150409&action=327&model=project.task&view_type=form&menu_id=4720 Forward-Port-Of: odoo/enterprise#9724 Forward-Port-Of: odoo/enterprise#7578
When restoring a copy of the database without filestore, for example to test locally something, allow to access the invoices and payment. The traceback is still shown, but in a server logs rather than in the web interface, preventing the user to access the view completely Forward-Port-Of: odoo/enterprise#9669
Original PR description
When restoring a copy of the database without filestore, for example to test locally something, allow to access the invoices and payment. The traceback is still shown, but in a server logs rather than in the web interface, preventing the user to access the view completely Forward-Port-Of: odoo/enterprise#9669
This `read_grid` override assumed the records were always grouped by a many2one field and blindlessly read the value `.id`. This crashes for other field types. Group aggregation functions (e.g. "date:quarter") were also not supported and crashed. Task 2237653 Forward-Port-Of: odoo/enterprise#9870
Original PR description
This `read_grid` override assumed the records were always grouped by a many2one field and blindlessly read the value `.id`. This crashes for other field types. Group aggregation functions (e.g. "date:quarter") were also not supported and crashed. Task 2237653 Forward-Port-Of: odoo/enterprise#9870
Steps to reproduce the bug: - Let's consider two companies A and B - Let's consider a user U in A and not aloowed in B - Let's consider a project P in B with a task T - Let's consider an employee E in B with several timesheets linked to T - Log as U and go to Project > Reporting > Timesheet and Planning Analysis Bug: The employee E was displayed even if E was in company B opw:2234497 Forward-Port-Of: odoo/enterprise#9956
Original PR description
Steps to reproduce the bug: - Let's consider two companies A and B - Let's consider a user U in A and not aloowed in B - Let's consider a project P in B with a task T - Let's consider an employee E in B with several timesheets linked to T - Log as U and go to Project > Reporting > Timesheet and Planning Analysis Bug: The employee E was displayed even if E was in company B opw:2234497 Forward-Port-Of: odoo/enterprise#9956
[task-1935179](https://www.odoo.com/web#id=1935179&model=project.task&view_type=form&cids=1&menu_id=) Forward-Port-Of: odoo/enterprise#9955 Forward-Port-Of: odoo/enterprise#8767
Original PR description
[task-1935179](https://www.odoo.com/web#id=1935179&model=project.task&view_type=form&cids=1&menu_id=) Forward-Port-Of: odoo/enterprise#9955 Forward-Port-Of: odoo/enterprise#8767
TaskID: 2238544 Forward-Port-Of: odoo/enterprise#10072
Original PR description
TaskID: 2238544 Forward-Port-Of: odoo/enterprise#10072
[opw-2228233](https://www.odoo.com/web#active_id=2228233&cids=1&id=2228233&model=project.task&menu_id=) Forward-Port-Of: odoo/enterprise#9727
Original PR description
[opw-2228233](https://www.odoo.com/web#active_id=2228233&cids=1&id=2228233&model=project.task&menu_id=) Forward-Port-Of: odoo/enterprise#9727
When restoring a copy of the database without filestore, for example to test locally something, allow to access the invoices and payment. The traceback is still shown, but in a server logs rather than in the web interface, preventing the user to access the view completely Forward-Port-Of: odoo/enterprise#10026 Forward-Port-Of: odoo/enterprise#9669
Original PR description
When restoring a copy of the database without filestore, for example to test locally something, allow to access the invoices and payment. The traceback is still shown, but in a server logs rather than in the web interface, preventing the user to access the view completely Forward-Port-Of: odoo/enterprise#10026 Forward-Port-Of: odoo/enterprise#9669
Task: 2212790 Forward-Port-Of: odoo/enterprise#9972
Original PR description
Task: 2212790 Forward-Port-Of: odoo/enterprise#9972
TaskID: 2241501 Closes #49750 Forward-Port-Of: odoo/enterprise#10038
Original PR description
TaskID: 2241501 Closes #49750 Forward-Port-Of: odoo/enterprise#10038
Recently when download the XSD files from the hook, or with the server action that update XSD files, some files are incorrect, for example the next case: xsd without error: ``` <xs:schema xmlns:nomina12="http://www.sat.gob.mx/nomina12" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:catCFDI="http://www.sat.gob.mx/sitio_internet/cfd/catalogos" xmlns:tdCFDI="http://www.sat.gob.mx/sitio_internet/cfd/tipoDatos/tdCFDI" xmlns:catNomina="http://www.sat.gob.mx/sitio_internet/cfd/catalogos/N
Original PR description
Recently when download the XSD files from the hook, or with the server action that update XSD files, some files are incorrect, for example the next case: xsd without error: ``` <xs:schema…
Recently when download the XSD files from the hook, or with the server
action that update XSD files, some files are incorrect, for example the
next case:
xsd without error:
```
<xs:schema xmlns:nomina12="http://www.sat.gob.mx/nomina12"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:catCFDI="http://www.sat.gob.mx/sitio_internet/cfd/catalogos"
xmlns:tdCFDI="http://www.sat.gob.mx/sitio_internet/cfd/tipoDatos/tdCFDI"
xmlns:catNomina="http://www.sat.gob.mx/sitio_internet/cfd/catalogos/Nomina"
targetNamespace="http://www.sat.gob.mx/nomina12"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import
namespace="http://www.sat.gob.mx/sitio_internet/cfd/catalogos"
schemaLocation="/home/odoo/data_dir/filestore/admin/52/52a83e658343919d6d4d97c5844ca48b87dbe015"/>
<xs:import
namespace="http://www.sat.gob.mx/sitio_internet/cfd/tipoDatos/tdCFDI"
schemaLocation="http://www.sat.gob.mx/sitio_internet/cfd/tipoDatos/tdCFDI/tdCFDI.xsd"/>
<xs:import
namespace="http://www.sat.gob.mx/sitio_internet/cfd/catalogos/Nomina"
schemaLocation="http://www.sat.gob.mx/sitio_internet/cfd/catalogos/Nomina/catNomina.xsd"/><xs:element
name="Nomina">
```
xsd with error:
```
<xs:schema xmlns:nomina12="http://www.sat.gob.mx/nomina12"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:catCFDI="http://www.sat.gob.mx/sitio_internet/cfd/catalogos"
xmlns:tdCFDI="http://www.sat.gob.mx/sitio_internet/cfd/tipoDatos/tdCFDI"
xmlns:catNomina="http://www.sat.gob.mx/sitio_internet/cfd/catalogos/Nomina"
targetNamespace="http://www.sat.gob.mx/nomina12"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import
namespace="http://www.sat.gob.mx/sitio_internet/cfd/catalogos"
schemaLocation="/home/odoo/data_dir/filestore/admin/52/52a83e658343919d6d4d97c5844ca48b87dbe015"/>
<xs:import
namespace="http://www.sat.gob.mx/sitio_internet/cfd/tipoDatos/tdCFDI"
schemaLocation="/home/odoo/data_dir/filestore/admin/7b/7bd94cf5e43aa05475fb49adf771bf7ed0b4ed64"/>
<xs:import
namespace="http://www.sat.gob.mx/sitio_internet/cfd/catalogos/Nomina"
schemaLocation=""/>
```
Note that the schemaLocation is empty in the last import.
If this xsd is generated in the instance, when trying to generate an invoice
gets the next error:
```Element '{http://www.w3.org/2001/XMLSchema}import': The schema must not
import/include/redefine itself., line 4```
Now, if an xsd is incorrect, no download that files and avoid stamp errors.
OPW
#2235201
#2239042
#2239077
#2235097
Forward-Port-Of: odoo/enterprise#9999- Install NL accounting - Create an invoice address for one contact (with no "contact name" set) - Generate an invoice for that partner - Export the XAF file A traceback occurs at rendering because there is no name on the invoice address. opw-2224949 Forward-Port-Of: odoo/enterprise#10039
Original PR description
- Install NL accounting - Create an invoice address for one contact (with no "contact name" set) - Generate an invoice for that partner - Export the XAF file A traceback occurs at rendering because there is no name on the invoice address. opw-2224949 Forward-Port-Of: odoo/enterprise#10039