odoo-addon-account-commission 15.0.3.2.2.1__py3-none-any.whl → 15.0.3.2.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.
@@ -7,7 +7,7 @@ Account commissions
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:36f82db2e2b32d08d7dbd3dc3998924a816f327161dcd66d9ce892e7973929ec
10
+ !! source digest: sha256:e2609e9bf7ee5e4db5257c5f0363d83bc8d15e74a7944d92ebdae64cfabdc3f8
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -3,7 +3,7 @@
3
3
  # Copyright 2014-2022 Tecnativa - Pedro M. Baeza
4
4
  {
5
5
  "name": "Account commissions",
6
- "version": "15.0.3.2.2",
6
+ "version": "15.0.3.2.3",
7
7
  "author": "Tecnativa, Odoo Community Association (OCA)",
8
8
  "category": "Sales Management",
9
9
  "license": "AGPL-3",
@@ -366,7 +366,7 @@ ul.auto-toc {
366
366
  !! This file is generated by oca-gen-addon-readme !!
367
367
  !! changes will be overwritten. !!
368
368
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369
- !! source digest: sha256:36f82db2e2b32d08d7dbd3dc3998924a816f327161dcd66d9ce892e7973929ec
369
+ !! source digest: sha256:e2609e9bf7ee5e4db5257c5f0363d83bc8d15e74a7944d92ebdae64cfabdc3f8
370
370
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371
371
  <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/commission/tree/15.0/account_commission"><img alt="OCA/commission" src="https://img.shields.io/badge/github-OCA%2Fcommission-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/commission-15-0/commission-15-0-account_commission"><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/commission&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372
372
  <p>This module adds the function to calculate commissions in invoices (account moves).</p>
@@ -498,7 +498,7 @@ class TestAccountCommission(TestCommissionBase):
498
498
  )
499
499
  self.assertEqual(2, len(settlements))
500
500
 
501
- def test_invoice_parcial_refund(self):
501
+ def test_invoice_partial_refund(self):
502
502
  commission = self.commission_net_paid
503
503
  agent = self.agent_monthly
504
504
  today = fields.Date.today()
@@ -528,20 +528,12 @@ class TestAccountCommission(TestCommissionBase):
528
528
  }
529
529
  )
530
530
  )
531
- refund = self.env["account.move"].browse(
532
- move_reversal.reverse_moves()["res_id"]
533
- )
534
- refund.write(
535
- {
536
- "invoice_line_ids": [
537
- (
538
- 1,
539
- refund.invoice_line_ids[:1].id,
540
- {"price_unit": refund.invoice_line_ids[:1].price_unit - 2},
541
- )
542
- ]
543
- }
531
+ refund_form = Form(
532
+ self.env["account.move"].browse(move_reversal.reverse_moves()["res_id"])
544
533
  )
534
+ with refund_form.invoice_line_ids.edit(0) as line:
535
+ line.price_unit -= 2
536
+ refund = refund_form.save()
545
537
  refund.action_post()
546
538
  # Register payment for the refund
547
539
  register_payments = (
@@ -604,20 +596,12 @@ class TestAccountCommission(TestCommissionBase):
604
596
  }
605
597
  )
606
598
  )
607
- invoice2 = self.env["account.move"].browse(
608
- move_reversal.reverse_moves()["res_id"]
609
- )
610
- invoice2.write(
611
- {
612
- "invoice_line_ids": [
613
- (
614
- 1,
615
- invoice2.invoice_line_ids[:1].id,
616
- {"price_unit": invoice2.invoice_line_ids[:1].price_unit - 2},
617
- )
618
- ]
619
- }
599
+ invoice2_form = Form(
600
+ self.env["account.move"].browse(move_reversal.reverse_moves()["res_id"])
620
601
  )
602
+ with invoice2_form.invoice_line_ids.edit(0) as line:
603
+ line.price_unit -= 2
604
+ invoice2 = invoice2_form.save()
621
605
  invoice2.action_post()
622
606
  # Register payment for the new invoice
623
607
  payment_journal = self.env["account.journal"].search(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-account-commission
3
- Version: 15.0.3.2.2.1
3
+ Version: 15.0.3.2.3
4
4
  Summary: Account commissions
5
5
  Home-page: https://github.com/OCA/commission
6
6
  Author: Tecnativa, Odoo Community Association (OCA)
@@ -24,7 +24,7 @@ Account commissions
24
24
  !! This file is generated by oca-gen-addon-readme !!
25
25
  !! changes will be overwritten. !!
26
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
- !! source digest: sha256:36f82db2e2b32d08d7dbd3dc3998924a816f327161dcd66d9ce892e7973929ec
27
+ !! source digest: sha256:e2609e9bf7ee5e4db5257c5f0363d83bc8d15e74a7944d92ebdae64cfabdc3f8
28
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
29
 
30
30
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,6 +1,6 @@
1
- odoo/addons/account_commission/README.rst,sha256=YOAiZxyIeWkyQUHqXjBOQEgCsbOtKVOWBoXOabDqqLA,6081
1
+ odoo/addons/account_commission/README.rst,sha256=Oudq4ijD0ZTa_0lmFHFjJQi90dhyzeT6U9E2TLrnzEI,6081
2
2
  odoo/addons/account_commission/__init__.py,sha256=8JG3SPnwMlgXTppOwkp3YTgDDQGo7U7veMEMpG1bL_c,64
3
- odoo/addons/account_commission/__manifest__.py,sha256=vTfmwhwViExjPvYGCyvjpwkRlxdmsQ4yoRsxN6zLfAY,893
3
+ odoo/addons/account_commission/__manifest__.py,sha256=YxrcBsgnD3760ddLpLEaeQ_6WIT8a_o0BCZEdcHP070,893
4
4
  odoo/addons/account_commission/data/menuitem_data.xml,sha256=OX8KpilSn3zWf9cMNiJLDO7aV_vtaH6GTIyMZWDxYqM,361
5
5
  odoo/addons/account_commission/i18n/account_commission.pot,sha256=xIGxWuQUMHF44VsPgaMyCpwxI3b4t97uK5bcPkoMITs,21893
6
6
  odoo/addons/account_commission/i18n/es.po,sha256=Ax2Uo2zrYXsaS1YkMySHDGmBfYyQGqMyIjXr3GuJ_P0,24736
@@ -20,9 +20,9 @@ odoo/addons/account_commission/security/account_commission_security.xml,sha256=p
20
20
  odoo/addons/account_commission/security/ir.model.access.csv,sha256=c0k8cFhVg1A4XCaUQ-mzJdLIotKKt1ltIYznK8ELhYE,883
21
21
  odoo/addons/account_commission/static/description/icon.png,sha256=ydxSIUuHSeE4CfMVsEzLjKKVdX4RicuPj8VGM2rBpBg,8219
22
22
  odoo/addons/account_commission/static/description/icon.svg,sha256=96b_cQ-F1XuDU6S5mDi9ioe0d22Vwn30uBDQ_3ZSi5w,17220
23
- odoo/addons/account_commission/static/description/index.html,sha256=hkdUHD3iUIBQOIRSAepxvHa7Z18iUNZIrOIpjBDr6sg,16949
23
+ odoo/addons/account_commission/static/description/index.html,sha256=NLBUM0d5tKn4DduiyLCEmoPXPjkKDrVmnYRDKvF2mLU,16949
24
24
  odoo/addons/account_commission/tests/__init__.py,sha256=bxd564RH-TWEpEJWbbc558dPFEJZCsH9JM8JF3-PMUM,38
25
- odoo/addons/account_commission/tests/test_account_commission.py,sha256=2iDmGr7Ls2jD0y4tgNqw_yhyAQ6Em_625-j7ySVp0W4,26640
25
+ odoo/addons/account_commission/tests/test_account_commission.py,sha256=v5OL_5N1MFDO_aZaiP5dAnosV42O2FBCOpg06g1QOQw,26264
26
26
  odoo/addons/account_commission/views/account_move_views.xml,sha256=4oYr0ErkcbGrYtGLDj0ip3ozC9NCjp4jBJLB9YxC9Sc,6634
27
27
  odoo/addons/account_commission/views/commission_settlement_views.xml,sha256=jLyChFXOLPE5wqtbRuq6Nh7CxFh5MoTOFDWklE1ZRjc,3523
28
28
  odoo/addons/account_commission/views/commission_views.xml,sha256=oY2-WJ-lEn3gCoFMqStKObGT3LRkBxMmANm2MRhYuRE,614
@@ -31,7 +31,7 @@ odoo/addons/account_commission/wizards/__init__.py,sha256=ddwjnl0fpZTw56iNQmRcDJ
31
31
  odoo/addons/account_commission/wizards/commission_make_settle.py,sha256=Me1_y1AtiUU4KnxAHFsyBmZW_5XqCc6cH6Xr08lx8ik,1543
32
32
  odoo/addons/account_commission/wizards/wizard_invoice.py,sha256=Aga0kHWTtd5F7GehmRrqfwDaFkMlPXVIzEA0jlWTDiE,3259
33
33
  odoo/addons/account_commission/wizards/wizard_invoice.xml,sha256=QDGpFCICqhAu6uO7ksQihj0UPGxuQL7MeE3mNx4Xy_A,2161
34
- odoo_addon_account_commission-15.0.3.2.2.1.dist-info/METADATA,sha256=0yffM7Kt-WRzq_7mmcY_l9FzMM-X_ApjHIXyNvmY89A,6668
35
- odoo_addon_account_commission-15.0.3.2.2.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
36
- odoo_addon_account_commission-15.0.3.2.2.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
37
- odoo_addon_account_commission-15.0.3.2.2.1.dist-info/RECORD,,
34
+ odoo_addon_account_commission-15.0.3.2.3.dist-info/METADATA,sha256=J5_w7IcvihqLF0AmFOzfNMgSlWQ8eXzbOVpmabD-VRs,6666
35
+ odoo_addon_account_commission-15.0.3.2.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
36
+ odoo_addon_account_commission-15.0.3.2.3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
37
+ odoo_addon_account_commission-15.0.3.2.3.dist-info/RECORD,,