Skip to content

Commit

Permalink
[MIG] sale_order_invoicing_qty_percentage: Migration to 17.0
Browse files Browse the repository at this point in the history
TT51648
  • Loading branch information
victoralmau committed Nov 14, 2024
1 parent 1e38573 commit 41f6f6a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 29 deletions.
2 changes: 1 addition & 1 deletion sale_order_invoicing_qty_percentage/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Sales order invoicing by percentage of the quantity",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Sales Management",
"license": "AGPL-3",
"author": "Tecnativa, Odoo Community Association (OCA)",
Expand Down
18 changes: 0 additions & 18 deletions sale_order_invoicing_qty_percentage/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,3 @@ msgstr "Ventas. Anticipo pago factura"
#: model:ir.model,name:sale_order_invoicing_qty_percentage.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea de pedido de venta"

#~ msgid ""
#~ "A standard invoice is issued with all the order lines ready for "
#~ "invoicing, according to their invoicing policy (based on ordered "
#~ "or delivered quantity)."
#~ msgstr ""
#~ "Se emite una factura estándar con todas las líneas de pedido listas para "
#~ "la facturación, de acuerdo con su política de facturación (basada en la "
#~ "cantidad pedida o entregada)."

#~ msgid "Display Name"
#~ msgstr "Nombre mostrado"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Última modificación el"
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Copyright 2023 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo.tests import Form, TransactionCase
from odoo.tests import Form

from odoo.addons.base.tests.common import BaseCommon

class TestSaleOrderInvoicingQtyPercentage(TransactionCase):

class TestSaleOrderInvoicingQtyPercentage(BaseCommon):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
cls.partner = cls.env["res.partner"].create({"name": "Test partner"})
cls.product = cls.env["product.product"].create(
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@
<field name="model">sale.advance.payment.inv</field>
<field name="inherit_id" ref="sale.view_sale_advance_payment_inv" />
<field name="arch" type="xml">
<field name="has_down_payments" position="after">
<field
name="qty_percentage"
attrs="{'invisible': [('advance_payment_method', '!=', 'qty_percentage')]}"
widget="percentage"
/>
</field>
<group name="down_payment_specification" position="after">
<group invisible="advance_payment_method != 'qty_percentage'">
<label for="qty_percentage" />
<div>
<field
name="qty_percentage"
widget="percentage"
class="oe_inline"
/>
</div>
</group>
</group>
</field>
</record>
</odoo>

0 comments on commit 41f6f6a

Please sign in to comment.