summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-08-13 11:24:08 +0200
committerThibault Delavallée <tde@openerp.com>2015-08-14 09:48:19 +0200
commit19a252d578d4f5de0a5853f1a79b3d0ad49b5a8d (patch)
treec6e2d64e2b9c09dd3fa1eaf696fb783311d9ad48 /addons
parent44383c55022f220010af9d117072cfbda96fdc80 (diff)
[REM] account: unnecessary code
Removed a code that allows to write a message, using a subtype that does not exist. This is probably critical for some business, but as I don't know which ones, let's remove it. Chatter is sufficient.
Diffstat (limited to 'addons')
-rw-r--r--addons/account/__openerp__.py1
-rw-r--r--addons/account/views/partner_view.xml1
-rw-r--r--addons/account/wizard/__init__.py1
-rw-r--r--addons/account/wizard/account_log_followup_note.py19
-rw-r--r--addons/account/wizard/account_log_followup_note_view.xml33
5 files changed, 0 insertions, 55 deletions
diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py
index 0411532ab27..b1592ba5bec 100644
--- a/addons/account/__openerp__.py
+++ b/addons/account/__openerp__.py
@@ -32,7 +32,6 @@ You could use this simplified accounting in case you work with an (external) acc
'wizard/account_invoice_refund_view.xml',
'wizard/account_validate_move_view.xml',
'wizard/account_invoice_state_view.xml',
- 'wizard/account_log_followup_note_view.xml',
'wizard/pos_box.xml',
'views/account_end_fy.xml',
'views/account_invoice_view.xml',
diff --git a/addons/account/views/partner_view.xml b/addons/account/views/partner_view.xml
index c986709292f..daf4e5634d2 100644
--- a/addons/account/views/partner_view.xml
+++ b/addons/account/views/partner_view.xml
@@ -142,7 +142,6 @@
<page string="Accounting" name="accounting" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}">
<group>
<group string="Sale" name="acc_sale">
- <button name="%(action_account_partner_followup_note)d" class="oe_link" type="action" string="Log a followup note" colspan="2"/>
<field name="property_payment_term_id" widget="selection"/>
<field name="credit"/>
<field name="credit_limit"/>
diff --git a/addons/account/wizard/__init__.py b/addons/account/wizard/__init__.py
index 5bda76e7442..185cab9ac96 100644
--- a/addons/account/wizard/__init__.py
+++ b/addons/account/wizard/__init__.py
@@ -7,6 +7,5 @@ import account_unreconcile
import account_invoice_refund
import account_invoice_state
import account_validate_account_move
-import account_log_followup_note
import pos_box
import account_move_reversal
diff --git a/addons/account/wizard/account_log_followup_note.py b/addons/account/wizard/account_log_followup_note.py
deleted file mode 100644
index 710600b16f7..00000000000
--- a/addons/account/wizard/account_log_followup_note.py
+++ /dev/null
@@ -1,19 +0,0 @@
-# -*- coding: utf-8 -*-
-from openerp import models, fields, api, _
-
-
-class AccountLogFollowupNote(models.TransientModel):
-
- """Logs a note"""
-
- _name = "account.log.followup.note"
- _description = "Log A Followup Note"
-
- partner_id = fields.Many2one('res.partner', string='Partner', required=True, default=lambda s: dict(s._context or {}).get('active_id', False))
- note = fields.Text(required=True)
-
- @api.multi
- def log_note(self):
- self.partner_id.write({'payment_next_action': self.note})
- self.partner_id.message_post(body=self.note, subtype='account.followup_logged_action')
- return True
diff --git a/addons/account/wizard/account_log_followup_note_view.xml b/addons/account/wizard/account_log_followup_note_view.xml
deleted file mode 100644
index d3ac4ebb066..00000000000
--- a/addons/account/wizard/account_log_followup_note_view.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<openerp>
- <data>
- <record id="view_account_log_followup_note" model="ir.ui.view">
- <field name="name">account.log.followup.note.form</field>
- <field name="model">account.log.followup.note</field>
- <field name="arch" type="xml">
- <form string="Log a followup note">
- <group>
- <group>
- <field name="note"/>
- </group>
- </group>
- <footer>
- <button string='Log Note' name="log_note" type="object" class="oe_highlight"/>
- or
- <button string="Cancel" class="oe_link" special="cancel"/>
- </footer>
- </form>
- </field>
- </record>
-
- <record id="action_account_partner_followup_note" model="ir.actions.act_window">
- <field name="name">Log a followup note</field>
- <field name="res_model">account.log.followup.note</field>
- <field name="view_type">form</field>
- <field name="view_mode">form</field>
- <field name="view_id" ref="view_account_log_followup_note"/>
- <!-- <field name="context">{'default_partner_id': [(4, active_id, None)]}</field> -->
- <field name="target">new</field>
- </record>
- </data>
-</openerp> \ No newline at end of file