Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
damdam-s committed Jan 20, 2025
1 parent 0e91cb9 commit d701bc5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mail_attach_existing_attachment_account/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"version": "17.0.1.0.0",
"license": "AGPL-3",
"depends": ["account", "mail_attach_existing_attachment"],
"data": ["wizard/account_invoice_send_view.xml"],
"data": ["wizard/account_move_send_view.xml"],
"installable": True,
"auto_install": True,
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def setUpClass(cls):

def test_account_invoice_send(self):
compose = Form(
self.env["account.invoice.send"].with_context(
self.env["account.move.send"].with_context(
active_ids=self.invoice.ids,
default_model=self.invoice._name,
default_res_id=self.invoice.id,
Expand Down
2 changes: 1 addition & 1 deletion mail_attach_existing_attachment_account/wizard/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import account_invoice_send
from . import account_move_send
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from odoo import api, fields, models


class AccountInvoiceSend(models.TransientModel):
_inherit = "account.invoice.send"
class AccountMoveSend(models.TransientModel):
_inherit = "account.move.send"

@api.model
def default_get(self, fields_list):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>
<record id="account_invoice_send_wizard_form" model="ir.ui.view">
<record id="account_move_send_form" model="ir.ui.view">
<field name="name">Send Invoice</field>
<field name="model">account.invoice.send</field>
<field name="inherit_id" ref="account.account_invoice_send_wizard_form" />
<field name="model">account.move.send</field>
<field name="inherit_id" ref="account.account_move_send_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='attachment_ids']" position="after">
<field name="model" invisible="1" />
Expand Down

0 comments on commit d701bc5

Please sign in to comment.