odoo-addon-ebill-postfinance 16.0.1.0.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. odoo/addons/ebill_postfinance/README.rst +130 -0
  2. odoo/addons/ebill_postfinance/__init__.py +1 -0
  3. odoo/addons/ebill_postfinance/__manifest__.py +35 -0
  4. odoo/addons/ebill_postfinance/data/ir_cron.xml +14 -0
  5. odoo/addons/ebill_postfinance/data/mail_activity_type.xml +10 -0
  6. odoo/addons/ebill_postfinance/data/transmit.method.xml +10 -0
  7. odoo/addons/ebill_postfinance/i18n/ebill_postfinance.pot +533 -0
  8. odoo/addons/ebill_postfinance/messages/invoice-2003A.jinja +238 -0
  9. odoo/addons/ebill_postfinance/messages/invoice-yellowbill.jinja +227 -0
  10. odoo/addons/ebill_postfinance/messages/ybInvoice_V2.0.4.xsd +1395 -0
  11. odoo/addons/ebill_postfinance/models/__init__.py +5 -0
  12. odoo/addons/ebill_postfinance/models/account_move.py +140 -0
  13. odoo/addons/ebill_postfinance/models/ebill_payment_contract.py +73 -0
  14. odoo/addons/ebill_postfinance/models/ebill_postfinance_invoice_message.py +404 -0
  15. odoo/addons/ebill_postfinance/models/ebill_postfinance_service.py +154 -0
  16. odoo/addons/ebill_postfinance/models/sale_order.py +19 -0
  17. odoo/addons/ebill_postfinance/readme/CONFIGURE.rst +13 -0
  18. odoo/addons/ebill_postfinance/readme/CONTRIBUTORS.rst +1 -0
  19. odoo/addons/ebill_postfinance/readme/DESCRIPTION.rst +1 -0
  20. odoo/addons/ebill_postfinance/readme/INSTALL.rst +2 -0
  21. odoo/addons/ebill_postfinance/readme/ROADMAP.rst +10 -0
  22. odoo/addons/ebill_postfinance/readme/USAGE.rst +5 -0
  23. odoo/addons/ebill_postfinance/security/ir.model.access.csv +5 -0
  24. odoo/addons/ebill_postfinance/static/description/icon.png +0 -0
  25. odoo/addons/ebill_postfinance/static/description/index.html +470 -0
  26. odoo/addons/ebill_postfinance/tests/__init__.py +3 -0
  27. odoo/addons/ebill_postfinance/tests/common.py +194 -0
  28. odoo/addons/ebill_postfinance/tests/examples/credit_note_yb.xml +176 -0
  29. odoo/addons/ebill_postfinance/tests/examples/invoice_qr_yb.xml +182 -0
  30. odoo/addons/ebill_postfinance/tests/examples/yellowbill_qr_iban.xml +178 -0
  31. odoo/addons/ebill_postfinance/tests/fixtures/cassettes/test_ping_service.yaml +1057 -0
  32. odoo/addons/ebill_postfinance/tests/fixtures/cassettes/test_search_invoices.yaml +564 -0
  33. odoo/addons/ebill_postfinance/tests/fixtures/cassettes/test_upload_file.yaml +561 -0
  34. odoo/addons/ebill_postfinance/tests/test_ebill_postfinance.py +50 -0
  35. odoo/addons/ebill_postfinance/tests/test_ebill_postfinance_message_yb.py +65 -0
  36. odoo/addons/ebill_postfinance/tests/test_ebill_postfinance_message_yb_creditnote.py +67 -0
  37. odoo/addons/ebill_postfinance/views/ebill_payment_contract.xml +56 -0
  38. odoo/addons/ebill_postfinance/views/ebill_postfinance_invoice_message.xml +81 -0
  39. odoo/addons/ebill_postfinance/views/ebill_postfinance_service.xml +136 -0
  40. odoo/addons/ebill_postfinance/views/message_template.xml +8 -0
  41. odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/METADATA +149 -0
  42. odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/RECORD +44 -0
  43. odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/WHEEL +5 -0
  44. odoo_addon_ebill_postfinance-16.0.1.0.0.3.dist-info/top_level.txt +1 -0
@@ -0,0 +1,176 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="string">
3
+ <Header>
4
+ <From>Camptocamp SA</From>
5
+ <To>IPECeBILLServer</To>
6
+ <UseCase>CreateybInvoice</UseCase>
7
+ <SessionID>1</SessionID>
8
+ <Version>2.0</Version>
9
+ <Status>0</Status>
10
+ <SoftwareName>Odoo</SoftwareName>
11
+ <SoftwareVersion>14.0</SoftwareVersion>
12
+ </Header>
13
+ <Body>
14
+ <DeliveryInfo>
15
+ <BillerID>41101000001021209</BillerID>
16
+ <eBillAccountID>41010198248040391</eBillAccountID>
17
+ <DeliveryDate>2019-06-21</DeliveryDate>
18
+ <TransactionID>$TRANSACTION_ID</TransactionID>
19
+ <BillDetailsType>PDFAppendix</BillDetailsType>
20
+ <URLBillDetails/>
21
+ </DeliveryInfo>
22
+ <Bill>
23
+ <Header>
24
+ <DocumentType>CREDITADVICE</DocumentType>
25
+ <DocumentID>INV_TEST_01</DocumentID>
26
+ <DocumentDate>2019-06-21</DocumentDate>
27
+ <SenderParty>
28
+ <TaxLiability>VAT</TaxLiability>
29
+ <PartyType>
30
+ <Address>
31
+ <CompanyName>Camptocamp SA</CompanyName>
32
+ <Address1>StreetOne</Address1>
33
+ <ZIP>1015</ZIP>
34
+ <City>Lausanne</City>
35
+ <Country>CH</Country>
36
+ <Email>info@camptocamp.com</Email>
37
+ </Address>
38
+ <TaxID>CHE012345678</TaxID>
39
+ </PartyType>
40
+ </SenderParty>
41
+ <ReceiverParty>
42
+ <PartyType>
43
+ <CustomerID>$CUSTOMER_ID</CustomerID>
44
+ <Address>
45
+ <CompanyName>Test RAD Customer XML</CompanyName>
46
+ <Address1>Teststrasse 100</Address1>
47
+ <Address2>This is a very long street name that should be sna</Address2>
48
+ <ZIP>1700</ZIP>
49
+ <City>Fribourg</City>
50
+ <Country>CH</Country>
51
+ </Address>
52
+ <!-- <TaxID>CHE333222111</TaxID> -->
53
+ </PartyType>
54
+ </ReceiverParty>
55
+ <DeliveryPlace>
56
+ <Address>
57
+ <CompanyName>Test RAD Customer XML</CompanyName>
58
+ <ZIP>1700</ZIP>
59
+ <City>Fribourg</City>
60
+ <Country>CH</Country>
61
+ <!-- <Contact1>0000000001</Contact1> -->
62
+ </Address>
63
+ </DeliveryPlace>
64
+ <AchievementDate>
65
+ <StartDateAchievement>2019-06-21</StartDateAchievement>
66
+ <EndDateAchievement>2019-06-21</EndDateAchievement>
67
+ </AchievementDate>
68
+ <Currency>CHF</Currency>
69
+ <AccountAssignment>
70
+ <OrderReference>
71
+ <ReferencePosition>1</ReferencePosition>
72
+ <ReferenceType>OrderReference</ReferenceType>
73
+ <ReferenceValue>CustomerRef</ReferenceValue>
74
+ </OrderReference>
75
+ <OrderDate>2019-06-01</OrderDate>
76
+ </AccountAssignment>
77
+ <Language>en</Language>
78
+ <PaymentInformation>
79
+ <PaymentDueDate>2019-07-01</PaymentDueDate>
80
+ <PaymentType>CREDIT</PaymentType>
81
+ <fixAmount>Yes</fixAmount>
82
+ </PaymentInformation>
83
+ <!-- <FreeText>Dies ist eine Musterrechnung mit QR-IBAN Angaben</FreeText> -->
84
+ </Header>
85
+ <LineItems>
86
+ <LineItem>
87
+ <LineItemType>NORMAL</LineItemType>
88
+ <LineItemID>1</LineItemID>
89
+ <ProductDescription>Product Q &amp; A</ProductDescription>
90
+ <ProductID>370003021</ProductID>
91
+ <Quantity>4.0</Quantity>
92
+ <QuantityDescription>Units</QuantityDescription>
93
+ <PriceUnit>1</PriceUnit>
94
+ <Tax>
95
+ <TaxDetail>
96
+ <Rate>7.7</Rate>
97
+ <Amount>37.88</Amount>
98
+ <BaseAmountExclusiveTax>492.0</BaseAmountExclusiveTax>
99
+ <BaseAmountInclusiveTax>529.88</BaseAmountInclusiveTax>
100
+ </TaxDetail>
101
+ <TotalTax>37.88</TotalTax>
102
+ </Tax>
103
+ <AmountInclusiveTax>529.88</AmountInclusiveTax>
104
+ <AmountExclusiveTax>492.0</AmountExclusiveTax>
105
+ <FixedReference>
106
+ <ReferencePosition>2</ReferencePosition>
107
+ <ReferenceType>OrderNumberBySupplier</ReferenceType>
108
+ <ReferenceValue>Order123</ReferenceValue>
109
+ </FixedReference>
110
+ <FixedReference>
111
+ <ReferencePosition>3</ReferencePosition>
112
+ <ReferenceType>OrderNumberByBuyer</ReferenceType>
113
+ <ReferenceValue>CustomerRef</ReferenceValue>
114
+ </FixedReference>
115
+ </LineItem>
116
+ <LineItem>
117
+ <LineItemType>NORMAL</LineItemType>
118
+ <LineItemID>2</LineItemID>
119
+ <ProductDescription>Product With a Very Long Name That Need To Be Truncated</ProductDescription>
120
+ <ProductID>370003022</ProductID>
121
+ <Quantity>1.0</Quantity>
122
+ <QuantityDescription>Units</QuantityDescription>
123
+ <PriceUnit>1</PriceUnit>
124
+ <Tax>
125
+ <TaxDetail>
126
+ <Rate>7.7</Rate>
127
+ <Amount>0.0</Amount>
128
+ <BaseAmountExclusiveTax>0.0</BaseAmountExclusiveTax>
129
+ <BaseAmountInclusiveTax>0.0</BaseAmountInclusiveTax>
130
+ </TaxDetail>
131
+ <TotalTax>0.0</TotalTax>
132
+ </Tax>
133
+ <AmountInclusiveTax>0.0</AmountInclusiveTax>
134
+ <AmountExclusiveTax>0.0</AmountExclusiveTax>
135
+ <FixedReference>
136
+ <ReferencePosition>4</ReferencePosition>
137
+ <ReferenceType>OrderNumberBySupplier</ReferenceType>
138
+ <ReferenceValue>Order123</ReferenceValue>
139
+ </FixedReference>
140
+ <FixedReference>
141
+ <ReferencePosition>5</ReferencePosition>
142
+ <ReferenceType>OrderNumberByBuyer</ReferenceType>
143
+ <ReferenceValue>CustomerRef</ReferenceValue>
144
+ </FixedReference>
145
+ </LineItem>
146
+ <LineItem>
147
+ <LineItemType>NORMAL</LineItemType>
148
+ <LineItemID>3</LineItemID>
149
+ <ProductDescription>Phone support</ProductDescription>
150
+ <Quantity>4.0</Quantity>
151
+ <QuantityDescription>PCE</QuantityDescription>
152
+ <PriceUnit>1</PriceUnit>
153
+ <AmountInclusiveTax>0.0</AmountInclusiveTax>
154
+ <AmountExclusiveTax>0.0</AmountExclusiveTax>
155
+ </LineItem>
156
+ </LineItems>
157
+ <Summary>
158
+ <Tax>
159
+ <TaxDetail>
160
+ <Rate>7.7</Rate>
161
+ <Amount>-37.88</Amount>
162
+ <BaseAmountExclusiveTax>-492.0</BaseAmountExclusiveTax>
163
+ <BaseAmountInclusiveTax>-529.88</BaseAmountInclusiveTax>
164
+ </TaxDetail>
165
+ <TotalTax>37.88</TotalTax>
166
+ </Tax>
167
+ <TotalAmountExclusiveTax>-492.0</TotalAmountExclusiveTax>
168
+ <TotalAmountInclusiveTax>-529.88</TotalAmountInclusiveTax>
169
+ <!-- <TotalAmountPaid>200.00</TotalAmountPaid> -->
170
+ <TotalAmountDue>-529.88</TotalAmountDue>
171
+ </Summary>
172
+ </Bill>
173
+ <Appendix>
174
+ </Appendix>
175
+ </Body>
176
+ </Envelope>
@@ -0,0 +1,182 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="string">
3
+ <Header>
4
+ <From>Camptocamp SA</From>
5
+ <To>IPECeBILLServer</To>
6
+ <UseCase>CreateybInvoice</UseCase>
7
+ <SessionID>1</SessionID>
8
+ <Version>2.0</Version>
9
+ <Status>0</Status>
10
+ <SoftwareName>Odoo</SoftwareName>
11
+ <SoftwareVersion>14.0</SoftwareVersion>
12
+ </Header>
13
+ <Body>
14
+ <DeliveryInfo>
15
+ <BillerID>41101000001021209</BillerID>
16
+ <eBillAccountID>41010198248040391</eBillAccountID>
17
+ <DeliveryDate>2019-06-21</DeliveryDate>
18
+ <TransactionID>$TRANSACTION_ID</TransactionID>
19
+ <BillDetailsType>PDFAppendix</BillDetailsType>
20
+ <URLBillDetails/>
21
+ </DeliveryInfo>
22
+ <Bill>
23
+ <Header>
24
+ <DocumentType>BILL</DocumentType>
25
+ <DocumentID>INV_TEST_01</DocumentID>
26
+ <DocumentDate>2019-06-21</DocumentDate>
27
+ <SenderParty>
28
+ <TaxLiability>VAT</TaxLiability>
29
+ <PartyType>
30
+ <Address>
31
+ <CompanyName>Camptocamp SA</CompanyName>
32
+ <Address1>StreetOne</Address1>
33
+ <ZIP>1015</ZIP>
34
+ <City>Lausanne</City>
35
+ <Country>CH</Country>
36
+ <Email>info@camptocamp.com</Email>
37
+ </Address>
38
+ <TaxID>CHE012345678</TaxID>
39
+ </PartyType>
40
+ </SenderParty>
41
+ <ReceiverParty>
42
+ <PartyType>
43
+ <CustomerID>$CUSTOMER_ID</CustomerID>
44
+ <Address>
45
+ <CompanyName>Test RAD Customer XML</CompanyName>
46
+ <Address1>Teststrasse 100</Address1>
47
+ <Address2>This is a very long street name that should be sna</Address2>
48
+ <ZIP>1700</ZIP>
49
+ <City>Fribourg</City>
50
+ <Country>CH</Country>
51
+ </Address>
52
+ <!-- <TaxID>CHE333222111</TaxID> -->
53
+ </PartyType>
54
+ </ReceiverParty>
55
+ <DeliveryPlace>
56
+ <Address>
57
+ <CompanyName>Test RAD Customer XML</CompanyName>
58
+ <ZIP>1700</ZIP>
59
+ <City>Fribourg</City>
60
+ <Country>CH</Country>
61
+ <!-- <Contact1>0000000001</Contact1> -->
62
+ </Address>
63
+ </DeliveryPlace>
64
+ <AchievementDate>
65
+ <StartDateAchievement>2019-06-21</StartDateAchievement>
66
+ <EndDateAchievement>2019-06-21</EndDateAchievement>
67
+ </AchievementDate>
68
+ <Currency>CHF</Currency>
69
+ <AccountAssignment>
70
+ <OrderReference>
71
+ <ReferencePosition>1</ReferencePosition>
72
+ <ReferenceType>OrderReference</ReferenceType>
73
+ <ReferenceValue>CustomerRef</ReferenceValue>
74
+ </OrderReference>
75
+ <OrderDate>2019-06-01</OrderDate>
76
+ </AccountAssignment>
77
+ <Language>en</Language>
78
+ <PaymentInformation>
79
+ <PaymentDueDate>2019-07-01</PaymentDueDate>
80
+ <PaymentType>IBAN</PaymentType>
81
+ <fixAmount>Yes</fixAmount>
82
+ <IBAN>
83
+ <BIC>777</BIC>
84
+ <BankName>Reserve</BankName>
85
+ <IBAN>CH2130808001234567827</IBAN>
86
+ <CreditorReference>210000000003139471430009017</CreditorReference>
87
+ </IBAN>
88
+ </PaymentInformation>
89
+ <!-- <FreeText>Dies ist eine Musterrechnung mit QR-IBAN Angaben</FreeText> -->
90
+ </Header>
91
+ <LineItems>
92
+ <LineItem>
93
+ <LineItemType>NORMAL</LineItemType>
94
+ <LineItemID>1</LineItemID>
95
+ <ProductDescription>Product Q &amp; A</ProductDescription>
96
+ <ProductID>370003021</ProductID>
97
+ <Quantity>4.0</Quantity>
98
+ <QuantityDescription>Units</QuantityDescription>
99
+ <PriceUnit>1</PriceUnit>
100
+ <Tax>
101
+ <TaxDetail>
102
+ <Rate>7.7</Rate>
103
+ <Amount>37.88</Amount>
104
+ <BaseAmountExclusiveTax>492.0</BaseAmountExclusiveTax>
105
+ <BaseAmountInclusiveTax>529.88</BaseAmountInclusiveTax>
106
+ </TaxDetail>
107
+ <TotalTax>37.88</TotalTax>
108
+ </Tax>
109
+ <AmountInclusiveTax>529.88</AmountInclusiveTax>
110
+ <AmountExclusiveTax>492.0</AmountExclusiveTax>
111
+ <FixedReference>
112
+ <ReferencePosition>2</ReferencePosition>
113
+ <ReferenceType>OrderNumberBySupplier</ReferenceType>
114
+ <ReferenceValue>Order123</ReferenceValue>
115
+ </FixedReference>
116
+ <FixedReference>
117
+ <ReferencePosition>3</ReferencePosition>
118
+ <ReferenceType>OrderNumberByBuyer</ReferenceType>
119
+ <ReferenceValue>CustomerRef</ReferenceValue>
120
+ </FixedReference>
121
+ </LineItem>
122
+ <LineItem>
123
+ <LineItemType>NORMAL</LineItemType>
124
+ <LineItemID>2</LineItemID>
125
+ <ProductDescription>Product With a Very Long Name That Need To Be Truncated</ProductDescription>
126
+ <ProductID>370003022</ProductID>
127
+ <Quantity>1.0</Quantity>
128
+ <QuantityDescription>Units</QuantityDescription>
129
+ <PriceUnit>1</PriceUnit>
130
+ <Tax>
131
+ <TaxDetail>
132
+ <Rate>7.7</Rate>
133
+ <Amount>0.0</Amount>
134
+ <BaseAmountExclusiveTax>0.0</BaseAmountExclusiveTax>
135
+ <BaseAmountInclusiveTax>0.0</BaseAmountInclusiveTax>
136
+ </TaxDetail>
137
+ <TotalTax>0.0</TotalTax>
138
+ </Tax>
139
+ <AmountInclusiveTax>0.0</AmountInclusiveTax>
140
+ <AmountExclusiveTax>0.0</AmountExclusiveTax>
141
+ <FixedReference>
142
+ <ReferencePosition>4</ReferencePosition>
143
+ <ReferenceType>OrderNumberBySupplier</ReferenceType>
144
+ <ReferenceValue>Order123</ReferenceValue>
145
+ </FixedReference>
146
+ <FixedReference>
147
+ <ReferencePosition>5</ReferencePosition>
148
+ <ReferenceType>OrderNumberByBuyer</ReferenceType>
149
+ <ReferenceValue>CustomerRef</ReferenceValue>
150
+ </FixedReference>
151
+ </LineItem>
152
+ <LineItem>
153
+ <LineItemType>NORMAL</LineItemType>
154
+ <LineItemID>3</LineItemID>
155
+ <ProductDescription>Phone support</ProductDescription>
156
+ <Quantity>4.0</Quantity>
157
+ <QuantityDescription>PCE</QuantityDescription>
158
+ <PriceUnit>1</PriceUnit>
159
+ <AmountInclusiveTax>0.0</AmountInclusiveTax>
160
+ <AmountExclusiveTax>0.0</AmountExclusiveTax>
161
+ </LineItem>
162
+ </LineItems>
163
+ <Summary>
164
+ <Tax>
165
+ <TaxDetail>
166
+ <Rate>7.7</Rate>
167
+ <Amount>37.88</Amount>
168
+ <BaseAmountExclusiveTax>492.0</BaseAmountExclusiveTax>
169
+ <BaseAmountInclusiveTax>529.88</BaseAmountInclusiveTax>
170
+ </TaxDetail>
171
+ <TotalTax>37.88</TotalTax>
172
+ </Tax>
173
+ <TotalAmountExclusiveTax>492.0</TotalAmountExclusiveTax>
174
+ <TotalAmountInclusiveTax>529.88</TotalAmountInclusiveTax>
175
+ <!-- <TotalAmountPaid>200.00</TotalAmountPaid> -->
176
+ <TotalAmountDue>529.88</TotalAmountDue>
177
+ </Summary>
178
+ </Bill>
179
+ <Appendix>
180
+ </Appendix>
181
+ </Body>
182
+ </Envelope>