forked from OCA/l10n-italy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate l10n_it_website_sale_fatturapa, otherwise "I want invoice" …
…would not give company the possibility to issue e-invoice Improve README and description ADD setup dir auto_install module
- Loading branch information
Showing
13 changed files
with
105 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
**Italiano** | ||
|
||
Il comportamento dipende da come è configurato il partner associato all'utente loggato, ad esempio: | ||
Il comportamento dipende da come è configurato il partner associato all'utente autenticato, ad esempio: | ||
|
||
* Se il partner associato all'utente loggato ha il flag *Usa corrispettivi* abilitato, la spunta *Voglio fattura* sarà disabilitata; | ||
* Se il partner associato all'utente loggato ha il flag *Usa corrispettivi* disabilitato, la spunta *Voglio fattura* sarà abilitata; | ||
* Se il partner associato all'utente che ha effettuato il login ha la spunta *Usare ricevute* abilitata, la spunta *Richiedi fattura* sarà disabilitata; | ||
* Se il partner associato all'utente che ha effettuato il login ha la spunta *Usare ricevute* disabilitata, la spunta *Richiedi fattura* sarà abilitata; | ||
|
||
**English** | ||
|
||
The behavior depends on how the partner associated with the logged in user is configured, for example: | ||
|
||
* If the partner associated with the logged in user has the *Use corrispettivi* flag enabled, the check *Want invoice* will be disabled; | ||
* If the partner associated with the logged in user has the *Use corrispettivi* flag disabled, the check *Want invoice* will be enabled; | ||
* If the partner associated with the logged in user has the *Use receipts* flag enabled, the check *Request invoice* will be disabled; | ||
* If the partner associated with the logged in user has the *Use receipts* flag disabled, the check *Request invoice* will be enabled; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
**Italiano** | ||
|
||
Questo modulo aggiunge la spunta *Voglio fattura* nella pagina dell'indirizzo all'interno del flusso di checkout, | ||
il suo valore è l'opposto di *Usa corrispettivi* nel partner. | ||
Questo modulo aggiunge la spunta *Richiedi fattura* nella pagina dell'indirizzo all'interno del flusso di checkout, | ||
il suo valore è l'opposto di *Usare ricevute* nel partner. | ||
|
||
Per gli utenti non loggati, il default del flag *Voglio fattura* è sempre vuoto. | ||
Per gli utenti non autenticati, il valore predefinito della casella *Richiedi fattura* è sempre vuoto. | ||
|
||
**English** | ||
|
||
This module adds the *Want invoice* check in partner's address form of checkout flow, | ||
its value is the opposite of *Use corrispettivi* in partner. | ||
This module adds the *Request invoice* check in partner's address form of checkout flow, | ||
its value is the opposite of *Use receipts* in partner. | ||
|
||
For unlogged users the default value for *Want invoice* flag is always empty. | ||
For unlogged users the default value for *Request invoice* flag is always empty. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
**Italiano** | ||
|
||
Per gli utenti non loggati il default del flag *Voglio fattura* è sempre vuoto, dovrebbe dipendere dal flag *Usa corrispettivi* nel partner dell'utente pubblico. | ||
Per gli utenti non autenticati il valore predefinito della casella *Richiedi fattura* è sempre vuoto, dovrebbe dipendere dalla casella *Usare ricevute* nel partner dell'utente pubblico. | ||
|
||
**English** | ||
|
||
For unlogged users the default value for *Want invoice* flag is always empty, it should depend on the *Use corrispettivi* flag in the partner of the public user. | ||
For unlogged users the default value for *Request invoice* flag is always empty, it should depend on the *Use receipts* flag in the partner of the public user. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
l10n_it_website_sale_corrispettivi/static/src/js/l10n_it_website_sale_corrispettivi.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
odoo.define('l10n_it_website_sale_corrispettivi', function(require) { | ||
'use strict'; | ||
require('web.core'); | ||
|
||
$(document).ready(function () { | ||
var $container_div = $('.oe_website_sale'); | ||
var $use_invoice_input = $container_div.find("input[name='use_invoice'][type='checkbox']"); | ||
var $electronic_invoice_subjected_input = $container_div.find("input[name='electronic_invoice_subjected'][type='checkbox']"); | ||
var $electronic_invoice_subjected_div = $container_div.find("div.div_electronic_invoice_subjected"); | ||
var $div_codice_destinatario = $container_div.find("div.div_codice_destinatario"); | ||
var $div_pec_destinatario = $container_div.find("div.div_pec_destinatario"); | ||
|
||
var compute_invoice_subjected_fields_visibility = function(){ | ||
if ($use_invoice_input[0] != null) { | ||
if ($use_invoice_input[0].checked) { | ||
$electronic_invoice_subjected_div.show(); | ||
} else { | ||
$electronic_invoice_subjected_input.prop('checked', false); | ||
$electronic_invoice_subjected_div.hide(); | ||
$div_codice_destinatario.hide(); | ||
$div_pec_destinatario.hide(); | ||
} | ||
} | ||
}; | ||
compute_invoice_subjected_fields_visibility(); | ||
$use_invoice_input.change(compute_invoice_subjected_fields_visibility); | ||
|
||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
setup/l10n_it_website_sale_corrispettivi/odoo/addons/l10n_it_website_sale_corrispettivi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../l10n_it_website_sale_corrispettivi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |