Hello,
please How to print two different invoice layouts ? when i choose the edit botton i want to see tow possibles layouts (invoice1, invoice2 for exemple)
thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
please How to print two different invoice layouts ? when i choose the edit botton i want to see tow possibles layouts (invoice1, invoice2 for exemple)
thanks
You could even achieve that with one report. Let's take a webkit report example (same princple can be aplied to rml reports): If you need two different layouts:
Add a boolean field for the object, and then in report, make a condition:
if object.my_boolean:
$object.this}
else:
${object.that}
If two options is not enough, you can use selection field, and apply conditions for each selection;
if object.selection == 'this':
${object.this}
elif object.selection == 'that':
${object.that}
elif object.selection == 'something else':
${object.something_else}
You can actually put under such condition anything you like- not only tags, but html elements also.
Hello
It's possible to have multiple reports for one model. You can develop one report for every layout you need.
AJ
thank you for yor reponse,can you please explane this solution?
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
2
lut 24
|
1045 | ||
Update the commercial forms ...
Rozwiązane
|
|
1
lip 23
|
1340 | |
|
1
lut 24
|
1216 | ||
|
2
lis 22
|
2901 | ||
|
2
lut 24
|
1276 |