Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin.Konstantinov committed Sep 2, 2016
1 parent 7dbd823 commit 1285a72
Show file tree
Hide file tree
Showing 6 changed files with 663 additions and 48 deletions.
15 changes: 15 additions & 0 deletions l10n_bg/i18n/bg.po
Original file line number Diff line number Diff line change
Expand Up @@ -477,3 +477,18 @@ msgstr "e.g. Булстат или Единен идентификационен
#: model:ir.ui.view,arch_db:l10n_bg.view_partner_form_2
msgid "e.g. Ivan Ivanov"
msgstr "e.g. Иван Иванов"

#. module: l10n_bg
#: model:ir.ui.view,arch_db:l10n_bg.account_invoice_form_fields
msgid "Comment label"
msgstr "Условията ще бъдат показани на отпечатания документ. Можете да заредите предварително определен шаблон, да напишете собствен текст или да заредите шаблон и след това да го промените само за този документ."

#. module: l10n_bg
#: model:ir.ui.view,arch_db:l10n_bg.account_invoice_form_fields
msgid "CommentTemplate1Group"
msgstr "Основание за неначисляване на ДДС"

#. module: l10n_bg
#: model:ir.ui.view,arch_db:l10n_bg.account_invoice_form_fields
msgid "CommentTemplate2Group"
msgstr "Начин на плащане"
15 changes: 15 additions & 0 deletions l10n_bg/i18n/en_US.po
Original file line number Diff line number Diff line change
Expand Up @@ -702,3 +702,18 @@ msgstr "e.g. BULSTAT or EIK"
#: model:ir.ui.view,arch_db:l10n_bg.view_partner_form_2
msgid "e.g. Ivan Ivanov"
msgstr "e.g. Ivan Ivanov"

#. module: l10n_bg
#: model:ir.ui.view,arch_db:l10n_bg.account_invoice_form_fields
msgid "Comment label"
msgstr "Comment label info"

#. module: l10n_bg
#: model:ir.ui.view,arch_db:l10n_bg.account_invoice_form_fields
msgid "CommentTemplate1Group"
msgstr "Reason for not charging VAT"

#. module: l10n_bg
#: model:ir.ui.view,arch_db:l10n_bg.account_invoice_form_fields
msgid "CommentTemplate2Group"
msgstr "Payment method"
14 changes: 12 additions & 2 deletions l10n_bg/i18n/l10n_bg.pot
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,16 @@ msgid "e.g. Ivan Ivanov"
msgstr ""

#. module: l10n_bg
#: model:ir.ui.view,arch_db:l10n_bg.view_company_form_1
msgid "e.g. Иван Иванов"
#: model:ir.ui.view,arch_db:l10n_bg.account_invoice_form_fields
msgid "Comment label"
msgstr ""

#. module: l10n_bg
#: model:ir.ui.view,arch_db:l10n_bg.account_invoice_form_fields
msgid "CommentTemplate1Group"
msgstr ""

#. module: l10n_bg
#: model:ir.ui.view,arch_db:l10n_bg.account_invoice_form_fields
msgid "CommentTemplate2Group"
msgstr ""
2 changes: 1 addition & 1 deletion l10n_bg/models/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class BaseCommentTemplate(models.Model):
_name = "base.comment.template"
_description = "Base Comment template"

name = fields.Char('Comment summary', required=True)
name = fields.Char('Comment summary', required=True, translate=True)
position = fields.Selection([('comment_1', 'Reason for not charging VAT'),
('comment_2', 'Pay Method')],
'Position',
Expand Down
6 changes: 3 additions & 3 deletions l10n_bg/views/account_invoice_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@

<xpath expr="/form/sheet/notebook/page[2]" position="inside">
<page string="Comments" name="comments">
<label string="Условията ще бъдат показани на отпечатания документ. Можете да заредите предварително определен шаблон, да напишете собствен текст или да заредите шаблон и след това да го промените само за този документ." colspan="2"/>
<group string="Основание за неначисляване на ДДС">
<label string="Comment label" colspan="2"/>
<group string="CommentTemplate1Group">
<field name="comment_template1_id"
string="Load a template"
domain="[('position','=','comment_1')]"
context="{'default_position': 'comment_1'}"/>
<field name="note1" nolabel="1" colspan="2"/>
</group>
<group string="Начин на плащане">
<group string="CommentTemplate2Group">
<field name="comment_template2_id"
string="Load a template"
context="{'default_position': 'comment_2'}"
Expand Down
Loading

0 comments on commit 1285a72

Please sign in to comment.