~camptocamp/openerp-swiss-localization/github-7.0

« back to all changes in this revision

Viewing changes to l10n_ch_sepa/l10n_ch/template/pain.001.001.03.ch.02.xml.mako

  • Committer: GitHub
  • Author(s): Yannick Vaucher
  • Date: 2018-05-07 12:00:08 UTC
  • mfrom: (280.2.1)
  • Revision ID: git-v1:6505879be1de9e846140674bfe3544be5df19cec
Merge pull request #420 from leemannd/7.0-l10n_sepa

[FIX][7.0] Allow manual payment creation without invoice

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
</%doc>\
21
21
   <%
22
22
   line=sepa_context['line']
23
 
   invoice = line.move_line_id.invoice
24
23
   %>
25
 
   % if not invoice.partner_bank_id.state == 'bvr':
 
24
   % if not line.bank_id.state == 'bvr':
26
25
    ${parent.CdtrAgt()}
27
26
   % endif
28
27
</%block>
45
44
</%doc>\
46
45
   <%
47
46
   line=sepa_context['line']
48
 
   invoice = line.move_line_id.invoice
49
47
   %>
50
 
   % if invoice.partner_bank_id.state == 'bvr':
 
48
   % if line.bank_id.state == 'bvr':
51
49
          <PmtTpInf>
52
50
              <LclInstrm>
53
51
                <Prtry>CH01</Prtry>
59
57
<%block name="RmtInf">
60
58
   <%
61
59
   line=sepa_context['line']
62
 
   invoice = line.move_line_id.invoice
63
60
   %>
64
 
   % if invoice.reference_type == 'bvr':
 
61
   % if line.bank_id.state == 'bvr':
65
62
          <RmtInf>
66
63
            <Strd>
67
64
              <CdtrRefInf>
68
 
                <Ref>${invoice.reference}</Ref>
 
65
                <Ref>${line.communication}</Ref>
69
66
              </CdtrRefInf>
70
67
            </Strd>
71
68
          </RmtInf>