tryton-ar / account_invoice_ar

Tryton module with AFIP WS integration
GNU General Public License v3.0
14 stars 12 forks source link

Restringir la creación de Punto de venta electronico si no tiene certificado válido #41

Open lukio opened 9 years ago

lukio commented 9 years ago

No debe poder crear facturas electrónicas si no se han completado los datos de AfipWS en la empresa. Además, el certificado debe ser válido para poder crear el punto de venta electrónico.

lukio commented 6 years ago

Today, we validate the certificate when we saved the company record. So, we should not check if the certificate is valid, we should check if the company.pyafip_cert_mode is != 'n/a'. That implies that it has a valid certificate, and we can have a point of sale of type electronic.