odoo14-addon-l10n-br-purchase 14.0.3.10.1.dev3__py3-none-any.whl → 14.0.3.11.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- odoo/addons/l10n_br_purchase/README.rst +1 -1
- odoo/addons/l10n_br_purchase/__manifest__.py +1 -1
- odoo/addons/l10n_br_purchase/demo/l10n_br_purchase.xml +232 -0
- odoo/addons/l10n_br_purchase/i18n/l10n_br_purchase.pot +100 -0
- odoo/addons/l10n_br_purchase/i18n/pt_BR.po +134 -11
- odoo/addons/l10n_br_purchase/models/purchase_order.py +21 -1
- odoo/addons/l10n_br_purchase/models/purchase_order_line.py +9 -0
- odoo/addons/l10n_br_purchase/reports/purchase_report.py +2 -2
- odoo/addons/l10n_br_purchase/static/description/index.html +1 -1
- odoo/addons/l10n_br_purchase/tests/test_l10n_br_purchase.py +146 -4
- {odoo14_addon_l10n_br_purchase-14.0.3.10.1.dev3.dist-info → odoo14_addon_l10n_br_purchase-14.0.3.11.1.dist-info}/METADATA +3 -3
- {odoo14_addon_l10n_br_purchase-14.0.3.10.1.dev3.dist-info → odoo14_addon_l10n_br_purchase-14.0.3.11.1.dist-info}/RECORD +14 -14
- {odoo14_addon_l10n_br_purchase-14.0.3.10.1.dev3.dist-info → odoo14_addon_l10n_br_purchase-14.0.3.11.1.dist-info}/WHEEL +1 -1
- {odoo14_addon_l10n_br_purchase-14.0.3.10.1.dev3.dist-info → odoo14_addon_l10n_br_purchase-14.0.3.11.1.dist-info}/top_level.txt +0 -0
@@ -7,7 +7,7 @@ Brazilian Localization Purchase
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
8
8
|
!! changes will be overwritten. !!
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
10
|
-
!! source digest: sha256:
|
10
|
+
!! source digest: sha256:5a3cc684f53dad103a41ba5b0db18ed97b6f0a19b6e47055fa74631858cd4023
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
12
12
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"author": "Akretion, Odoo Community Association (OCA)",
|
9
9
|
"maintainers": ["renatonlima", "rvalyi"],
|
10
10
|
"website": "https://github.com/OCA/l10n-brazil",
|
11
|
-
"version": "14.0.3.
|
11
|
+
"version": "14.0.3.11.1",
|
12
12
|
"depends": ["purchase", "l10n_br_account"],
|
13
13
|
"data": [
|
14
14
|
# Security
|
@@ -55,6 +55,238 @@
|
|
55
55
|
<value eval="[ref('main_pl_only_products_2_2')]" />
|
56
56
|
</function>
|
57
57
|
|
58
|
+
<!-- Endereço de Cobrança Diferente do Partner,a Fatura criada deverá ter
|
59
|
+
outro partner, o Contato definido como Endereço de Faturamento/Cobrança,
|
60
|
+
TODO: deveria criar a fatura usando Partner do Pedido como o Parceiro
|
61
|
+
para Entrega/partner_shipping_id?
|
62
|
+
No caso l10n_br_purchase_stock isso acontece
|
63
|
+
-->
|
64
|
+
<record id="main_company-purchase_2" model="purchase.order">
|
65
|
+
<field name="name">l10n_br_purchase - Endereço de Cobrança Diferente</field>
|
66
|
+
<field name="partner_id" ref="l10n_br_base.res_partner_cliente7_rs" />
|
67
|
+
<field name="state">draft</field>
|
68
|
+
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
69
|
+
<field name="user_id" ref="base.user_admin" />
|
70
|
+
<field name="company_id" ref="base.main_company" />
|
71
|
+
</record>
|
72
|
+
|
73
|
+
<function model="purchase.order" name="_onchange_fiscal_operation_id">
|
74
|
+
<value eval="[ref('main_company-purchase_2')]" />
|
75
|
+
</function>
|
76
|
+
|
77
|
+
<record id="main_company-purchase_line_2_1" model="purchase.order.line">
|
78
|
+
<field name="order_id" ref="main_company-purchase_2" />
|
79
|
+
<field name="name">Office Chair Black</field>
|
80
|
+
<field name="product_id" ref="product.product_product_12" />
|
81
|
+
<field name="product_qty">4</field>
|
82
|
+
<field name="product_uom" ref="uom.product_uom_unit" />
|
83
|
+
<!-- Apesar do Preço ser defindo aqui o _onchange_product_id_fiscal altera o valor -->
|
84
|
+
<field name="price_unit">25.0</field>
|
85
|
+
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
86
|
+
<field
|
87
|
+
name="fiscal_operation_line_id"
|
88
|
+
ref="l10n_br_fiscal.fo_compras_compras"
|
89
|
+
/>
|
90
|
+
<field name="date_planned" eval="time.strftime('%Y-%m-%d')" />
|
91
|
+
</record>
|
92
|
+
|
93
|
+
<function model="purchase.order.line" name="_onchange_product_id_fiscal">
|
94
|
+
<value eval="[ref('main_company-purchase_line_2_1')]" />
|
95
|
+
</function>
|
96
|
+
|
97
|
+
<record id="main_company-purchase_line_2_2" model="purchase.order.line">
|
98
|
+
<field name="order_id" ref="main_company-purchase_2" />
|
99
|
+
<field name="name">Drawer Black</field>
|
100
|
+
<field name="product_id" ref="product.product_product_16" />
|
101
|
+
<field name="product_qty">2</field>
|
102
|
+
<field name="product_uom" ref="uom.product_uom_unit" />
|
103
|
+
<field name="price_unit">50.00</field>
|
104
|
+
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
105
|
+
<field
|
106
|
+
name="fiscal_operation_line_id"
|
107
|
+
ref="l10n_br_fiscal.fo_compras_compras"
|
108
|
+
/>
|
109
|
+
<field name="date_planned" eval="time.strftime('%Y-%m-%d')" />
|
110
|
+
</record>
|
111
|
+
|
112
|
+
<function model="purchase.order.line" name="_onchange_product_id_fiscal">
|
113
|
+
<value eval="[ref('main_company-purchase_line_2_2')]" />
|
114
|
+
</function>
|
115
|
+
|
116
|
+
<!-- Endereço de Cobrança Diferente do Partner, nesse caso o Endereço já
|
117
|
+
está informado, não deve ter o Parceiro para Entrega
|
118
|
+
-->
|
119
|
+
<record id="main_company-purchase_3" model="purchase.order">
|
120
|
+
<field name="name">l10n_br_purchase - Endereço de Cobrança Informado</field>
|
121
|
+
<field
|
122
|
+
name="partner_id"
|
123
|
+
ref="l10n_br_base.res_partner_cliente7_rs_end_cobranca"
|
124
|
+
/>
|
125
|
+
<field name="state">draft</field>
|
126
|
+
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
127
|
+
<field name="user_id" ref="base.user_admin" />
|
128
|
+
<field name="company_id" ref="base.main_company" />
|
129
|
+
</record>
|
130
|
+
|
131
|
+
<function model="purchase.order" name="_onchange_fiscal_operation_id">
|
132
|
+
<value eval="[ref('main_company-purchase_3')]" />
|
133
|
+
</function>
|
134
|
+
|
135
|
+
<record id="main_company-purchase_line_3_1" model="purchase.order.line">
|
136
|
+
<field name="order_id" ref="main_company-purchase_3" />
|
137
|
+
<field name="name">Office Chair Black</field>
|
138
|
+
<field name="product_id" ref="product.product_product_12" />
|
139
|
+
<field name="product_qty">4</field>
|
140
|
+
<field name="product_uom" ref="uom.product_uom_unit" />
|
141
|
+
<!-- Apesar do Preço ser defindo aqui o _onchange_product_id_fiscal altera o valor -->
|
142
|
+
<field name="price_unit">25.0</field>
|
143
|
+
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
144
|
+
<field
|
145
|
+
name="fiscal_operation_line_id"
|
146
|
+
ref="l10n_br_fiscal.fo_compras_compras"
|
147
|
+
/>
|
148
|
+
<field name="date_planned" eval="time.strftime('%Y-%m-%d')" />
|
149
|
+
</record>
|
150
|
+
|
151
|
+
<function model="purchase.order.line" name="_onchange_product_id_fiscal">
|
152
|
+
<value eval="[ref('main_company-purchase_line_3_1')]" />
|
153
|
+
</function>
|
154
|
+
|
155
|
+
<record id="main_company-purchase_line_3_2" model="purchase.order.line">
|
156
|
+
<field name="order_id" ref="main_company-purchase_3" />
|
157
|
+
<field name="name">Drawer Black</field>
|
158
|
+
<field name="product_id" ref="product.product_product_16" />
|
159
|
+
<field name="product_qty">2</field>
|
160
|
+
<field name="product_uom" ref="uom.product_uom_unit" />
|
161
|
+
<field name="price_unit">50.00</field>
|
162
|
+
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
163
|
+
<field
|
164
|
+
name="fiscal_operation_line_id"
|
165
|
+
ref="l10n_br_fiscal.fo_compras_compras"
|
166
|
+
/>
|
167
|
+
<field name="date_planned" eval="time.strftime('%Y-%m-%d')" />
|
168
|
+
</record>
|
169
|
+
|
170
|
+
<function model="purchase.order.line" name="_onchange_product_id_fiscal">
|
171
|
+
<value eval="[ref('main_company-purchase_line_3_2')]" />
|
172
|
+
</function>
|
173
|
+
|
174
|
+
<!-- Partner usado é o Contato de Entrega, a Fatura é criada com
|
175
|
+
o Partner do Pedido
|
176
|
+
-->
|
177
|
+
<record id="main_company-purchase_4" model="purchase.order">
|
178
|
+
<field
|
179
|
+
name="name"
|
180
|
+
>l10n_br_purchase - Contato do Endereço de Entrega Informado</field>
|
181
|
+
<field
|
182
|
+
name="partner_id"
|
183
|
+
ref="l10n_br_base.res_partner_cliente2_sp_end_entrega"
|
184
|
+
/>
|
185
|
+
<field name="state">draft</field>
|
186
|
+
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
187
|
+
<field name="user_id" ref="base.user_admin" />
|
188
|
+
<field name="company_id" ref="base.main_company" />
|
189
|
+
</record>
|
190
|
+
|
191
|
+
<function model="purchase.order" name="_onchange_fiscal_operation_id">
|
192
|
+
<value eval="[ref('main_company-purchase_4')]" />
|
193
|
+
</function>
|
194
|
+
|
195
|
+
<record id="main_company-purchase_line_4_1" model="purchase.order.line">
|
196
|
+
<field name="order_id" ref="main_company-purchase_4" />
|
197
|
+
<field name="name">Office Chair Black</field>
|
198
|
+
<field name="product_id" ref="product.product_product_12" />
|
199
|
+
<field name="product_qty">4</field>
|
200
|
+
<field name="product_uom" ref="uom.product_uom_unit" />
|
201
|
+
<!-- Apesar do Preço ser defindo aqui o _onchange_product_id_fiscal altera o valor -->
|
202
|
+
<field name="price_unit">25.0</field>
|
203
|
+
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
204
|
+
<field
|
205
|
+
name="fiscal_operation_line_id"
|
206
|
+
ref="l10n_br_fiscal.fo_compras_compras"
|
207
|
+
/>
|
208
|
+
<field name="date_planned" eval="time.strftime('%Y-%m-%d')" />
|
209
|
+
</record>
|
210
|
+
|
211
|
+
<function model="purchase.order.line" name="_onchange_product_id_fiscal">
|
212
|
+
<value eval="[ref('main_company-purchase_line_4_1')]" />
|
213
|
+
</function>
|
214
|
+
|
215
|
+
<record id="main_company-purchase_line_4_2" model="purchase.order.line">
|
216
|
+
<field name="order_id" ref="main_company-purchase_4" />
|
217
|
+
<field name="name">Drawer Black</field>
|
218
|
+
<field name="product_id" ref="product.product_product_16" />
|
219
|
+
<field name="product_qty">2</field>
|
220
|
+
<field name="product_uom" ref="uom.product_uom_unit" />
|
221
|
+
<field name="price_unit">50.00</field>
|
222
|
+
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
223
|
+
<field
|
224
|
+
name="fiscal_operation_line_id"
|
225
|
+
ref="l10n_br_fiscal.fo_compras_compras"
|
226
|
+
/>
|
227
|
+
<field name="date_planned" eval="time.strftime('%Y-%m-%d')" />
|
228
|
+
</record>
|
229
|
+
|
230
|
+
<function model="purchase.order.line" name="_onchange_product_id_fiscal">
|
231
|
+
<value eval="[ref('main_company-purchase_line_4_2')]" />
|
232
|
+
</function>
|
233
|
+
|
234
|
+
<!-- Caso do Pedido com o Partner que tem um Contato com um Endereço de Entrega
|
235
|
+
a Fatura é criada com o Partner do Pedido -->
|
236
|
+
<record id="main_company-purchase_5" model="purchase.order">
|
237
|
+
<field
|
238
|
+
name="name"
|
239
|
+
>l10n_br_purchase - Partner que tem um Endereço de Entrega</field>
|
240
|
+
<field name="partner_id" ref="l10n_br_base.res_partner_cliente2_sp" />
|
241
|
+
<field name="state">draft</field>
|
242
|
+
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
243
|
+
<field name="user_id" ref="base.user_admin" />
|
244
|
+
<field name="company_id" ref="base.main_company" />
|
245
|
+
</record>
|
246
|
+
|
247
|
+
<function model="purchase.order" name="_onchange_fiscal_operation_id">
|
248
|
+
<value eval="[ref('main_company-purchase_5')]" />
|
249
|
+
</function>
|
250
|
+
|
251
|
+
<record id="main_company-purchase_line_5_1" model="purchase.order.line">
|
252
|
+
<field name="order_id" ref="main_company-purchase_5" />
|
253
|
+
<field name="name">Office Chair Black</field>
|
254
|
+
<field name="product_id" ref="product.product_product_12" />
|
255
|
+
<field name="product_qty">4</field>
|
256
|
+
<field name="product_uom" ref="uom.product_uom_unit" />
|
257
|
+
<!-- Apesar do Preço ser defindo aqui o _onchange_product_id_fiscal altera o valor -->
|
258
|
+
<field name="price_unit">25.0</field>
|
259
|
+
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
260
|
+
<field
|
261
|
+
name="fiscal_operation_line_id"
|
262
|
+
ref="l10n_br_fiscal.fo_compras_compras"
|
263
|
+
/>
|
264
|
+
<field name="date_planned" eval="time.strftime('%Y-%m-%d')" />
|
265
|
+
</record>
|
266
|
+
|
267
|
+
<function model="purchase.order.line" name="_onchange_product_id_fiscal">
|
268
|
+
<value eval="[ref('main_company-purchase_line_3_1')]" />
|
269
|
+
</function>
|
270
|
+
|
271
|
+
<record id="main_company-purchase_line_5_2" model="purchase.order.line">
|
272
|
+
<field name="order_id" ref="main_company-purchase_5" />
|
273
|
+
<field name="name">Drawer Black</field>
|
274
|
+
<field name="product_id" ref="product.product_product_16" />
|
275
|
+
<field name="product_qty">2</field>
|
276
|
+
<field name="product_uom" ref="uom.product_uom_unit" />
|
277
|
+
<field name="price_unit">50.00</field>
|
278
|
+
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_compras" />
|
279
|
+
<field
|
280
|
+
name="fiscal_operation_line_id"
|
281
|
+
ref="l10n_br_fiscal.fo_compras_compras"
|
282
|
+
/>
|
283
|
+
<field name="date_planned" eval="time.strftime('%Y-%m-%d')" />
|
284
|
+
</record>
|
285
|
+
|
286
|
+
<function model="purchase.order.line" name="_onchange_product_id_fiscal">
|
287
|
+
<value eval="[ref('main_company-purchase_line_5_2')]" />
|
288
|
+
</function>
|
289
|
+
|
58
290
|
<!-- Empresa Lucro Presumido -->
|
59
291
|
<!-- Purchase Order with only products test -->
|
60
292
|
<record id="lp_po_only_products" model="purchase.order">
|
@@ -426,6 +426,16 @@ msgstr ""
|
|
426
426
|
msgid "Display Name"
|
427
427
|
msgstr ""
|
428
428
|
|
429
|
+
#. module: l10n_br_purchase
|
430
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__key_check_digit
|
431
|
+
msgid "Document Key Check Digit"
|
432
|
+
msgstr ""
|
433
|
+
|
434
|
+
#. module: l10n_br_purchase
|
435
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__key_random_code
|
436
|
+
msgid "Document Key Random Code"
|
437
|
+
msgstr ""
|
438
|
+
|
429
439
|
#. module: l10n_br_purchase
|
430
440
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__document_number
|
431
441
|
msgid "Document Number"
|
@@ -542,6 +552,7 @@ msgstr ""
|
|
542
552
|
|
543
553
|
#. module: l10n_br_purchase
|
544
554
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__fiscal_type
|
555
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__operation_fiscal_type
|
545
556
|
msgid "Fiscal Type"
|
546
557
|
msgstr ""
|
547
558
|
|
@@ -1082,6 +1093,21 @@ msgstr ""
|
|
1082
1093
|
msgid "Insurance"
|
1083
1094
|
msgstr ""
|
1084
1095
|
|
1096
|
+
#. module: l10n_br_purchase
|
1097
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__insurance_endorsement
|
1098
|
+
msgid "Insurance Endorsement"
|
1099
|
+
msgstr ""
|
1100
|
+
|
1101
|
+
#. module: l10n_br_purchase
|
1102
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__insurance_policy
|
1103
|
+
msgid "Insurance Policy"
|
1104
|
+
msgstr ""
|
1105
|
+
|
1106
|
+
#. module: l10n_br_purchase
|
1107
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__partner_insurance_id
|
1108
|
+
msgid "Insurance Provider"
|
1109
|
+
msgstr ""
|
1110
|
+
|
1085
1111
|
#. module: l10n_br_purchase
|
1086
1112
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__amount_insurance_value
|
1087
1113
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__insurance_value
|
@@ -1360,6 +1386,11 @@ msgstr ""
|
|
1360
1386
|
msgid "Partner Order Line (nItemPed)"
|
1361
1387
|
msgstr ""
|
1362
1388
|
|
1389
|
+
#. module: l10n_br_purchase
|
1390
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__p_devol
|
1391
|
+
msgid "Percentual de mercadoria devolvida"
|
1392
|
+
msgstr ""
|
1393
|
+
|
1363
1394
|
#. module: l10n_br_purchase
|
1364
1395
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__product_id
|
1365
1396
|
msgid "Product"
|
@@ -1415,6 +1446,16 @@ msgstr ""
|
|
1415
1446
|
msgid "Razão Social"
|
1416
1447
|
msgstr ""
|
1417
1448
|
|
1449
|
+
#. module: l10n_br_purchase
|
1450
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__partner_receivering_id
|
1451
|
+
msgid "Receiver Address"
|
1452
|
+
msgstr ""
|
1453
|
+
|
1454
|
+
#. module: l10n_br_purchase
|
1455
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__partner_sendering_id
|
1456
|
+
msgid "Sender Address"
|
1457
|
+
msgstr ""
|
1458
|
+
|
1418
1459
|
#. module: l10n_br_purchase
|
1419
1460
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__document_serie
|
1420
1461
|
msgid "Serie Number"
|
@@ -1430,6 +1471,11 @@ msgstr ""
|
|
1430
1471
|
msgid "Serviços"
|
1431
1472
|
msgstr ""
|
1432
1473
|
|
1474
|
+
#. module: l10n_br_purchase
|
1475
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__partner_shippering_id
|
1476
|
+
msgid "Shipper Address"
|
1477
|
+
msgstr ""
|
1478
|
+
|
1433
1479
|
#. module: l10n_br_purchase
|
1434
1480
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__icmssn_range_id
|
1435
1481
|
msgid "Simplified Range Tax"
|
@@ -1582,6 +1628,50 @@ msgstr ""
|
|
1582
1628
|
msgid "Taxes"
|
1583
1629
|
msgstr ""
|
1584
1630
|
|
1631
|
+
#. module: l10n_br_purchase
|
1632
|
+
#: model:ir.model.fields,help:l10n_br_purchase.field_purchase_order__insurance_endorsement
|
1633
|
+
msgid ""
|
1634
|
+
"The endorsement number associated with the insurance policy, indicating any "
|
1635
|
+
"modifications or adjustments to the coverage. This field is primarily used "
|
1636
|
+
"when issuing the CT-e."
|
1637
|
+
msgstr ""
|
1638
|
+
|
1639
|
+
#. module: l10n_br_purchase
|
1640
|
+
#: model:ir.model.fields,help:l10n_br_purchase.field_purchase_order__insurance_policy
|
1641
|
+
msgid ""
|
1642
|
+
"The insurance policy number covering the transported goods. This field is "
|
1643
|
+
"primarily used when issuing the CT-e."
|
1644
|
+
msgstr ""
|
1645
|
+
|
1646
|
+
#. module: l10n_br_purchase
|
1647
|
+
#: model:ir.model.fields,help:l10n_br_purchase.field_purchase_order__partner_receivering_id
|
1648
|
+
msgid ""
|
1649
|
+
"The intermediary partner who receives the goods before they reach the final "
|
1650
|
+
"recipient, often involved in verification, temporary storage, or further "
|
1651
|
+
"distribution. This field is primarily used when issuing the CT-e."
|
1652
|
+
msgstr ""
|
1653
|
+
|
1654
|
+
#. module: l10n_br_purchase
|
1655
|
+
#: model:ir.model.fields,help:l10n_br_purchase.field_purchase_order__partner_insurance_id
|
1656
|
+
msgid ""
|
1657
|
+
"The partner providing insurance coverage for the transported goods. This "
|
1658
|
+
"field is primarily used when issuing the CT-e."
|
1659
|
+
msgstr ""
|
1660
|
+
|
1661
|
+
#. module: l10n_br_purchase
|
1662
|
+
#: model:ir.model.fields,help:l10n_br_purchase.field_purchase_order__partner_shippering_id
|
1663
|
+
msgid ""
|
1664
|
+
"The partner responsible for delivering the cargo to the carrier, if not done"
|
1665
|
+
" directly by the sender. This field is primarily used when issuing the CT-e."
|
1666
|
+
msgstr ""
|
1667
|
+
|
1668
|
+
#. module: l10n_br_purchase
|
1669
|
+
#: model:ir.model.fields,help:l10n_br_purchase.field_purchase_order__partner_sendering_id
|
1670
|
+
msgid ""
|
1671
|
+
"The partner responsible for sending the goods, typically the issuer of the "
|
1672
|
+
"document. This field is primarily used when issuing the CT-e."
|
1673
|
+
msgstr ""
|
1674
|
+
|
1585
1675
|
#. module: l10n_br_purchase
|
1586
1676
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_report__fiscal_type
|
1587
1677
|
msgid "Tipo Fiscal"
|
@@ -1592,6 +1682,11 @@ msgstr ""
|
|
1592
1682
|
msgid "Total"
|
1593
1683
|
msgstr ""
|
1594
1684
|
|
1685
|
+
#. module: l10n_br_purchase
|
1686
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__total_weight
|
1687
|
+
msgid "Total Weight"
|
1688
|
+
msgstr ""
|
1689
|
+
|
1595
1690
|
#. module: l10n_br_purchase
|
1596
1691
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_report__total_with_taxes
|
1597
1692
|
msgid "Total With Taxes"
|
@@ -1634,6 +1729,11 @@ msgstr ""
|
|
1634
1729
|
msgid "Valor do ICMS Próprio do Substituto cobrado em operação anterior"
|
1635
1730
|
msgstr ""
|
1636
1731
|
|
1732
|
+
#. module: l10n_br_purchase
|
1733
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__ipi_devol_value
|
1734
|
+
msgid "Valor do IPI devolvido"
|
1735
|
+
msgstr ""
|
1736
|
+
|
1637
1737
|
#. module: l10n_br_purchase
|
1638
1738
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__partner_id
|
1639
1739
|
msgid "Vendor"
|
@@ -7,7 +7,7 @@ msgstr ""
|
|
7
7
|
"Project-Id-Version: Odoo Server 12.0\n"
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
9
9
|
"POT-Creation-Date: 2021-02-02 02:23+0000\n"
|
10
|
-
"PO-Revision-Date: 2024-
|
10
|
+
"PO-Revision-Date: 2024-12-21 15:52+0000\n"
|
11
11
|
"Last-Translator: Marcel Savegnago <marcel.savegnago@gmail.com>\n"
|
12
12
|
"Language-Team: \n"
|
13
13
|
"Language: pt_BR\n"
|
@@ -416,7 +416,7 @@ msgstr "Despesas Aduaneiras"
|
|
416
416
|
#. module: l10n_br_purchase
|
417
417
|
#: model_terms:ir.ui.view,arch_db:l10n_br_purchase.report_purchaseorder_document_l10n_br_purchase
|
418
418
|
msgid "Discount"
|
419
|
-
msgstr ""
|
419
|
+
msgstr "Desconto"
|
420
420
|
|
421
421
|
#. module: l10n_br_purchase
|
422
422
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__discount_value
|
@@ -432,6 +432,16 @@ msgstr "Valor do Desconto"
|
|
432
432
|
msgid "Display Name"
|
433
433
|
msgstr "Nome Exibido"
|
434
434
|
|
435
|
+
#. module: l10n_br_purchase
|
436
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__key_check_digit
|
437
|
+
msgid "Document Key Check Digit"
|
438
|
+
msgstr "Dígito de Verificação da Chave do Documento"
|
439
|
+
|
440
|
+
#. module: l10n_br_purchase
|
441
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__key_random_code
|
442
|
+
msgid "Document Key Random Code"
|
443
|
+
msgstr "Código Aleatório da Chave do Documento"
|
444
|
+
|
435
445
|
#. module: l10n_br_purchase
|
436
446
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__document_number
|
437
447
|
msgid "Document Number"
|
@@ -450,7 +460,7 @@ msgstr "Tipo de Documento"
|
|
450
460
|
#. module: l10n_br_purchase
|
451
461
|
#: model:ir.model.fields.selection,name:l10n_br_purchase.selection__purchase_report__fiscal_type__02
|
452
462
|
msgid "Embalagem"
|
453
|
-
msgstr ""
|
463
|
+
msgstr "Embalagem"
|
454
464
|
|
455
465
|
#. module: l10n_br_purchase
|
456
466
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__estimate_tax
|
@@ -548,6 +558,7 @@ msgstr "Impostos Fiscais"
|
|
548
558
|
|
549
559
|
#. module: l10n_br_purchase
|
550
560
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__fiscal_type
|
561
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__operation_fiscal_type
|
551
562
|
msgid "Fiscal Type"
|
552
563
|
msgstr "Tipo Fiscal"
|
553
564
|
|
@@ -571,12 +582,12 @@ msgstr "Valor do Frete"
|
|
571
582
|
#. module: l10n_br_purchase
|
572
583
|
#: model_terms:ir.ui.view,arch_db:l10n_br_purchase.report_purchaseorder_document_l10n_br_purchase
|
573
584
|
msgid "Gross"
|
574
|
-
msgstr ""
|
585
|
+
msgstr "Bruto"
|
575
586
|
|
576
587
|
#. module: l10n_br_purchase
|
577
588
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__price_gross
|
578
589
|
msgid "Gross Product/Service Amount"
|
579
|
-
msgstr ""
|
590
|
+
msgstr "Valor Bruto do Produto/Serviço"
|
580
591
|
|
581
592
|
#. module: l10n_br_purchase
|
582
593
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__icms_percent
|
@@ -1092,6 +1103,21 @@ msgstr ""
|
|
1092
1103
|
msgid "Insurance"
|
1093
1104
|
msgstr "Seguro"
|
1094
1105
|
|
1106
|
+
#. module: l10n_br_purchase
|
1107
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__insurance_endorsement
|
1108
|
+
msgid "Insurance Endorsement"
|
1109
|
+
msgstr "Averbação do Seguro"
|
1110
|
+
|
1111
|
+
#. module: l10n_br_purchase
|
1112
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__insurance_policy
|
1113
|
+
msgid "Insurance Policy"
|
1114
|
+
msgstr "Apólice de Seguro"
|
1115
|
+
|
1116
|
+
#. module: l10n_br_purchase
|
1117
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__partner_insurance_id
|
1118
|
+
msgid "Insurance Provider"
|
1119
|
+
msgstr "Provedor do Seguro"
|
1120
|
+
|
1095
1121
|
#. module: l10n_br_purchase
|
1096
1122
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__amount_insurance_value
|
1097
1123
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__insurance_value
|
@@ -1146,17 +1172,17 @@ msgstr "Dado Adicional Fiscal Manual"
|
|
1146
1172
|
#. module: l10n_br_purchase
|
1147
1173
|
#: model:ir.model.fields.selection,name:l10n_br_purchase.selection__purchase_report__fiscal_type__07
|
1148
1174
|
msgid "Material de Uso e Consumo"
|
1149
|
-
msgstr ""
|
1175
|
+
msgstr "Material de Uso e Consumo"
|
1150
1176
|
|
1151
1177
|
#. module: l10n_br_purchase
|
1152
1178
|
#: model:ir.model.fields.selection,name:l10n_br_purchase.selection__purchase_report__fiscal_type__01
|
1153
1179
|
msgid "Matéria-prima"
|
1154
|
-
msgstr ""
|
1180
|
+
msgstr "Matéria-prima"
|
1155
1181
|
|
1156
1182
|
#. module: l10n_br_purchase
|
1157
1183
|
#: model:ir.model.fields.selection,name:l10n_br_purchase.selection__purchase_report__fiscal_type__00
|
1158
1184
|
msgid "Mercadoria para Revenda"
|
1159
|
-
msgstr ""
|
1185
|
+
msgstr "Mercadoria para Revenda"
|
1160
1186
|
|
1161
1187
|
#. module: l10n_br_purchase
|
1162
1188
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__quantity
|
@@ -1371,6 +1397,11 @@ msgstr "Pedido de Parceiro (xPed)"
|
|
1371
1397
|
msgid "Partner Order Line (nItemPed)"
|
1372
1398
|
msgstr "Linha de Pedido do Parceiro (nItemPed)"
|
1373
1399
|
|
1400
|
+
#. module: l10n_br_purchase
|
1401
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__p_devol
|
1402
|
+
msgid "Percentual de mercadoria devolvida"
|
1403
|
+
msgstr ""
|
1404
|
+
|
1374
1405
|
#. module: l10n_br_purchase
|
1375
1406
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__product_id
|
1376
1407
|
msgid "Product"
|
@@ -1384,17 +1415,17 @@ msgstr "Tipo Fiscal do Produto"
|
|
1384
1415
|
#. module: l10n_br_purchase
|
1385
1416
|
#: model:ir.model.fields.selection,name:l10n_br_purchase.selection__purchase_report__fiscal_type__04
|
1386
1417
|
msgid "Produto Acabado"
|
1387
|
-
msgstr ""
|
1418
|
+
msgstr "Produto Acabado"
|
1388
1419
|
|
1389
1420
|
#. module: l10n_br_purchase
|
1390
1421
|
#: model:ir.model.fields.selection,name:l10n_br_purchase.selection__purchase_report__fiscal_type__06
|
1391
1422
|
msgid "Produto Intermediário"
|
1392
|
-
msgstr ""
|
1423
|
+
msgstr "Produto Intermediário"
|
1393
1424
|
|
1394
1425
|
#. module: l10n_br_purchase
|
1395
1426
|
#: model:ir.model.fields.selection,name:l10n_br_purchase.selection__purchase_report__fiscal_type__03
|
1396
1427
|
msgid "Produto em Processo"
|
1397
|
-
msgstr ""
|
1428
|
+
msgstr "Produto em Processo"
|
1398
1429
|
|
1399
1430
|
#. module: l10n_br_purchase
|
1400
1431
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__partner_is_public_entity
|
@@ -1426,6 +1457,16 @@ msgstr "Compras"
|
|
1426
1457
|
msgid "Razão Social"
|
1427
1458
|
msgstr ""
|
1428
1459
|
|
1460
|
+
#. module: l10n_br_purchase
|
1461
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__partner_receivering_id
|
1462
|
+
msgid "Receiver Address"
|
1463
|
+
msgstr "Endereço do Recebedor"
|
1464
|
+
|
1465
|
+
#. module: l10n_br_purchase
|
1466
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__partner_sendering_id
|
1467
|
+
msgid "Sender Address"
|
1468
|
+
msgstr "Endereço do Remetente"
|
1469
|
+
|
1429
1470
|
#. module: l10n_br_purchase
|
1430
1471
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__document_serie
|
1431
1472
|
msgid "Serie Number"
|
@@ -1441,6 +1482,11 @@ msgstr "Tipo de Serviço LC 166"
|
|
1441
1482
|
msgid "Serviços"
|
1442
1483
|
msgstr ""
|
1443
1484
|
|
1485
|
+
#. module: l10n_br_purchase
|
1486
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__partner_shippering_id
|
1487
|
+
msgid "Shipper Address"
|
1488
|
+
msgstr "Endereço do Expedidor"
|
1489
|
+
|
1444
1490
|
#. module: l10n_br_purchase
|
1445
1491
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__icmssn_range_id
|
1446
1492
|
msgid "Simplified Range Tax"
|
@@ -1593,6 +1639,66 @@ msgstr "Imposto Retido"
|
|
1593
1639
|
msgid "Taxes"
|
1594
1640
|
msgstr "Impostos"
|
1595
1641
|
|
1642
|
+
#. module: l10n_br_purchase
|
1643
|
+
#: model:ir.model.fields,help:l10n_br_purchase.field_purchase_order__insurance_endorsement
|
1644
|
+
msgid ""
|
1645
|
+
"The endorsement number associated with the insurance policy, indicating any "
|
1646
|
+
"modifications or adjustments to the coverage. This field is primarily used "
|
1647
|
+
"when issuing the CT-e."
|
1648
|
+
msgstr ""
|
1649
|
+
"O número da averbação associado à apólice de seguro, indicando quaisquer "
|
1650
|
+
"modificações ou ajustes na cobertura. Este campo é usado principalmente ao "
|
1651
|
+
"emitir o CT-e."
|
1652
|
+
|
1653
|
+
#. module: l10n_br_purchase
|
1654
|
+
#: model:ir.model.fields,help:l10n_br_purchase.field_purchase_order__insurance_policy
|
1655
|
+
msgid ""
|
1656
|
+
"The insurance policy number covering the transported goods. This field is "
|
1657
|
+
"primarily used when issuing the CT-e."
|
1658
|
+
msgstr ""
|
1659
|
+
"O número da apólice de seguro que cobre as mercadorias transportadas. Este "
|
1660
|
+
"campo é usado principalmente ao emitir o CT-e."
|
1661
|
+
|
1662
|
+
#. module: l10n_br_purchase
|
1663
|
+
#: model:ir.model.fields,help:l10n_br_purchase.field_purchase_order__partner_receivering_id
|
1664
|
+
msgid ""
|
1665
|
+
"The intermediary partner who receives the goods before they reach the final "
|
1666
|
+
"recipient, often involved in verification, temporary storage, or further "
|
1667
|
+
"distribution. This field is primarily used when issuing the CT-e."
|
1668
|
+
msgstr ""
|
1669
|
+
"O parceiro intermediário que recebe as mercadorias antes que elas cheguem ao "
|
1670
|
+
"destinatário final, frequentemente envolvido em verificação, armazenamento "
|
1671
|
+
"temporário ou distribuição posterior. Este campo é usado principalmente ao "
|
1672
|
+
"emitir o CT-e."
|
1673
|
+
|
1674
|
+
#. module: l10n_br_purchase
|
1675
|
+
#: model:ir.model.fields,help:l10n_br_purchase.field_purchase_order__partner_insurance_id
|
1676
|
+
msgid ""
|
1677
|
+
"The partner providing insurance coverage for the transported goods. This "
|
1678
|
+
"field is primarily used when issuing the CT-e."
|
1679
|
+
msgstr ""
|
1680
|
+
"O parceiro que fornece cobertura de seguro para as mercadorias "
|
1681
|
+
"transportadas. Este campo é usado principalmente ao emitir o CT-e."
|
1682
|
+
|
1683
|
+
#. module: l10n_br_purchase
|
1684
|
+
#: model:ir.model.fields,help:l10n_br_purchase.field_purchase_order__partner_shippering_id
|
1685
|
+
msgid ""
|
1686
|
+
"The partner responsible for delivering the cargo to the carrier, if not done "
|
1687
|
+
"directly by the sender. This field is primarily used when issuing the CT-e."
|
1688
|
+
msgstr ""
|
1689
|
+
"O parceiro responsável pela entrega da carga ao transportador, caso não seja "
|
1690
|
+
"feita diretamente pelo remetente. Este campo é usado principalmente na "
|
1691
|
+
"emissão do CT-e."
|
1692
|
+
|
1693
|
+
#. module: l10n_br_purchase
|
1694
|
+
#: model:ir.model.fields,help:l10n_br_purchase.field_purchase_order__partner_sendering_id
|
1695
|
+
msgid ""
|
1696
|
+
"The partner responsible for sending the goods, typically the issuer of the "
|
1697
|
+
"document. This field is primarily used when issuing the CT-e."
|
1698
|
+
msgstr ""
|
1699
|
+
"O parceiro responsável pelo envio das mercadorias, normalmente o emissor do "
|
1700
|
+
"documento. Este campo é usado principalmente ao emitir o CT-e."
|
1701
|
+
|
1596
1702
|
#. module: l10n_br_purchase
|
1597
1703
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_report__fiscal_type
|
1598
1704
|
msgid "Tipo Fiscal"
|
@@ -1603,6 +1709,11 @@ msgstr ""
|
|
1603
1709
|
msgid "Total"
|
1604
1710
|
msgstr "Total"
|
1605
1711
|
|
1712
|
+
#. module: l10n_br_purchase
|
1713
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__total_weight
|
1714
|
+
msgid "Total Weight"
|
1715
|
+
msgstr "Peso Total"
|
1716
|
+
|
1606
1717
|
#. module: l10n_br_purchase
|
1607
1718
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_report__total_with_taxes
|
1608
1719
|
msgid "Total With Taxes"
|
@@ -1647,6 +1758,11 @@ msgstr "Usado em documentos fiscais"
|
|
1647
1758
|
msgid "Valor do ICMS Próprio do Substituto cobrado em operação anterior"
|
1648
1759
|
msgstr "Valor do ICMS Próprio do Substituto cobrado em operação anterior"
|
1649
1760
|
|
1761
|
+
#. module: l10n_br_purchase
|
1762
|
+
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order_line__ipi_devol_value
|
1763
|
+
msgid "Valor do IPI devolvido"
|
1764
|
+
msgstr ""
|
1765
|
+
|
1650
1766
|
#. module: l10n_br_purchase
|
1651
1767
|
#: model:ir.model.fields,field_description:l10n_br_purchase.field_purchase_order__partner_id
|
1652
1768
|
msgid "Vendor"
|
@@ -1660,6 +1776,13 @@ msgstr ""
|
|
1660
1776
|
"Você pode encontrar um fornecedor por seu nome, TIN, e-mail ou referência "
|
1661
1777
|
"interna."
|
1662
1778
|
|
1779
|
+
#~ msgid ""
|
1780
|
+
#~ "Actor who receives the goods. He is considered an "
|
1781
|
+
#~ "intermediary between the issuer and the final recipient."
|
1782
|
+
#~ msgstr ""
|
1783
|
+
#~ "Ator que recebe a mercadoria. Ele é considerado um "
|
1784
|
+
#~ "intermediário entre o emissor e o destinatário final."
|
1785
|
+
|
1663
1786
|
#~ msgid "(-) Amount Tax Withholding"
|
1664
1787
|
#~ msgstr "(-) Valor Retido na Fonte"
|
1665
1788
|
|
@@ -108,11 +108,31 @@ class PurchaseOrder(models.Model):
|
|
108
108
|
invoice_vals = super()._prepare_invoice()
|
109
109
|
if self.fiscal_operation_id:
|
110
110
|
# O caso Brasil se caracteriza por ter a Operação Fiscal
|
111
|
+
document_type_id = (
|
112
|
+
self.order_line[0].fiscal_operation_line_id.document_type_id.id
|
113
|
+
if self.order_line
|
114
|
+
and self.order_line[0].fiscal_operation_line_id.document_type_id
|
115
|
+
else (
|
116
|
+
self.fiscal_operation_id.document_type_ids[0].document_type_id.id
|
117
|
+
if self.fiscal_operation_id
|
118
|
+
and self.fiscal_operation_id.document_type_ids
|
119
|
+
else self.company_id.document_type_id.id
|
120
|
+
)
|
121
|
+
)
|
111
122
|
invoice_vals.update(
|
112
123
|
{
|
113
124
|
"ind_final": self.ind_final,
|
114
125
|
"fiscal_operation_id": self.fiscal_operation_id.id,
|
115
|
-
"document_type_id":
|
126
|
+
"document_type_id": document_type_id,
|
116
127
|
}
|
117
128
|
)
|
118
129
|
return invoice_vals
|
130
|
+
|
131
|
+
def _get_fiscal_partner(self):
|
132
|
+
self.ensure_one()
|
133
|
+
partner = super()._get_fiscal_partner()
|
134
|
+
if partner.id != partner.address_get(["invoice"]).get("invoice"):
|
135
|
+
partner = self.env["res.partner"].browse(
|
136
|
+
partner.address_get(["invoice"]).get("invoice")
|
137
|
+
)
|
138
|
+
return partner
|
@@ -145,3 +145,12 @@ class PurchaseOrderLine(models.Model):
|
|
145
145
|
values.update(fiscal_values)
|
146
146
|
|
147
147
|
return values
|
148
|
+
|
149
|
+
def _get_fiscal_partner(self):
|
150
|
+
self.ensure_one()
|
151
|
+
partner = super()._get_fiscal_partner()
|
152
|
+
if partner.id != partner.address_get(["invoice"]).get("invoice"):
|
153
|
+
partner = self.env["res.partner"].browse(
|
154
|
+
partner.address_get(["invoice"]).get("invoice")
|
155
|
+
)
|
156
|
+
return partner
|
@@ -103,8 +103,8 @@ class PurchaseReport(models.Model):
|
|
103
103
|
, SUM(l.freight_value) as freight_value
|
104
104
|
, SUM(l.insurance_value) as insurance_value
|
105
105
|
, SUM(l.other_value) as other_value
|
106
|
-
, SUM(l.price_unit / COALESCE(NULLIF(po.currency_rate, 0), 1.0)
|
107
|
-
)::decimal(16,2)
|
106
|
+
, SUM(l.price_unit / COALESCE(NULLIF(po.currency_rate, 0), 1.0)
|
107
|
+
* l.product_qty )::decimal(16,2)
|
108
108
|
+ SUM(CASE WHEN l.ipi_value IS NULL THEN
|
109
109
|
0.00 ELSE l.ipi_value END)
|
110
110
|
+ SUM(CASE WHEN l.icmsst_value IS NULL THEN
|
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
368
368
|
!! changes will be overwritten. !!
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
370
|
-
!! source digest: sha256:
|
370
|
+
!! source digest: sha256:5a3cc684f53dad103a41ba5b0db18ed97b6f0a19b6e47055fa74631858cd4023
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
372
372
|
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_purchase"><img alt="OCA/l10n-brazil" src="https://img.shields.io/badge/github-OCA%2Fl10n--brazil-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-brazil-14-0/l10n-brazil-14-0-l10n_br_purchase"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-brazil&target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
373
373
|
<p>Este módulo integra a parte fiscal do módulo <tt class="docutils literal">l10n_br_fiscal</tt> com o módulo de compra purchase do Odoo. O módulo permite o cálculo dos impostos brasileiros já no pedido de compra e propaga a operação fiscal até a nota fiscal de compra, deixando ela com a tributação mais correta possível para seu financeiro (sendo que vocẽ poderia também importar o XML da nota depois).</p>
|
@@ -262,17 +262,20 @@ class L10nBrPurchaseBaseTest(SavepointCase):
|
|
262
262
|
self.assertEqual(
|
263
263
|
order.amount_freight_value,
|
264
264
|
invoice.amount_freight_value,
|
265
|
-
"Error field Amount Freight in Invoice are different from
|
265
|
+
"Error field Amount Freight in Invoice are different from "
|
266
|
+
"Purchase Order.",
|
266
267
|
)
|
267
268
|
self.assertEqual(
|
268
269
|
order.amount_insurance_value,
|
269
270
|
invoice.amount_insurance_value,
|
270
|
-
"Error field Amount Insurance in Invoice are different from
|
271
|
+
"Error field Amount Insurance in Invoice are different from "
|
272
|
+
"Purchase Order.",
|
271
273
|
)
|
272
274
|
self.assertEqual(
|
273
275
|
order.amount_other_value,
|
274
276
|
invoice.amount_other_value,
|
275
|
-
"Error field Amount Other Values in Invoice are different from
|
277
|
+
"Error field Amount Other Values in Invoice are different from "
|
278
|
+
"Purchase Order.",
|
276
279
|
)
|
277
280
|
|
278
281
|
for line in invoice.invoice_line_ids:
|
@@ -590,7 +593,9 @@ class L10nBrPurchaseBaseTest(SavepointCase):
|
|
590
593
|
)
|
591
594
|
|
592
595
|
def test_compatible_with_international_case(self):
|
593
|
-
"""
|
596
|
+
"""
|
597
|
+
Test of compatible with international case, create Invoice but not for Brazil.
|
598
|
+
"""
|
594
599
|
po_international = self.env.ref("purchase.purchase_order_1")
|
595
600
|
self._run_purchase_order_onchanges(po_international)
|
596
601
|
for line in po_international.order_line:
|
@@ -604,3 +609,140 @@ class L10nBrPurchaseBaseTest(SavepointCase):
|
|
604
609
|
invoice.fiscal_document_id,
|
605
610
|
"International case should not has Fiscal Document.",
|
606
611
|
)
|
612
|
+
|
613
|
+
def test_purchase_with_partner_to_invoice(self):
|
614
|
+
"""
|
615
|
+
Test Purchase Order with different Partner to Invoice.
|
616
|
+
"""
|
617
|
+
# Caso do Pedido criado com um Partner que possui um Partner to Invoice
|
618
|
+
purchase = self.env.ref("l10n_br_purchase.main_company-purchase_2")
|
619
|
+
self._run_purchase_order_onchanges(purchase)
|
620
|
+
for line in purchase.order_line:
|
621
|
+
self._run_purchase_line_onchanges(line)
|
622
|
+
purchase.with_context(tracking_disable=True).button_confirm()
|
623
|
+
self.assertEqual(purchase.state, "purchase", "Error to confirm Purchase Order.")
|
624
|
+
purchase.action_create_invoice()
|
625
|
+
for invoice in purchase.invoice_ids:
|
626
|
+
self.assertTrue(
|
627
|
+
invoice.fiscal_document_id,
|
628
|
+
"Fiscal Document missing for Purchase.",
|
629
|
+
)
|
630
|
+
partner_invoice = self.env["res.partner"].browse(
|
631
|
+
purchase.partner_id.address_get(["invoice"]).get("invoice")
|
632
|
+
)
|
633
|
+
self.assertEqual(
|
634
|
+
invoice.partner_id,
|
635
|
+
partner_invoice,
|
636
|
+
"The Invoice should be created with the Partner to Invoice",
|
637
|
+
)
|
638
|
+
self.assertNotEqual(
|
639
|
+
invoice.partner_id,
|
640
|
+
purchase.partner_id,
|
641
|
+
"The Invoice should not be created with the Partner of Purchase.",
|
642
|
+
)
|
643
|
+
|
644
|
+
# TODO: Deveria criar a Fatura com o Endereço de Entrega
|
645
|
+
# partner_shipping_id preenchido com o Partner do Pedido
|
646
|
+
# de Compra? Quando criado pelo Picking o campo é preenchido.
|
647
|
+
|
648
|
+
# self.assertEqual(
|
649
|
+
# invoice.partner_shipping_id,
|
650
|
+
# purchase.partner_id,
|
651
|
+
# "The Invoice should be created with Partner to Shipping.",
|
652
|
+
# )
|
653
|
+
|
654
|
+
purchase_2 = self.env.ref("l10n_br_purchase.main_company-purchase_3")
|
655
|
+
self._run_purchase_order_onchanges(purchase_2)
|
656
|
+
for line in purchase_2.order_line:
|
657
|
+
self._run_purchase_line_onchanges(line)
|
658
|
+
purchase_2.with_context(tracking_disable=True).button_confirm()
|
659
|
+
self.assertEqual(
|
660
|
+
purchase_2.state, "purchase", "Error to confirm Purchase Order."
|
661
|
+
)
|
662
|
+
purchase_2.action_create_invoice()
|
663
|
+
for invoice in purchase_2.invoice_ids:
|
664
|
+
self.assertTrue(
|
665
|
+
invoice.fiscal_document_id,
|
666
|
+
"Fiscal Document missing for Purchase.",
|
667
|
+
)
|
668
|
+
self.assertEqual(
|
669
|
+
invoice.partner_id,
|
670
|
+
purchase_2.partner_id,
|
671
|
+
"The Partner in Purchase and Invoice should be the same.",
|
672
|
+
)
|
673
|
+
# O partner_shipping_id aqui também é vazio, deveria ser preenchido?
|
674
|
+
# self.assertEqual(
|
675
|
+
# invoice.partner_shipping_id,
|
676
|
+
# purchase_2.partner_id,
|
677
|
+
# "The Invoice should be created with Partner to Shipping.",
|
678
|
+
# )
|
679
|
+
|
680
|
+
def test_purchase_with_partner_to_shipping(self):
|
681
|
+
"""Test brazilian Purchase Order with Partner to Shipping."""
|
682
|
+
|
683
|
+
# Caso do Pedido criado com o Contato de Entrega/Partner to Delivery
|
684
|
+
purchase = self.env.ref("l10n_br_purchase.main_company-purchase_4")
|
685
|
+
self._run_purchase_order_onchanges(purchase)
|
686
|
+
for line in purchase.order_line:
|
687
|
+
self._run_purchase_line_onchanges(line)
|
688
|
+
purchase.with_context(tracking_disable=True).button_confirm()
|
689
|
+
self.assertEqual(purchase.state, "purchase", "Error to confirm Purchase Order.")
|
690
|
+
purchase.action_create_invoice()
|
691
|
+
for invoice in purchase.invoice_ids:
|
692
|
+
self.assertTrue(
|
693
|
+
invoice.fiscal_document_id,
|
694
|
+
"Fiscal Document missing for Purchase.",
|
695
|
+
)
|
696
|
+
# TODO: Campo partner_shipping_id está vazio
|
697
|
+
# deveria estar preenchido?
|
698
|
+
# self.assertEqual(
|
699
|
+
# invoice.partner_shipping_id,
|
700
|
+
# purchase.partner_id,
|
701
|
+
# "The Invoice should be created with the Partner to Shipping",
|
702
|
+
# )
|
703
|
+
self.assertNotEqual(
|
704
|
+
invoice.partner_id,
|
705
|
+
purchase.partner_id,
|
706
|
+
"The Invoice should not be created with the Partner of Purchase.",
|
707
|
+
)
|
708
|
+
# TODO: Deveria criar a Fatura com o Endereço de Entrega
|
709
|
+
# partner_shipping_id preenchido com o Partner do Pedido
|
710
|
+
# de Compra? Quando criado pelo Picking o campo é preenchido.
|
711
|
+
|
712
|
+
# self.assertEqual(
|
713
|
+
# invoice.partner_shipping_id,
|
714
|
+
# purchase.partner_id,
|
715
|
+
# "The Invoice should be created with Partner to Shipping.",
|
716
|
+
# )
|
717
|
+
|
718
|
+
# Caso do Pedido criado com o Partner que tem um Contato de Entrega
|
719
|
+
purchase_2 = self.env.ref("l10n_br_purchase.main_company-purchase_5")
|
720
|
+
self._run_purchase_order_onchanges(purchase_2)
|
721
|
+
for line in purchase_2.order_line:
|
722
|
+
self._run_purchase_line_onchanges(line)
|
723
|
+
purchase_2.with_context(tracking_disable=True).button_confirm()
|
724
|
+
self.assertEqual(
|
725
|
+
purchase_2.state, "purchase", "Error to confirm Purchase Order."
|
726
|
+
)
|
727
|
+
purchase_2.action_create_invoice()
|
728
|
+
|
729
|
+
for invoice in purchase_2.invoice_ids:
|
730
|
+
self.assertTrue(
|
731
|
+
invoice.fiscal_document_id,
|
732
|
+
"Fiscal Document missing for Purchase.",
|
733
|
+
)
|
734
|
+
self.assertEqual(
|
735
|
+
invoice.partner_id,
|
736
|
+
purchase_2.partner_id,
|
737
|
+
"The Partner in Purchase and Invoice should be the same.",
|
738
|
+
)
|
739
|
+
# TODO: O partner_shipping_id aqui também é vazio,
|
740
|
+
# deveria ser preenchido?
|
741
|
+
# partner_delivery = self.env["res.partner"].browse(
|
742
|
+
# purchase.partner_id.address_get(["delivery"]).get("delivery")
|
743
|
+
# )
|
744
|
+
# self.assertEqual(
|
745
|
+
# invoice.partner_shipping_id,
|
746
|
+
# partner_delivery,
|
747
|
+
# "The Invoice should be created with Partner to Shipping.",
|
748
|
+
# )
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: odoo14-addon-l10n_br_purchase
|
3
|
-
Version: 14.0.3.
|
3
|
+
Version: 14.0.3.11.1
|
4
4
|
Summary: Brazilian Localization Purchase
|
5
5
|
Home-page: https://github.com/OCA/l10n-brazil
|
6
6
|
Author: Akretion, Odoo Community Association (OCA)
|
@@ -12,7 +12,7 @@ Classifier: Framework :: Odoo :: 14.0
|
|
12
12
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
13
13
|
Requires-Python: >=3.6
|
14
14
|
Requires-Dist: odoo14-addon-l10n-br-account
|
15
|
-
Requires-Dist: odoo
|
15
|
+
Requires-Dist: odoo<14.1dev,>=14.0a
|
16
16
|
|
17
17
|
===============================
|
18
18
|
Brazilian Localization Purchase
|
@@ -23,7 +23,7 @@ Brazilian Localization Purchase
|
|
23
23
|
!! This file is generated by oca-gen-addon-readme !!
|
24
24
|
!! changes will be overwritten. !!
|
25
25
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
26
|
-
!! source digest: sha256:
|
26
|
+
!! source digest: sha256:5a3cc684f53dad103a41ba5b0db18ed97b6f0a19b6e47055fa74631858cd4023
|
27
27
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
28
28
|
|
29
29
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
@@ -1,19 +1,19 @@
|
|
1
|
-
odoo/addons/l10n_br_purchase/README.rst,sha256=
|
1
|
+
odoo/addons/l10n_br_purchase/README.rst,sha256=FrO2SeQDGyhCTjRyfXEixTdTTDZrvUkEZeW8tevU-HU,4661
|
2
2
|
odoo/addons/l10n_br_purchase/__init__.py,sha256=otut1R_8C8Cn2BBP2RL7BuAOxh5lmp_IS7y3RRVaB9Q,189
|
3
|
-
odoo/addons/l10n_br_purchase/__manifest__.py,sha256=
|
3
|
+
odoo/addons/l10n_br_purchase/__manifest__.py,sha256=dhyjw8kyM07CkrtAXkgzeOl2cFF0BeP7Dl3dI6kozsA,984
|
4
4
|
odoo/addons/l10n_br_purchase/hooks.py,sha256=3GN_Du26GiftKrN2hpHc9qLuaVieZiJ43KBgH4w-52I,2276
|
5
5
|
odoo/addons/l10n_br_purchase/data/company.xml,sha256=VWD3A_MPASRZJDTRmXtEFQhg0_pZvGeSvhMdH4OCDz8,251
|
6
6
|
odoo/addons/l10n_br_purchase/demo/company.xml,sha256=vsl1dse3q_o-T6BOF9xH8PhdAWsRosTvsNg_gPQuyoM,435
|
7
7
|
odoo/addons/l10n_br_purchase/demo/fiscal_operation_generic.xml,sha256=u0wELeMZZhPg5L1mzajJgkC9UrY-zhA-45RusIqj1gA,2353
|
8
8
|
odoo/addons/l10n_br_purchase/demo/fiscal_operation_simple.xml,sha256=_6TWFX2mjGQd-CYLUCJ4ut1yfdxN83Ytj6JRkyOe3yE,4478
|
9
|
-
odoo/addons/l10n_br_purchase/demo/l10n_br_purchase.xml,sha256=
|
9
|
+
odoo/addons/l10n_br_purchase/demo/l10n_br_purchase.xml,sha256=pmK4DdTsudsn2f5OnVzacVzPpl0OTHSZQO-3YL-0plY,22659
|
10
10
|
odoo/addons/l10n_br_purchase/demo/product.xml,sha256=G3zWdPH2nD-T6-XnZs8lKLsxhvYmrEWcPe8eMBWkWcw,533
|
11
|
-
odoo/addons/l10n_br_purchase/i18n/l10n_br_purchase.pot,sha256=
|
12
|
-
odoo/addons/l10n_br_purchase/i18n/pt_BR.po,sha256=
|
11
|
+
odoo/addons/l10n_br_purchase/i18n/l10n_br_purchase.pot,sha256=qI2HTpzvRLZxxV4ThXt-t1uJVxfBk3RC1LP3UznLHXc,62063
|
12
|
+
odoo/addons/l10n_br_purchase/i18n/pt_BR.po,sha256=4Kocqko9-DfT1nyriLzRmTRSRe9_ewEUuH9WBfR3E7k,105480
|
13
13
|
odoo/addons/l10n_br_purchase/models/__init__.py,sha256=85CiHJxY9R005w2ekoNraLzhQ08XZLfQE1LSts09xeU,227
|
14
14
|
odoo/addons/l10n_br_purchase/models/account_move.py,sha256=fYSjUp8X9mMRndBI_BhJ-9b6UJIRG9I_4WFJ3y1Ct5M,853
|
15
|
-
odoo/addons/l10n_br_purchase/models/purchase_order.py,sha256=
|
16
|
-
odoo/addons/l10n_br_purchase/models/purchase_order_line.py,sha256=
|
15
|
+
odoo/addons/l10n_br_purchase/models/purchase_order.py,sha256=fr63Z21cHIHlbUp445_PBx4dDASNZftMASR0kGFDwLU,4429
|
16
|
+
odoo/addons/l10n_br_purchase/models/purchase_order_line.py,sha256=fx0zHWbjy8ipnk_L3mwJGNjxH_8YiBmb2raQj537FjI,5157
|
17
17
|
odoo/addons/l10n_br_purchase/models/res_company.py,sha256=FrngXbae8RCDyHWakEj5SGcIAizYLt2xDRRoRRfCgT4,446
|
18
18
|
odoo/addons/l10n_br_purchase/readme/CONFIGURE.rst,sha256=WbTbr9WipjAVnsWCwzCAGIbIAv4uYO4GJWKUObG5djo,27
|
19
19
|
odoo/addons/l10n_br_purchase/readme/CONTRIBUTORS.rst,sha256=noSnflerh0x89yVjgKWscvIPmCT_F5jym9l9BfQjseM,223
|
@@ -25,17 +25,17 @@ odoo/addons/l10n_br_purchase/readme/ROADMAP.rst,sha256=47DEQpj8HBSa-_TImW-5JCeuQ
|
|
25
25
|
odoo/addons/l10n_br_purchase/readme/USAGE.rst,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
26
|
odoo/addons/l10n_br_purchase/reports/__init__.py,sha256=Vo7RrdNixdgYZP0pDwOai51fKgqjCH7D45WBlWkhRxg,96
|
27
27
|
odoo/addons/l10n_br_purchase/reports/purchase_order_templates.xml,sha256=EPKe7Wpksi29P9YjvR8rk_euENajs5ubNsDZtDHcP2g,2179
|
28
|
-
odoo/addons/l10n_br_purchase/reports/purchase_report.py,sha256=
|
28
|
+
odoo/addons/l10n_br_purchase/reports/purchase_report.py,sha256=8__lndYGggTJ8uhSi9fQUSh837dTmWznlvEX-Hm4wqA,3769
|
29
29
|
odoo/addons/l10n_br_purchase/reports/purchase_report_views.xml,sha256=ZgGZJWRHhKPR4MoGuhnXf1Abtay3QCV-kQygUZjKAjs,1988
|
30
30
|
odoo/addons/l10n_br_purchase/security/ir.model.access.csv,sha256=bQTfw--GEMiRE1M1ix-VIydrBHN8Oz5XTJBezsJP57w,822
|
31
31
|
odoo/addons/l10n_br_purchase/static/description/icon.png,sha256=b1uvDtIAslueuduSrxm6miLy_X1RYXmIayt7E1j8t6I,18092
|
32
|
-
odoo/addons/l10n_br_purchase/static/description/index.html,sha256=
|
32
|
+
odoo/addons/l10n_br_purchase/static/description/index.html,sha256=nILqB2ZQ3TXnW5_T9bPM6YU2-xOSq0O-Z80CIOu0rfg,16056
|
33
33
|
odoo/addons/l10n_br_purchase/tests/__init__.py,sha256=b6lLV1OD86vong8P8jX13fhE0J1vF3uq95qVf6HdT28,145
|
34
|
-
odoo/addons/l10n_br_purchase/tests/test_l10n_br_purchase.py,sha256=
|
34
|
+
odoo/addons/l10n_br_purchase/tests/test_l10n_br_purchase.py,sha256=Rjz_WEln7_4QtUsxuLQ5umxsnLwA_qKzbDur0sbO5Y4,29710
|
35
35
|
odoo/addons/l10n_br_purchase/tests/test_l10n_br_purchase_sn.py,sha256=t4x-A1BHrRmlNIBkPzx6HAmXoPYU0GxC8qjQJ1BzadA,426
|
36
36
|
odoo/addons/l10n_br_purchase/views/purchase_view.xml,sha256=sSvT0Wi16DclmQ-AOmw7I8zpHYqvhBeFdGyFPacPG60,12124
|
37
37
|
odoo/addons/l10n_br_purchase/views/res_company_view.xml,sha256=3wDcVAq5jfYVyEYR8HK2CqTmiKCfcTnaS7ynMINA2NM,789
|
38
|
-
odoo14_addon_l10n_br_purchase-14.0.3.
|
39
|
-
odoo14_addon_l10n_br_purchase-14.0.3.
|
40
|
-
odoo14_addon_l10n_br_purchase-14.0.3.
|
41
|
-
odoo14_addon_l10n_br_purchase-14.0.3.
|
38
|
+
odoo14_addon_l10n_br_purchase-14.0.3.11.1.dist-info/METADATA,sha256=BYHjMXtV3AzY36EZNvkOpuvUsJKTH-o_hOeLFGEo_7c,5226
|
39
|
+
odoo14_addon_l10n_br_purchase-14.0.3.11.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
40
|
+
odoo14_addon_l10n_br_purchase-14.0.3.11.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
41
|
+
odoo14_addon_l10n_br_purchase-14.0.3.11.1.dist-info/RECORD,,
|