From 3b6973c4a23a0135de826f54e90e93918d9048c2 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 13 Feb 2017 15:41:29 +0100 Subject: [PATCH 1/2] Add actions for invoice lines Add info in invoice chatter --- account_usability/account.py | 2 ++ account_usability/account_view.xml | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/account_usability/account.py b/account_usability/account.py index 3c7d197..895ce8e 100644 --- a/account_usability/account.py +++ b/account_usability/account.py @@ -22,6 +22,8 @@ class AccountInvoice(models.Model): journal_id = fields.Many2one(track_visibility='onchange') partner_bank_id = fields.Many2one(track_visibility='onchange') fiscal_position_id = fields.Many2one(track_visibility='onchange') + # I want to see the number of cancelled invoice in chatter + move_id = fields.Many2one(track_visibility='onchange') # for invoice report has_discount = fields.Boolean( compute='_compute_has_discount', readonly=True) diff --git a/account_usability/account_view.xml b/account_usability/account_view.xml index 494871f..365d265 100644 --- a/account_usability/account_view.xml +++ b/account_usability/account_view.xml @@ -122,6 +122,14 @@ module --> {'show_invoice_fields': True} + + Customer Invoice Lines + account.invoice.line + tree,form + [('invoice_type', 'in', ('out_invoice', 'out_refund'))] + {'show_invoice_fields': True} + + Supplier Invoice Lines account.invoice.line @@ -138,6 +146,14 @@ module --> {'show_invoice_fields': True} + + Supplier Invoice Lines + account.invoice.line + tree,form + [('invoice_type', 'in', ('in_invoice', 'in_refund'))] + {'show_invoice_fields': True} + + 200 From 7750ed1834a25c5b0399871ec60cbd4844f72d27 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 13 Feb 2017 16:56:15 +0100 Subject: [PATCH 2/2] Fix string --- sale_from_private_stock/sale_private_stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale_from_private_stock/sale_private_stock.py b/sale_from_private_stock/sale_private_stock.py index d65cc8a..3344e13 100644 --- a/sale_from_private_stock/sale_private_stock.py +++ b/sale_from_private_stock/sale_private_stock.py @@ -19,7 +19,7 @@ class ResPartner(models.Model): default_sale_route_id = fields.Many2one( 'stock.location.route', string="Default Stock Location Route", company_dependent=True, - help="Stock location route used by default in sale order lines" + help="Stock location route used by default in sale order lines " "for this customer.") @api.multi