-
-
+
+
|
Tax
|
@@ -476,33 +476,39 @@
Amount
-
-
-
-
-
-
-
-
- [[ repeatIn(o.tax_line,'t') ]]
-
-
+
+
+
|
- [[ t.name ]]
+
|
- [[ formatLang(t.base) or '0.00' ]]
+
|
- [[ formatLang(t.amount) or '0.00' ]]
+
|
-
+
+
+ [[ repeatIn(o.tax_line,'t') ]]
+ |
+ [[ lt.description and t.name + ' - ' + lt.description or t.name ]]
+ |
+
+ [[ t.base or 0.00 ]]
+ |
+
+ [[ t.amount or 0.00 ]] [[ t.tax_code_id.notprintable and removeParentNode('tr') or '' ]]
+ |
+
+
+
|
-
+
diff --git a/addons/account/wizard/wizard_statement_from_invoice.py b/addons/account/wizard/wizard_statement_from_invoice.py
index 351e7197546..892e35953a1 100644
--- a/addons/account/wizard/wizard_statement_from_invoice.py
+++ b/addons/account/wizard/wizard_statement_from_invoice.py
@@ -40,7 +40,7 @@ FIELDS = {
START_FIELD = {
'date': {'string': 'Date payment', 'type': 'date','required':True, 'default': lambda *a: time.strftime('%Y-%m-%d')},
- 'journal_id': {'string': 'Journal', 'type': 'many2many', 'relation': 'account.journal', 'domain': '[("type","in",["sale","purchase"])]', 'help': 'This field allow you to choose the accounting journals you want for filtering the invoices. If you left this field empty, it will search on all sale and purchase journals.'},
+ 'journal_id': {'string': 'Journal', 'type': 'many2many', 'relation': 'account.journal', 'domain': '[("type","in",["sale","purchase","cash"])]', 'help': 'This field allow you to choose the accounting journals you want for filtering the invoices. If you left this field empty, it will search on all sale, purchase and cash journals.'},
}
START_FORM = '''
@@ -60,26 +60,12 @@ def _search_invoices(obj, cr, uid, data, context):
journal_ids = data['form']['journal_id'][0][2]
if journal_ids == []:
- sale_journal_ids = journal_obj.search(cr, uid, [('type', '=', 'sale')], context=context)
- pur_journal_ids = journal_obj.search(cr, uid, [('type', '=', 'purchase')], context=context)
- else:
- pur_journal_ids = sale_journal_ids = []
- for journal in pool.get('account.journal').browse(cr, uid, journal_ids):
- if journal.type == 'sale':
- sale_journal_ids.append(journal.id)
- else:
- pur_journal_ids.append(journal.id)
-
+ journal_ids = journal_obj.search(cr, uid, [('type', 'in', ('sale','cash','purchase'))], context=context)
+
line_ids = line_obj.search(cr, uid, [
('reconcile_id', '=', False),
- ('journal_id', 'in', sale_journal_ids),
- ('account_id.type', '=', 'receivable')],
- #order='date DESC, id DESC', #doesn't work
- context=context)
- line_ids += line_obj.search(cr, uid, [
- ('reconcile_id', '=', False),
- ('journal_id', 'in', pur_journal_ids),
- ('account_id.type', '=', 'payable')],
+ ('journal_id', 'in', journal_ids),
+ ('account_id.reconcile', '=', True)],
#order='date DESC, id DESC', #doesn't work
context=context)
@@ -88,8 +74,7 @@ def _search_invoices(obj, cr, uid, data, context):
''' % (','.join([str(x) for x in line_ids]))
- return {'type':'customer'}
- # return {'lines': line_ids,'type':'customer'}
+ return {}
def _populate_statement(obj, cursor, user, data, context):
line_ids = data['form']['lines'][0][2]
@@ -124,10 +109,17 @@ def _populate_statement(obj, cursor, user, data, context):
reconcile_id = statement_reconcile_obj.create(cursor, user, {
'line_ids': [(6, 0, [line.id])]
}, context=context)
+ if line.journal_id.type == 'sale':
+ type = 'customer'
+ elif line.journal_id.type == 'purchase':
+ type = 'supplier'
+ else:
+ type = 'general'
+
statement_line_obj.create(cursor, user, {
'name': line.name or '?',
'amount': amount,
- 'type': data['form']['type'],
+ 'type': type,
'partner_id': line.partner_id.id,
'account_id': line.account_id.id,
'statement_id': statement.id,
diff --git a/addons/auction/auction_view.xml b/addons/auction/auction_view.xml
index adaa263fa86..d45cc8e1612 100644
--- a/addons/auction/auction_view.xml
+++ b/addons/auction/auction_view.xml
@@ -103,8 +103,8 @@ Auction Management/Auction Dates/New Auction Dates
-
-
+
+
@@ -208,7 +208,7 @@ Auction Management/Auction Dates/Reporting
-
+
@@ -319,7 +319,7 @@ Auction Management/Auction Dates/Reporting
-
+
@@ -430,7 +430,7 @@ Auction Management/Auction Dates/Reporting
-
+
@@ -510,7 +510,7 @@ Auction Management/Auction Dates/Reporting
-
+
@@ -545,7 +545,7 @@ Auction Management/Auction Dates/Reporting
-
+
diff --git a/addons/l10n_be/account_pcmn_belgium.xml b/addons/l10n_be/account_pcmn_belgium.xml
index 85a19681293..fc3baa0203e 100644
--- a/addons/l10n_be/account_pcmn_belgium.xml
+++ b/addons/l10n_be/account_pcmn_belgium.xml
@@ -6637,6 +6637,7 @@
+ sale
@@ -6645,6 +6646,7 @@
percent
+ purchase
@@ -6653,6 +6655,7 @@
percent
+ sale
@@ -6661,6 +6664,7 @@
percent
+ purchase
@@ -6673,6 +6677,7 @@
+ sale
@@ -6680,6 +6685,7 @@
percent
+ purchase
@@ -6693,6 +6699,8 @@
+ purchase
+
@@ -6702,6 +6710,7 @@
percent
+ purchase
@@ -6710,6 +6719,7 @@
percent
+ sale
@@ -6721,6 +6731,7 @@
+ purchase
@@ -6732,6 +6743,7 @@
+ purchase
@@ -6743,6 +6755,7 @@
+ purchase
@@ -6751,6 +6764,7 @@
percent
+ sale
@@ -6760,6 +6774,7 @@
+ sale
@@ -6771,6 +6786,7 @@
+ sale
@@ -6782,6 +6798,7 @@
+ sale
@@ -6791,6 +6808,7 @@
+ sale
@@ -6802,6 +6820,7 @@
+ sale
@@ -6813,6 +6832,7 @@
+ sale
diff --git a/addons/l10n_chart_uk_minimal/account_tax.xml b/addons/l10n_chart_uk_minimal/account_tax.xml
index 51d5c3f349f..a030925f8fa 100755
--- a/addons/l10n_chart_uk_minimal/account_tax.xml
+++ b/addons/l10n_chart_uk_minimal/account_tax.xml
@@ -1,128 +1,128 @@
-
+
-
+
-
+
-
+
-
+
Plan Fees UK
-
+
VAT Balance to Pay
-
+
Input VAT
-
+
Input VAT Rate S (15%)
-
+
Input VAT Rate R (5%)
-
+
-
+
Output VAT
-
+
Output VAT Rate S (15%)
-
+
Output VAT Rate R (5%)
-
+
-
+
-
+
Tax Bases
-
+
Taxable Purchases Base
-
+
Taxable Purchases Rated S (15%)
-
+
Taxable Purchases Rated R (5%)
-
+
Taxable Purchases Rated Z (0%)
-
+
Taxable Purchases Type X (Exempt)
-
+
Taxable Purchases Type O (Out of scope)
-
+
-
+
Base of Taxable Sales
-
+
Taxable Sales Rated S (15%)
-
+
Taxable Sales Rated R (5%)
-
+
Taxable Sales Rated Z (0%)
-
+
Taxable Sales Type X (Exempt)
-
+
Taxable Sales Type O (Out of scope)
-
+
-
+
UK Minimal Account Chart Template
@@ -133,10 +133,10 @@
-
+
-
+
IVAT S
@@ -148,8 +148,9 @@
+ purchase
-
+
IVAT R
@@ -161,8 +162,9 @@
+ purchase
-
+
IVAT Z
@@ -170,8 +172,9 @@
percent
+ purchase
-
+
IVAT X
@@ -179,8 +182,9 @@
percent
+ purchase
-
+
IVAT O
@@ -188,10 +192,11 @@
percent
+ purchase
-
+
OVAT S
@@ -203,8 +208,9 @@
+ sale
-
+
OVAT R
@@ -216,8 +222,9 @@
+ sale
-
+
OVAT Z
@@ -225,8 +232,9 @@
percent
+ sale
-
+
OVAT X
@@ -234,8 +242,9 @@
percent
+ sale
-
+
OVAT O
@@ -243,7 +252,8 @@
percent
+ sale
-
+
\ No newline at end of file
diff --git a/addons/mrp_repair/mrp_repair_view.xml b/addons/mrp_repair/mrp_repair_view.xml
index 15dfd109b59..68754d1e789 100644
--- a/addons/mrp_repair/mrp_repair_view.xml
+++ b/addons/mrp_repair/mrp_repair_view.xml
@@ -1,7 +1,7 @@
-
+
mrp.repair.form
mrp.repair
@@ -26,25 +26,25 @@
-
@@ -88,7 +88,7 @@
-
+
@@ -100,25 +100,25 @@
@@ -137,7 +137,7 @@
-
+
@@ -147,7 +147,7 @@
-
+
mrp.repair.tree
mrp.repair
@@ -167,7 +167,7 @@
-
+
New Repair
ir.actions.act_window
@@ -175,7 +175,7 @@
form
form,tree
-
+
Repair Orders
ir.actions.act_window
@@ -183,7 +183,7 @@
form
tree,form
-
+
Repairs in quotation
ir.actions.act_window
@@ -192,7 +192,7 @@
tree,form
[('state','=','draft')]
-
+
Repairs in progress
ir.actions.act_window
@@ -219,19 +219,19 @@
tree,form
[('state','=','2binvoiced')]
-
+
-
+
-
+
-
+
-
-
+
+
diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml
index fb7e08a37f0..5c9eedd0c1b 100644
--- a/addons/purchase/purchase_view.xml
+++ b/addons/purchase/purchase_view.xml
@@ -82,7 +82,7 @@
-
+
@@ -180,7 +180,7 @@
-
+
diff --git a/addons/purchase/report/order.rml b/addons/purchase/report/order.rml
index 1ced17150ad..d1dd99e1075 100644
--- a/addons/purchase/report/order.rml
+++ b/addons/purchase/report/order.rml
@@ -98,12 +98,6 @@
-
-
-
-
-
-
@@ -141,7 +135,7 @@
[[ repeatIn(objects,'o') ]]
[[ setLang(o.partner_id.lang) ]]
-
+
@@ -150,61 +144,61 @@
|
-
+
|
|
- [[ repeatIn(o.dest_address_id and [o.dest_address_id] or [],'addr') ]]
- Shipping address :
- [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]]
- [[ addr.title or '' ]] [[ addr.name ]]
- [[ addr.street ]]
- [[ addr.street2 or '' ]]
- [[ addr.zip or '' ]] [[ addr.city or '' ]]
- [[ addr.state_id and addr.state_id.name or '' ]]
- [[ addr.country_id and addr.country_id.name or '' ]]
+ [[ repeatIn(o.dest_address_id and [o.dest_address_id] or [],'addr') ]]
+ Shipping address :
+ [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]]
+ [[ addr.title or '' ]] [[ addr.name ]]
+ [[ addr.street ]]
+ [[ addr.street2 or '' ]]
+ [[ addr.zip or '' ]] [[ addr.city or '' ]]
+ [[ addr.state_id and addr.state_id.name or '' ]]
+ [[ addr.country_id and addr.country_id.name or '' ]]
|
-
+
|
-
+
|
- [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]]
- [[ o.partner_address_id.title or '' ]] [[ o.partner_address_id.name ]]
- [[ o.partner_address_id.street ]]
- [[ o.partner_address_id.street2 or '' ]]
- [[ o.partner_address_id.zip or '' ]] [[ o.partner_address_id.city or '' ]]
- [[ o.partner_address_id.state_id and o.partner_address_id.state_id.name or '' ]]
- [[ o.partner_address_id.country_id and o.partner_address_id.country_id.name or '' ]]
-
+ [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]]
+ [[ o.partner_address_id.title or '' ]] [[ o.partner_address_id.name ]]
+ [[ o.partner_address_id.street ]]
+ [[ o.partner_address_id.street2 or '' ]]
+ [[ o.partner_address_id.zip or '' ]] [[ o.partner_address_id.city or '' ]]
+ [[ o.partner_address_id.state_id and o.partner_address_id.state_id.name or '' ]]
+ [[ o.partner_address_id.country_id and o.partner_address_id.country_id.name or '' ]]
+
- Tél. : [[ o.partner_address_id.phone or '' ]]
- Fax : [[ o.partner_address_id.fax or '' ]]
- TVA : [[ o.partner_id.vat or '' ]]
+ Tél. : [[ o.partner_address_id.phone or '' ]]
+ Fax : [[ o.partner_address_id.fax or '' ]]
+ TVA : [[ o.partner_id.vat or '' ]]
|
-
+
-
+
-
+
- [[ (o.state=='draft' or removeParentNode('font')) and 'Request for Quotation' ]] [[ (o.state<>'draft' or removeParentNode('font')) and 'Purchase Order Confirmation' ]] N° [[ o.name ]]
+ [[ (o.state=='draft' or removeParentNode('font')) and 'Request for Quotation' ]] [[ (o.state<>'draft' or removeParentNode('font')) and 'Purchase Order Confirmation' ]] N° [[ o.name ]]
@@ -267,33 +261,33 @@
[[ repeatIn(o.order_line,'line') ]]
-
+
|
[[ line.name ]]
|
- [[ ', '.join(map(lambda x: x.name, line.taxes_id)) or formatLang(0.00) ]]
+ [[ formatLang(', '.join(map(lambda x: x.name, line.taxes_id)) or 0.00) ]]
|
[[ formatLang( line.date_planned, date=True) ]]
|
- [[ line.product_qty or formatLang(0.00) ]]
+ [[ formatLang(line.product_qty or 0.00) ]]
|
[[ line.product_uom.name ]]
|
- [[ line.price_unit or formatLang(0.00) ]]
+ [[ formatLang(line.price_unit or 0.00) ]]
|
- [[ line.price_subtotal or formatLang(0.00) ]]
+ [[ formatLang(line.price_subtotal or 0.00) ]]
|
|
- [[ line.notes or removeParentNode('tr') ]]
+ [[ line.notes or removeParentNode('tr') ]]
|
@@ -339,7 +333,7 @@
Net Total :
|
- [[ o.amount_untaxed or formatLang(0.00) ]]
+ [[ formatLang(o.amount_untaxed or 0.00) ]]
|
[[ o.pricelist_id.currency_id.name ]]
@@ -352,10 +346,10 @@
|
- Taxes :
+ Taxes :
|
- [[ o.amount_tax or formatLang(0.00) ]]
+ [[ formatLang(o.amount_tax or 0.00) ]]
|
[[ o.pricelist_id.currency_id.name ]]
@@ -368,10 +362,10 @@
|
- Total :
+ Total :
|
- [[ o.amount_total or formatLang(0.00) ]]
+ [[ formatLang(o.amount_total or 0.00) ]]
|
[[ o.pricelist_id.currency_id.name ]]
diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml
index 72511c2d1a5..b4de47617b8 100644
--- a/addons/sale/sale_view.xml
+++ b/addons/sale/sale_view.xml
@@ -140,7 +140,7 @@
-
+
@@ -206,7 +206,7 @@
-
+
@@ -398,7 +398,7 @@
-
+
| | |