Skip to content

Commit

Permalink
Rates required
Browse files Browse the repository at this point in the history
Disabled delete from tree view of wt statements and wt moves

Rates required

Disabled delete from tree view of wt statements and wt moves

Fix conflicts and changed code with new standards
  • Loading branch information
alessandrocamilli authored and TheMule71 committed Jun 6, 2021
1 parent df260e9 commit 9c213b6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 17 deletions.
4 changes: 2 additions & 2 deletions l10n_it_withholding_tax_payment/data/sequence.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<odoo>
<data noupdate="1">

<record id="seq_wt_move_payment" model="ir.sequence">
Expand All @@ -11,4 +11,4 @@
</record>

</data>
</openerp>
</odoo>
6 changes: 3 additions & 3 deletions l10n_it_withholding_tax_payment/models/withholding_tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).


from openerp import models, fields, api, _
from openerp.exceptions import ValidationError
from openerp import netsvc
from odoo import models, fields, api, _
from odoo.exceptions import ValidationError
from odoo import netsvc


class WithholdingTaxMove(models.Model):
Expand Down
10 changes: 4 additions & 6 deletions l10n_it_withholding_tax_payment/views/withholding_tax.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<openerp>
<data>
<odoo>
<!--
WITHHOLDING TAX MOVE (new fields)
-->
Expand Down Expand Up @@ -32,7 +31,7 @@
<field name="name">withholding.tax.move.payment.view.tree</field>
<field name="model">withholding.tax.move.payment</field>
<field name="arch" type="xml">
<tree string="Withholding Move Payment" version="7.0">
<tree string="Withholding Move Payment">
<field name="name"/>
<field name="date"/>
<field name="date_start"/>
Expand All @@ -47,7 +46,7 @@
<field name="name">withholding.tax.move.payment.view.form</field>
<field name="model">withholding.tax.move.payment</field>
<field name="arch" type="xml">
<form string="Withholding Tax Move Payment" version="7.0">
<form string="Withholding Tax Move Payment">
<header>
<button name="action_set_to_draft" states="confirmed" string="Set to Draft" type="object" />
<button name="action_confirmed" states="draft" string="Confirm" type="object" />
Expand Down Expand Up @@ -98,5 +97,4 @@
<menuitem id="menu_withholding_tax_move_payment" name="WT Move Payments"
action="action_withholding_tax_move_payment" parent="l10n_it_withholding_tax.wt_main" sequence="20"/>

</data>
</openerp>
</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).


from openerp import models, fields, api
from odoo import models, fields, api


class WizardWtMovePaymentCreate(models.TransientModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
Copyright (C) 2010-2013 Alessandro Camilli www.openforce.it)
-->
<openerp>
<data>
<odoo>

<record id="wizard_wt_move_payment_create_view" model="ir.ui.view">
<field name="name">wizard.wt.move.payment.create.view</field>
<field name="model">wizard.wt.move.payment.create</field>
<field name="arch" type="xml">
<form string="Create Move Payment" version="7.0">
<form string="Create Move Payment">
<group string="WT Moves">
<field name="wt_move_ids" nolabel="1"/>
</group>
Expand All @@ -36,5 +35,4 @@
view_id="wizard_wt_move_payment_create_view"/>


</data>
</openerp>
</odoo>

0 comments on commit 9c213b6

Please sign in to comment.