The issue was that the portal shows all the release capital request that
are followed by the user (generally because, it's him that that accepted
the request). The page should only show the capital request of that the
user owns.
The bug was that trying to download the cooperator certificate or
another PDF in the interface brings an error 500. This was due to a
wrong usage of the function `get_pdf()` and also due to a error of
encoding when using `format()` python function with `{name}`. Instead I
use `"%s" % name` that works great.
It didn't use `get_pdf()` right because of an old version of mis-builder
that cause the methord `get_pdf()` to work weird. With an updated
version of mis-builder, `get_pdf()` can be used correctly.
Add a button that allow to download the cooperator certificate.
There is some access right issue for now. So for the moment the function
`send_cooperator_certificate()` in the controller is not used.
Remove the usage of street2. The street is stored in the street
attribute. And it found the name of the company in a parent_id if there
is one.
If the partner is a company. It shows information about the company.
Namely, its name, its VAT number, its email, its phone, and its address.
If the partner is a contact of a company. It shows informations about
the company and about the contact. Namely, the name, the email and the
phone of the contact, the name, the VAT and the address of the company.
In fact the VAT and the address must be the same on the contact and on
the company. This is the standard behaviour in Odoo.
So when a partner became a contact of a company it lost his own address
and VAT number. These two field are copied from the company.
When the partner is a person. It shows information about this person.
Namely, his or her name, email, phone, VAT (not required) and address.
It also make the website portal easier to extend.
Updated xml reports and css in order to have one page certificate.
Made the same design for the signature on both report
In CSS file: Changed the font size to make it smaller in px in place of pt
Changed the size of the image for the signature to make it smaller