Skip to content

Commit

Permalink
Merge pull request #1556 from VoicuStefan2001/16.0-upd-deltatech_sale…
Browse files Browse the repository at this point in the history
…_margin

[16.0][UPD] deltatech_sale_margin test
  • Loading branch information
VoicuStefan2001 authored Jul 15, 2024
2 parents 4097406 + 8919d13 commit c11fdbf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deltatech_sale_margin/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Sale Margin
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4b0adc4432420d89e939fef5156d8234fedfc7f77f9ba3e0991ef8874b5b6999
!! source digest: sha256:2f9938e8ec1d01b01e8f82d1b02d3a5ae0dc636700847840f3c0b45982d196f1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
Expand Down
2 changes: 1 addition & 1 deletion deltatech_sale_margin/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"category": "Sales",
"author": "Terrabit, Dorin Hongu",
"website": "https://www.terrabit.ro",
"depends": ["sale_margin", "account", "stock_account"],
"depends": ["sale_margin", "account", "stock_account", "delivery"],
"license": "OPL-1",
"data": [
"security/sale_security.xml",
Expand Down
2 changes: 1 addition & 1 deletion deltatech_sale_margin/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1 class="title">Sale Margin</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4b0adc4432420d89e939fef5156d8234fedfc7f77f9ba3e0991ef8874b5b6999
!! source digest: sha256:2f9938e8ec1d01b01e8f82d1b02d3a5ae0dc636700847840f3c0b45982d196f1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external image-reference" href="https://www.odoo.com/documentation/master/legal/licenses.html"><img alt="License: OPL-1" src="https://img.shields.io/badge/licence-OPL--1-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/dhongu/deltatech/tree/16.0/deltatech_sale_margin"><img alt="dhongu/deltatech" src="https://img.shields.io/badge/github-dhongu%2Fdeltatech-lightgray.png?logo=github" /></a></p>
<dl class="docutils">
Expand Down
3 changes: 2 additions & 1 deletion deltatech_sale_margin/tests/test_sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from odoo.tests.common import TransactionCase


class TestSale(TransactionCase):
class TestSaleon(TransactionCase):
def setUp(self):
super().setUp()
self.partner_a = self.env["res.partner"].create({"name": "Test"})
Expand All @@ -22,6 +22,7 @@ def setUp(self):
self.stock_location = self.env.ref("stock.stock_location_stock")
self.env["stock.quant"]._update_available_quantity(self.product_a, self.stock_location, 1000)
self.env["stock.quant"]._update_available_quantity(self.product_b, self.stock_location, 1000)
self.env["ir.config_parameter"].sudo().set_param("sale.margin_limit_check_validate", "1")

def test_sale(self):
so = Form(self.env["sale.order"])
Expand Down

0 comments on commit c11fdbf

Please sign in to comment.