Comments (6)
Vi segnalo anche questa odoo/odoo#82111.
Qui hanno gestito il problema in mass mailing, non ho trovato la PR aggiornata ma hanno spostato quel pezzo di codice in questo mini metodo https://github.com/odoo/odoo/blob/a8c82e6e4e47d951601364f1714a4150fa63f62a/addons/mail/models/mail_template.py#L70C9-L73, mi chiedevo se fosse già stato valutato questo approccio che coprirebbe anche l'esigenza espressa nella review di @SirTakobi #3337 (comment)
EDIT: aggiorno per completezza, non copre l'esigenza in quanto creiamo gli allegati senza res_id
e model_id
come già specificato da Marco. Anche adattando la PR all'esigenza:
class FatturaPAAttachmentOut(models.Model):
_inherit = "fatturapa.attachment.out"
@api.model
def create(self, vals):
attachment = super(FatturaPAAttachmentOut, self).create(vals)
if attachment.out_invoice_ids:
attachment.out_invoice_ids.write({'res_model': self._name, 'res_id': attachment.id})
else:
attachment.write({'res_model': self._name, 'res_id': -1})
return attachment
si otterrebbe un workaround simile a quello già suggerito
from l10n-italy.
#3371 per la 16.0
from l10n-italy.
Quindi l'errore sollevato è "Sorry, you are not allowed to access this document."
?
Mi pare strano che in un metodo api.model
ci sia self
, dal commento sembra una parte di codice dedicata solo al test test_01_portal_attachment
; hai mica recuperato da dove viene fatta la chiamata (il passo prima dello stacktrace)?
from l10n-italy.
@tafaRU hai aggiunto in descrizione un link a questa stessa issue, forse doveva essere un'altra? Magari 3164?
from l10n-italy.
@SirTakobi grazie, corretto.
from l10n-italy.
Propongo questa soluzione: #3827
from l10n-italy.
Related Issues (20)
- È possibile modificare una fattura in un data in cui è presente una liquidazione IVA confermata
- non si carica sulla versione community HOT 2
- l10n_it_declaration_of_intent: aggiungere il campo delle dichiarazioni d'intento all'interno del menu a tendina
- l10n_it_fatturapa_in: aggiungere il campo riferimento amministrativo all'interno del menu a tendina
- l10n_it_fatturapa_in_purchase: aggiungere il campo riga ordine di acquisto all'interno del menu a tendina
- Nella creazione di fatture viene selezionato il tipo di documento fiscale dalla posizione fiscale senza verificarne la compatibilità
- [14.0] l10n_it_delivery_note: riferimenti in fattura non corretti
- Scritte ripetute nella stampa di una liquidazione IVA pagata HOT 1
- Poter estrarre la tabella con gli importi da pagare dalla liquidazione IVA
- [asset_management] - diritti di accesso per collegare fattura di acquisto a cespite
- l10n_it_vat_statement_communication update multi company rule
- Liquidazione IVA divisa per attività
- l10n_it_intrastat_statement: Raggruppamento errato di righe intrastat in caso di nota di credito in periodo diverso
- Conto impostato nelle righe delle fatture elettroniche importate
- Calcolare il valore del fondo ammortamento durante la dismissione parziale
- [16.0] l10n_it_account: xpath replace non rispetta attributo `t-if` originale
- l10n_it_vat_statement_communication impostare credito compensato in VP9
- Titolo più esplicito per la liquidazione IVA
- Fattura acconto e fattura saldo su ordine PR4381
- Generazione File INTRA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from l10n-italy.