[IMP] sale: rename Pro-Forma into Pro-Foma Invoice

Purpose
=======

pro-forma concept is not easy, it is an adjective in english, it should be "Pro-Forma Invoice" to avoid confuision

Rename it everywhere (report, form, settings)

Specification
=============

In Sales/Settings, Sales/Quotations and in the report (.pdf)
This commit is contained in:
Prakash Prajapati
2017-06-20 11:14:25 +02:00
committed by Yannick Tivisse
parent 506ecfd6ac
commit 72d0a439dd
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -28,7 +28,7 @@
<p>
Here is
% if ctx.get('proforma')
in attachment, your pro-forma
in attachment, your pro-forma invoice
% else
the ${doc_name} <strong>${object.name}</strong>
% endif
+2 -2
View File
@@ -50,8 +50,8 @@ class SaleConfigSettings(models.TransientModel):
"Show total",
implied_group='sale.group_show_price_total',
group='base.group_portal,base.group_user,base.group_public')
group_proforma_sales = fields.Boolean(string="Pro-Forma", implied_group='sale.group_proforma_sales',
help="Allows you to send pro-forma.")
group_proforma_sales = fields.Boolean(string="Pro-Forma Invoice", implied_group='sale.group_proforma_sales',
help="Allows you to send pro-forma invoice.")
sale_show_tax = fields.Selection([
('subtotal', 'Tax-Excluded Prices'),
('total', 'Tax-Included Prices')], string="Tax Display",
+1 -1
View File
@@ -34,7 +34,7 @@
<span t-if="doc.state in ['draft','sent']">Quotation # </span>
</t>
<t t-if="env.context.get('proforma', False)">
<span>Pro-Forma # </span>
<span>Pro-Forma Invoice # </span>
</t>
<span t-field="doc.name"/>
</h2>
@@ -250,7 +250,7 @@
<div class="o_setting_right_pane">
<label for="group_proforma_sales"/>
<div class="text-muted">
Allows you to send Pro-Forma to your customers
Allows you to send Pro-Forma Invoice to your customers
</div>
</div>
</div>
+2 -2
View File
@@ -155,11 +155,11 @@
type="action" context="{'default_advance_payment_method': 'percentage'}"
attrs="{'invisible': ['|',('invoice_status', '!=', 'no'), ('state', '!=', 'sale')]}"/>
<button name="action_quotation_send" string="Send by Email" type="object" states="draft" class="btn-primary"/>
<button name="action_quotation_send" type="object" string="Send PRO-FORMA" groups="sale.group_proforma_sales" class="btn-primary" attrs="{'invisible': ['|', ('state', 'in', ['sent', 'sale']), ('invoice_count','&gt;=',1)]}" context="{'proforma': True}"/>
<button name="action_quotation_send" type="object" string="Send PRO-FORMA Invoice" groups="sale.group_proforma_sales" class="btn-primary" attrs="{'invisible': ['|', ('state', 'in', ['sent', 'sale']), ('invoice_count','&gt;=',1)]}" context="{'proforma': True}"/>
<button name="print_quotation" string="Print" type="object" states="draft" class="btn-primary o_sale_print"/>
<button name="action_confirm" id="action_confirm" states="sent" string="Confirm Sale" class="btn-primary" type="object" />
<button name="action_confirm" states="draft" string="Confirm Sale" type="object" />
<button name="action_quotation_send" type="object" string="Send PRO-FORMA" groups="sale.group_proforma_sales" attrs="{'invisible': ['|', ('state', '=', 'draft'), ('invoice_count','&gt;=',1)]}" context="{'proforma': True}"/>
<button name="action_quotation_send" type="object" string="Send PRO-FORMA Invoice" groups="sale.group_proforma_sales" attrs="{'invisible': ['|', ('state', '=', 'draft'), ('invoice_count','&gt;=',1)]}" context="{'proforma': True}"/>
<button name="print_quotation" string="Print" type="object" states="sent,sale" class="o_sale_print"/>
<button name="action_quotation_send" string="Send by Email" type="object" states="sent,sale"/>
<button name="action_cancel" states="draft,sent,sale" type="object" string="Cancel"/>